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,29 @@
//******************************************************************************
//* stargatish portal script put on_disturbed for dhd
//* written by BWW aka Lord Nikon
//* 12/05/04
//* Triggers the gate transition when player steps across it
//******************************************************************************
void main()
{
object oPC = GetEnteringObject();
location oTarget = GetLocalLocation(oPC,"GATEADDY");
object oGATE = GetLocalObject(oPC,"GATETARGET");
object oOFF = GetNearestObjectByTag("stargate_on");
location lOFF = GetLocation(oOFF);
object oON = GetNearestObjectByTag("stargate_on",oGATE);
location lON = GetLocation(oON);
object oONE;
//turns off gates 20 sec after they step through
//local gate
DestroyObject(oOFF,20.0);
CreateObject(OBJECT_TYPE_PLACEABLE,"stargate_off",lOFF);
//destination gate
DestroyObject(oON,20.0);
CreateObject(OBJECT_TYPE_PLACEABLE,"stargate_off",lON);
//transports pc
AssignCommand(oPC,ActionJumpToLocation(oTarget));
//resets code
SetCampaignString("SPENCER","sCode","",oPC);
}