void main() { if (GetLocalInt(OBJECT_SELF,"nDone")!=1) { object oObject; int nIdx; ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_ANTI_LIGHT_10),GetObjectByTag("jw_bane_statue")); // for (nIdx=1;nIdx<=4;nIdx++) // { // oObject=GetObjectByTag("jw_bane_object"+IntToString(nIdx)); // SignalEvent(oObject,EventUserDefined(10)); // } for (nIdx=1;nIdx<=6;nIdx++) { oObject=GetObjectByTag("jw_blight_object"+IntToString(nIdx)); ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectVisualEffect(VFX_DUR_ANTI_LIGHT_10),oObject); } SetLocalInt(OBJECT_SELF,"nDone",1); } }