0 votes
by (120 points)

First passage:

(if: $Lives is -1)[(show: [[Death]])]
(set: $Ra to (random: 1,99)) (set: $Rb to (random: 1,99))
*Wise Woman*: Very well, what's $Ra minus $Rb?

[[Answer -> Answer 2]]
---

''(print: $lives) Lives Left''
''(print: $coins) Coins''

-_>''Inventory''<_-

(print: $inventory)

Second Passage

(set: _Answer to (prompt: "You answer:", ""))
(if: _Answer is $Ra - $Rb)[(show: "[[Question 3]]")]
(else:)[Oh no! You lost a life! (link:"Go Back")[(show:?fan)] (set: $Lives to it - 1)]
|fan)[ [[Question 2]] ]

(if: $Lives is -1)[(show: [[Death]])]
---

''(print: $lives) Lives Left''
''(print: $coins) Coins''

-_>''Inventory''<_-

(print: $inventory)

What's my problem?

1 Answer

0 votes
by (560 points)
(set: _Answer to (prompt: "You answer:", ""))
(if: _Answer is $Ra - $Rb)[(show: "[[Question 3]]")]
(else:)[(set: $Lives to it - 1)Oh no! You lost a life! (if: $Lives is -1)[(linkgoto: "You died.", "Death")](else:)[(linkgoto: "Continue", "Question 2")]]

---

I changed the second passage to this^ and it worked for me. Also maybe this in the first passage, the 'goto' instead of the 'show' macro: 

(if: $Lives is -1)[(goto: "Death")]

I think the problem was with the setup of your if/else macros.

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.
...