I'm wondering it if it's at all possible to set up some kind of script that would allow me to make quick reaction events. For example, a segment of the game that asks the player to hit a button to dodge a stab attack while a timer is running. If the timer runs out... well... Bad End.
This the crux of what I'm trying to do: 1) Rig a timer governed by a boolean. I can do this by using 'elapsed' with a normal variable. 2) Rig a button to change the boolean when the button is pressed. This is elementary. 3) Make something bad when the timer runs out.
The trouble is in step 3. I can't figure out how to make scripts and variables made outside the script to interact. If I could, finishing it would be as simple as detecting the timer and creating a bad end.