tmedwards / sugarcube-2

SugarCube is a free (gratis and libre) story format for Twine/Twee.
https://www.motoslave.net/sugarcube/2/
BSD 2-Clause "Simplified" License
177 stars 41 forks source link

Update timed macro's delay argument in docs #38

Closed Lavorther closed 4 years ago

Lavorther commented 4 years ago

Today someone asked in the Discord server if it was possible to use a variable as the delay value for the timed macro. The docs (and the examples in it) only show using an actual value as a keyword, and say it has to be 'a valid CSS time value—e.g., 5s and 500ms'. Through testing it was discovered that using a variable that holds the correct value as a string in its place also works. It would be great if this possibility was documented, as well as illustrated in the examples for this macro, as this can be very useful in certain situations.