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

38 lines
1.3 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
//get the target waypoint destination
object oDrop = GetWaypointByTag("prison");
object oMerem = GetObjectByTag("Merem");
object oWatch = GetObjectByTag("TownWatch4");
object oWatch2 = GetObjectByTag("warden");
object oWatch3 = GetObjectByTag("bouncer");
object oTriggerer = GetLastHostileActor();
DelayCommand(60.0, AdjustReputation(GetLastHostileActor(), OBJECT_SELF, 100));
DelayCommand(60.0,AdjustReputation(GetLastHostileActor(), oMerem, 100));
DelayCommand(60.0, AdjustReputation(GetLastHostileActor(), oWatch, 100));
DelayCommand(60.0, AdjustReputation(GetLastHostileActor(), oWatch2, 100));
DelayCommand(60.0, AdjustReputation(GetLastHostileActor(), oWatch3, 100));
DelayCommand(60.0,SendMessageToPC(oTriggerer, "You have been taken to jail Speak with the guard to get out."));
DelayCommand(60.0, SendMessageToPC(oTriggerer, "If he is hostile, damage him to restart your sentence."));
//jump the PC to the destination
DelayCommand(60.0,AssignCommand (oTriggerer,JumpToObject(oDrop)));
}