0 votes
by (120 points)
I tries to play my game and my passage that exists was showing up as passage doesn’t exist.  I have three choices Andy all of them are showing up as not existing.  I am using SugarCube 2.21.0 If that means anything.  Does anyone know why this is happening?

1 Answer

0 votes
by (170 points)
edited by

Can you show the code please

To go to a passage ues this:

[[Bedroom]]
[[My Bedroom|Bedroom]]

They both go to the same passage but one will show Bedroom the other My Bedroom.

 

If you want to go to a passage to get information but not look at it use this:

Bedroom Passage
[[Sleep]]


Sleep Passage
<<run $gameDate.setHours($gameDate.getHours() + 8)>>\
adds 8hr to sleep

<<goto [[Bedroom]]>>

This will get information from the sleep passage but will go back to the bedroom passage.

 

Anotherway is this

<<set $Variable to Story.get("example").text>>

This will create a $Variable that when call will show the text on the example passage. You will not see a direct link. Best used for headers and footers that will be on a number of pages, saving you writing code again and again.

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