User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

harlowe:time [2017/10/09 20:39]
harlowe:time [2017/10/09 20:39] (current)
Line 1: Line 1:
 +====time keyword====
 +This keyword evaluates to the [[harlowe:​number|number]] of milliseconds passed since the passage
 +was displayed. Its main purpose is to be used alongside [[harlowe:​Changer|Changer]]
 +such as [[harlowe:​live|(live:​)]] or [[harlowe:​link|(link:​)]]. ''​%%(link:"​Click"​)[(if:​ time > 5s)[...]]%%'',​ for instance,
 +can be used to determine if 5 seconds have passed since this passage was displayed,
 +and thus whether the player waited 5 seconds before clicking the link.
 +When the passage is initially being rendered, ''​%%time%%''​ will be 0.
 +''​%%time%%''​ used in [[harlowe:​display|(display:​)]] macros will still produce the time of the host passage, not the
 +contained passage. So, you can't use it to determine how long the [[harlowe:​display|(display:​)]]ed passage
 +has been present in the host passage.
harlowe/time.txt ยท Last modified: 2017/10/09 20:39 (external edit)