/* Upon leaving town, roaming troops spawned in once only Dalantriel & Jeff Mann: July 22, 2002 */ void main() { if (GetLocalInt(OBJECT_SELF,"NW_DO_ONCE") != 0) { return; } SoundObjectPlay(GetObjectByTag("BoomsDistant")); // Flag scout that attack has begun object oScout = GetObjectByTag("Lomiolad"); SetLocalInt(oScout, "nAttackStarted", 1); // Spawn in roving groups with delays location loc; loc = GetLocation(GetObjectByTag("spawnpoint1")); CreateObject(OBJECT_TYPE_CREATURE, "goblinscout009", loc, TRUE); CreateObject(OBJECT_TYPE_CREATURE, "goblinscout010", loc, TRUE); ActionWait(5.0f); ActionDoCommand(ExecuteScript("spawndefenders1", OBJECT_SELF)); ActionWait(5.0f); ActionDoCommand(ExecuteScript("spawnscouts", OBJECT_SELF)); ActionWait(5.0f); ActionDoCommand(ExecuteScript("spawnogres", OBJECT_SELF)); ActionWait(30.0f); ActionDoCommand(ExecuteScript("spawndefenders2", OBJECT_SELF)); SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1); }