PoA_PRC8/_module/nss/hag_yes.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -04:00

33 lines
1.1 KiB
Plaintext

//trapdoor_yes script by Kerico 7/7/02
//jumps the using PC to target waypoint and closes the trapdoor for next use
//place in action taken scipt in trapdoor conversation
//in 'yes' end dialog of the trapdoor
void main()
{
//get the pc who used the trapdoor
object oPC = GetPCSpeaker();
//get the target waypoint destination
object oDrop = GetWaypointByTag("startpoint");
//jump the PC to the destination
AssignCommand (oPC,JumpToObject(oDrop));
object oItemToTake;
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "ForestGarnet");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "ForestGarnet2");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "ForestGarnet3");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "ForestGarnet4");
if(GetIsObjectValid(oItemToTake) != 0)
DestroyObject(oItemToTake);
}