0 votes
asked by (250 points)

In my story I have several events that will trigger a Game Over state (character dies or makes a wrong choice). In my "You Lose" passage, where all the Game Over events point to, I've placed a "Restart" button. But the button is just a link to the original "Start Game" passage. This means that some of the variables or conditions that have been modified during the first play through are still intact on the second. How can I restart the game in the "You Lose" passage so that everything goes back to original conditions?

=><=
###Game over.
=><=
[[Restart|Start Game]] 

 

1 Answer

0 votes
answered by (108k points)
selected by
 
Best answer

You want the (reload:) macro, and you would combine it with a (link:) macro like so.

=><=
###Game over.
=><=
(link: "Restart")[(reload:)]

warning: the above was written from memory and hasn't been tested.

commented by (250 points)
That works! Thanks a bunch!
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.
...