Moved Duergar Mines
Moved Duergar Mines. Updated for arcane & divine marker feats. Full compile. Updated release archive.
This commit is contained in:
55
_module/nss/spawn_sc_cmptrig.nss
Normal file
55
_module/nss/spawn_sc_cmptrig.nss
Normal file
@@ -0,0 +1,55 @@
|
||||
//
|
||||
// NESS
|
||||
// Camp Trigger Scripts v8.1.3
|
||||
//
|
||||
//
|
||||
#include "spawn_functions"
|
||||
//
|
||||
object GetChildByTag(object oSpawn, string sChildTag);
|
||||
object GetChildByNumber(object oSpawn, int nChildNum);
|
||||
object GetSpawnByID(int nSpawnID);
|
||||
void DeactivateSpawn(object oSpawn);
|
||||
void DeactivateSpawnsByTag(string sSpawnTag);
|
||||
void DeactivateAllSpawns();
|
||||
void DespawnChildren(object oSpawn);
|
||||
void DespawnChildrenByTag(object oSpawn, string sSpawnTag);
|
||||
void DestroyCamp(object oCamp, float fCampDecay, int nSaveState);
|
||||
//
|
||||
//
|
||||
void main()
|
||||
{
|
||||
// Initialize Variables
|
||||
object oSpawned;
|
||||
string sObject;
|
||||
int iCount, nCampNumP, nCampNumC;
|
||||
|
||||
// Retrieve Script
|
||||
int nCampTriggerScript = GetLocalInt(OBJECT_SELF, "CampTriggerScript");
|
||||
|
||||
// Invalid Script
|
||||
if (nCampTriggerScript == -1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
object oCamp = OBJECT_SELF;
|
||||
object oSpawn = GetLocalObject(OBJECT_SELF, "ParentSpawn");
|
||||
float fCampDecay = GetLocalFloat(oSpawn, "f_CampDecay");
|
||||
|
||||
//
|
||||
// Only Make Modifications Between These Lines
|
||||
// -------------------------------------------
|
||||
|
||||
|
||||
// Destroy Camp
|
||||
if (nCampTriggerScript == 0)
|
||||
{
|
||||
DestroyCamp(oCamp, fCampDecay, FALSE);
|
||||
}
|
||||
//
|
||||
|
||||
|
||||
// -------------------------------------------
|
||||
// Only Make Modifications Between These Lines
|
||||
//
|
||||
}
|
Reference in New Issue
Block a user