Battledale_PRC8/_module/nss/jw_faketres_open.nss

30 lines
587 B
Plaintext
Raw Normal View History

void main()
{
object oMob;
int nAgain;
for (nAgain=1;nAgain<=3;nAgain++)
{
oMob=CreateObject(OBJECT_TYPE_CREATURE,"nw_willowisp",GetLocation(OBJECT_SELF),TRUE);
ApplyEffectAtLocation(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_3),GetLocation(oMob));
}
int nCounter=1;
object oObject=GetNearestObjectByTag("jw_fake_tres",OBJECT_SELF,nCounter);
while (GetIsObjectValid(oObject))
{
DestroyObject(oObject);
nCounter++;
oObject=GetNearestObjectByTag("jw_fake_tres",OBJECT_SELF,nCounter);
}
if (GetIsObjectValid(OBJECT_SELF))
{
DestroyObject(OBJECT_SELF);
}
}