void main() { if (GetLocalInt(OBJECT_SELF,"nDoors")!=2) { int nIdx; if (GetLocalInt(OBJECT_SELF,"donesetup")!=2) { for (nIdx=1;nIdx<=3;nIdx++) { ApplyEffectAtLocation(DURATION_TYPE_PERMANENT,ExtraordinaryEffect(EffectAreaOfEffect(AOE_PER_FOGSTINK,"jw_kobold_smoke","jw_empty_script","jw_empty_script")),GetLocation(GetObjectByTag("jw_kob_object"+IntToString(nIdx)))); } SetLocalInt(OBJECT_SELF,"donesetup",2); } SetLocalInt(OBJECT_SELF,"nDoors",2); } }