(e.g., display "Message X"; -> Player choices: "Continue" (0 - move on to next message/scene), "Start Over" (1 - go back to first message/scene), "Ignore them" (2 - cancel and exit/leave menu)).
The script is meant to be placd on an activator, and "fire up" when the Player is within a certain distance from it.
After several fruitless attempts with the full script (which includes NPCs being enabled/disabled and/or doing things at different stages or 'scenes') I gave up and just tried to make a script that simply increments the "messageboxes."
This attempt (below) simply stops at the first message, and hangs up the game (requiring the [CTRL/ALT/DEL] three-finger rescue). Neither button (although displayed OK) does anything:
Begin _MontyTestshort doonceshort buttonshort statusif ( doonce == 0 ) set doonce to 1endifif ( GetDistance Player <= 400 ) Set status to 1EndifIf ( status == 0 ) Return ;; stop processing the script for this frame.EndifIf ( status == 1 ) MessageBox, "(As you enter the town center, you come upon an odd commotion. An Argonian in a strange-looking helmet, who appears to be an official of some sort, is beset by a group of peasants dragging a young woman dressed as a witch before him. Curious, you stop to listen.)", "0-Continue", "1-Ignore them" Set status to 2EndifIf ( status == 2 ) Set button to GetButtonPressed If ( button > 9 ) Return endif If ( button < 0 ) Return endif If ( button == 0 ) MessageBox, "Scene 2 Message", "0-Continue", "1-Start over", "2-Ignore them" Set status to 10 endif If ( button == 1 ) ;; Cancellation Set status to 0 Return endif EndifIf ( status == 10 ) Set button to GetButtonPressed If ( button == 0 ) MessageBox, "Scene 3 Message", "0-Continue", "1-Start over", "2-Ignore them" Set status to 20 endif If ( button == 1 ) Set status to 1 ;; Back to Messagebox 1 endif If ( button == 2 ) ;; Cancellation Set status to 0 Return endif EndifIf ( status == 20 ) ; wait for player decision Set button to GetButtonPressed If ( button == 0 ) MessageBox, "Scene 4 Message", "0-Continue", "1-Start over", "2-Ignore them" Set status to 30 endif If ( button == 1 ) Set status to 1 ;; Back to Messagebox 1 endif If ( button == 2 ) ;; Cancellation Set status to 0 Return endif EndifIf ( status == 30 ) ; wait for player decision Set button to GetButtonPressed If ( button == 0 ) MessageBox, "Scene 5 Message", "0-OK" Set status to 40 endif If ( button == 1 ) Set status to 1 ;; Back to Messagebox 1 endif If ( button == 2 ) ;; Cancellation Set status to 0 Return endif EndifIf ( status == 40 ) ; wait for player decision;; Set button to GetButtonPressed;; If ( button == 0 ) MessageBox, "Sancho walks away, looking impressed. You continue on your way." Set status to 0 Return;; endif EndifEnd _MontyTest
I'm now at my wit's end, and cannot see what I'm doing wrong. I would appreciate any help or advice the Community can offer.
Thanks in advance.