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 (159k 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!
...