I'm working on my first Twine game for a school project, and I want to make a choice in the beginning of my game have a consequence later on. For example if I was making a game about a road trip I could have a decision to fill up the car with gas or not, and then later on the car could run out of gas if the player did not fill up with gas in the beginning. Is it possible to do something like that? If so, how do I do it?
Comments
You can use Harlowe's (set:) macro to assign a value to a variable which you can check later using an (if:) macro
1. At the start of your story (preferable in a startup tagged passage) assign the variable a default value:
2. In the passage where they buy gas change the variable to true:
3. In any passage you want to check if they bought gas do one of the following: