giangtranguyen: (Default)
Nguyễn Trà Giang ([personal profile] giangtranguyen) wrote in [community profile] twine_tutorials2017-07-05 10:47 pm

How To Use A Timer

Just copy and paste the code into the passage, then adjust it to your liking.

For example:


(set: $counter to 3)
You have |amount>[$counter] seconds left!
 
(live: 1s)[
(set: $counter to it - 1)
(if: $counter is 0)[
(go-to: (either: "Passage 1", "Passage 2", "Passage 3"))
]
(replace: ?amount)[$counter]
]