Added NWN Dark Sun module contents

Added NWN Dark Sun module contents.
This commit is contained in:
Jaysyn904
2021-07-12 21:24:46 -04:00
parent 556224a658
commit de24f81734
10609 changed files with 146652 additions and 0 deletions

View 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
//
}