Hello! I'm pretty new to Twine, and using the forums I was able to figure out a simple cycling link, but now I've run into some difficulty with a slightly harder problem.
I want to have a link to a certain passage -- in this case, called "out" -- only accessible if certain conditions are met.
The code I'm failing at looks like this:
According to the sundial, [it's an hour after sunrise]<time|.
out]<outside|(click: ?wait)[(replace: ?outside)[(display: "outsideLogic")]]
[Wait.]<wait|(click: ?wait)[(replace: ?time)[(display: "Logic")]]
"Logic" is exactly the "Logic" passage from this forum post:
http://twinery.org/forum/discussion/4641/very-basic-question-about-cycling-links-in-harlowe with the phrases changed as appropriate ("noon," "afternoon," "dark".)
I can't figure out what to put in "outsideLogic," but I want it to turn the link
out into plaintext "Go outside." when <time| is "dark".
When I click on "Wait," <time| cycles how it should, but no matter what I put in "outsideLogic," "Go outside" never changes.
I hope this makes sense. Thanks!
Comments