Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

(Harlowe) How to make confirm() function loop passages properly?

$
0
0
I am trying to allow my confirm() function to act as my "restart" button, as in if player chooses "OK", they will get the chance to go back to their last decision, but if the player chooses "Cancel", then the game will restart from the beginning.

My current code is
(link: "Revisit last choice?")[
(set $Choice to (confirm: "A brigh light of memories flash pass you, would you like to revisit your last choice?")[(if $Choice is true)[(goto: "Cage open")]
](else:)[
	(goto: "Waking up in a cave")
	]

Whenever I choose "OK", it loops me correctly to the "Cage open" passage, but if I choose "Cancel". it just stays on the current passage instead of taking me to the desired "Waking up in a cave" passage.

Thank you guys for any help that you could offer.

Viewing all articles
Browse latest Browse all 1844

Trending Articles