void main() { if (GetLocalInt(OBJECT_SELF,"nDone")==2) { return; } int nIdx=0; object oObject=GetObjectByTag("jw_low_creep"); while (GetIsObjectValid(oObject)) { ApplyEffectAtLocation(DURATION_TYPE_PERMANENT,EffectAreaOfEffect(AOE_PER_CREEPING_DOOM,"jw_silcr_ent","jw_silcr_hb","NW_S0_CrpDoomB"),GetLocation(oObject)); nIdx++; oObject=GetObjectByTag("jw_low_creep",nIdx); } nIdx=0; oObject=GetObjectByTag("jw_high_creep"); while (GetIsObjectValid(oObject)) { ApplyEffectAtLocation(DURATION_TYPE_PERMANENT,EffectAreaOfEffect(AOE_PER_CREEPING_DOOM,"jw_silcr_ent_nas","jw_silcr_hb_nast","NW_S0_CrpDoomB"),GetLocation(oObject)); nIdx++; oObject=GetObjectByTag("jw_high_creep",nIdx); } SetLocalInt(OBJECT_SELF,"nDone",2); }