Initial upload
Initial upload
This commit is contained in:
42
_module/nss/triggerattack.nss
Normal file
42
_module/nss/triggerattack.nss
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
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);
|
||||
|
||||
}
|
Reference in New Issue
Block a user