0 votes
by (150 points)

I know there's already a question for this, but I checked it out and I'm using a different story format.

I'm a beginner in coding and new to twine.

(set: $time to 30)
(live: 1s)[(set: $time to it - 1)
(if: $time is 0)[(stop:)]]

I already have this down but I need to know how to switch to another passage immediately after $time is 0.

1 Answer

0 votes
by (157k points)
selected by
 
Best answer

If I understand your question correctly you want the current passage to automatically change to another passage after 30 seconds have passed. The following example shows how to use the (live:) macro combined with a (go-to:) macro to that.

(live: 30s)[(go-to: "Target Passage")]

 

by (150 points)
Thanks! I'll see if it works!
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.
...