Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Die after random minutes

I ported an old textadventure actually.
In this, you die after a random time (15-25 min) and I wish to know how this is possible in twine.
Thanks for your help! :)

Comments

  • To create a random number, you can use the random() built-in function go there and search random(value,value): http://twinery.org/wiki/function

    Then I think you could use the macro <<timedgoto "PASSAGE" Xs">> (http://www.glorioustrainwrecks.com/node/5108)

    This macro allows you to reach a passage after a certain amount of time.
    And if I remember correctly, you can start it in a passage, pursue your adventure through other passages and when the timer is over, you'll be redirected to your timedgoto passage.
    I'm not 100% sure but give it a try and let us know :)
Sign In or Register to comment.