0 votes
by (160 points)

It seems I am missing something. What I want to happen is to check that you have a save- in this case, A- before presenting the option to load the game when you click "Load Game". When I start up the passage, however, it immediately loads the next passage. If I go back to the first passage, it displays the options normally without going back to the second passage. What am I doing wrong? Much appreciated.

(if: (savedgames:) contains "A")[Load Game(click: "Load Game")[(loadgame: "A")]](else:)[(color: gray)[Load Game]]

 

1 Answer

+1 vote
by (154k points)

Generally whenever you want to add a link to your story the (link:) macro is a better choice than the (click:) macro.

{
(if: (savedgames:) contains "A")[
	(link: "Load Game")[
		(loadgame: "A")
	]
]
(else:)[
	(color: gray)[Load Game]
]
}

 

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