Added PnP Dire Rat.

Added PnP Dire Rat.
This commit is contained in:
Jaysyn904
2021-07-21 17:48:43 -04:00
parent 552f1686c8
commit b01c5cc7db
10849 changed files with 171143 additions and 1 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);
}