How To Use A Timer That Decreases Time
Tuesday, 8 August 2017 07:45 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Just copy and paste the code into the passage, and then adjust it to your liking.
For example:
For example:
(set: $counter to 10)\
You have |amount>[$counter] seconds left!\
\
(live: 1s)[\
(set: $counter to it - 1)\
(if: $counter is 0)[(go-to: "Next Passage")]\
(replace: ?amount)[$counter]\
]
Or
(set: $time to 2)
(live: 1s)[(set: $time to it - 1)
(if: $time is 0)[(stop:)(go-to: "Next Passage")]