This is a two-in-one question. Firstly, is there an official 'end game' script, or do I just send them to a dead-end passage which says 'You're dead' or whatever?
Secondly, I have a set-piece where the player is being shot at from a distance. I want to give them a little time to choose an option which will provide cover from the gunfire, but if they're too slow have them hit by a bullet.
Would the easiest way to do this just be with the <<timed>> macro, or is there a 'proper'/better way to do this kind of thing?
Comments
As to the timed event. Your two best choices here would probably be either the the <<timed>> macro or the time() function, both of which are specifically for timed events such as you describe. You didn't state exactly how you wish to handle the situation, so I can't really say which would be the best fit.
That said, I suspect that you should look at the time() function. For example:
Player arrives at passage and three seconds later a shot ring out.
They have two options: advance on the house or dive behind a wall for cover.
I want a timer on this passage which after X seconds throws the player to a 'you are dead' passage (if they've taken too long to make a decision).
I don't want the timer to give the result of their decision AFTER they've chosen, but to kick in automatically if they fail to choose an option in time.
[EDIT] As usual, I was over-thinking things. The solution is as simple as: