//:: at_spn_grn_slime //:: //:: Spawns a small green slime #include "nw_i0_generic" void main() { object oSpawn; effect eVFX; object oSelf = OBJECT_SELF; // Get the PC who is in this conversation. object oPC = GetPCSpeaker(); string sName = GetName(oPC); string sTag = GetTag(oSelf); // Spawn Small Green Slime. eVFX = EffectVisualEffect(VFX_COM_BLOOD_CRT_GREEN); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "zep_greenslimes", GetLocation(oSelf)); AssignCommand(oSpawn, DetermineCombatRound(oPC)); DelayCommand(0.3f, ApplyEffectToObject(DURATION_TYPE_INSTANT, eVFX, oSpawn)); SetLocalInt(oPC, "FoundSlime"+sTag, 1); }