TheHordeOrcs_PRC8/_module/nss/triggerattack.nss
Jaysyn904 defc8f9f6d Re-uploaded instead of migrated
Re-uploaded instead of migrated.
2024-08-03 15:05:13 -04:00

39 lines
971 B
Plaintext

/*
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);
}