Idea for tryagain

sonic102
10 Jul 2012, 05:34
I have noticed that a few users wanted a try again script. I think I have solved it.

1. Make a timer not enabled at the start of the game. It's interval should be 1 seconds (In this tutorial it is named tryagain)
2. Set the room the player starts out in as an attirbute. (In this tutorial it is named oldroom)
3. For the timer script:

If  player is in room [expression] [player.oldroom]
Then
Disable timer [tryagain]
Else
Undo one transaction

Now whenever you want the player to try again, enable this timer.
NOTE: This may not work. Feel free to tell me any issues.

Pertex
10 Jul 2012, 06:56
Hmm,why do you use a timer ?

sonic102
11 Jul 2012, 00:08
Pertex wrote:Hmm,why do you use a timer ?


Two choices: timer/turnscript. Turnscript is triggred every turn, so player is required to do something. So, timers.

Someone wrote:Why are you using an attirbute?


Because it can change, for example, a checkpoint.

Another person wrote:Isn't this similar to the things that go bump in the night?


The results are.