|
cxs410 Beginner
Joined: 04 Oct 2005 Posts: 20
|
Posted: Fri Nov 04, 2005 8:02 pm
Start Timer.. on trigger.. |
How can I start a timer to know how long a spell effect lasts..
START TIMER
You feel blessed.
End Timer
You feel less blessed.
Then I would like to store the value so I know how long until spell affects will last... |
|
|
|
myddrun Wanderer
Joined: 31 Mar 2005 Posts: 58
|
Posted: Fri Nov 04, 2005 8:10 pm |
um a quick way would be to make a alias thats
#add variable 1
to add 1 to it every tick.
set your tick to 1 second and start it on the first line and stop it on the second. So you get the number of seconds.
*shrugs if there's a more elegant way*
to start/stop the timer use #TI |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Nov 07, 2005 1:10 am |
A simple 2-condition trigger will do the trick:
#trigger {You feel blessed.} {SpellTimer = %ctime}
#condition {You feel less blessed.} {SpellTimer = %eval(%ctime - @SpellTimer)} |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|