Files
Anphillia_PRC8/_module/nss/ee_trig_init.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

29 lines
844 B
Plaintext

/************************************************************************
* script name : eE_trig_init
* created by : eyesolated
* date : 2011/6/1
*
* description : Initializes the linked eE Encounter upon a PC entering
*
* changes : 2010/6/1 - eyesolated - Initial creation
************************************************************************/
// Includes
#include "eE_inc"
void main()
{
object oPC = GetEnteringObject();
// If not a valid PC, exit!
if (!eE_GetIsPC(oPC))
return;
string sTriggerTag = GetTag(OBJECT_SELF);
string sEncounterTag = GetStringRight(sTriggerTag, GetStringLength(sTriggerTag) - 3);
object oEncounter = GetNearestObjectByTag(sEncounterTag, OBJECT_SELF);
// Initialize this Encounter
ExecuteScript(eE_SCRIPT_ENCOUNTER_INITIALIZE, oEncounter);
}