43 lines
1.3 KiB
Plaintext
43 lines
1.3 KiB
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("spawnghastscout6"));
|
||
|
CreateObject(OBJECT_TYPE_CREATURE, "ghastscout006", loc, TRUE);
|
||
|
loc = GetLocation(GetObjectByTag("spawnghastscout7"));
|
||
|
CreateObject(OBJECT_TYPE_CREATURE, "ghastscout007", loc, TRUE);
|
||
|
loc = GetLocation(GetObjectByTag("spawnghastscout8"));
|
||
|
CreateObject(OBJECT_TYPE_CREATURE, "ghastscout008", loc, TRUE);
|
||
|
loc = GetLocation(GetObjectByTag("spawnghastscout9"));
|
||
|
CreateObject(OBJECT_TYPE_CREATURE, "ghastscout009", loc, TRUE);
|
||
|
loc = GetLocation(GetObjectByTag("spawnghastscout10"));
|
||
|
CreateObject(OBJECT_TYPE_CREATURE, "ghastscout010", loc, TRUE);
|
||
|
|
||
|
ActionWait(30.0f);
|
||
|
ActionDoCommand(ExecuteScript("spawnscouts", OBJECT_SELF));
|
||
|
ActionWait(30.0f);
|
||
|
ActionDoCommand(ExecuteScript("spawndefenders2", OBJECT_SELF));
|
||
|
ActionWait(30.0f);
|
||
|
ActionDoCommand(ExecuteScript("spawnogres", OBJECT_SELF));
|
||
|
|
||
|
|
||
|
SetLocalInt(OBJECT_SELF,"NW_DO_ONCE",1);
|
||
|
|
||
|
}
|