How do you use the timer variable

Need help running MacroQuest 1? Too bad! Use MQ2.

Moderator: MacroQuest Developers

Gatts
orc pawn
orc pawn
Posts: 10
Joined: Sat Jun 29, 2002 10:01 am

How do you use the timer variable

Post by Gatts » Sat Jun 29, 2002 10:57 am

$t#
Returns a timer value

This thing always returns 0 for me
How do you use it?

Gatts
orc pawn
orc pawn
Posts: 10
Joined: Sat Jun 29, 2002 10:01 am

Post by Gatts » Sat Jun 29, 2002 11:12 am

/varset
/varadd
/varsub
v,p: Set, add, or subtract variables
a: Set, add, or subraact array variables
t: Set, add, or subtract time from a timer (in 10ths of a second, suffix s for seconds, m for minutes)

also what is this about how to I add time to a timer?

As you can see I'm trying to setup to timings in my main loop and run events after a certain amount of time has expired but I'm not sure how to do it.

if #t1 > 100 /goto blah

stuff like that

Gatts
orc pawn
orc pawn
Posts: 10
Joined: Sat Jun 29, 2002 10:01 am

Post by Gatts » Sat Jun 29, 2002 11:44 am

Ok found it

you set timer to a value then it counts down for you

so

/varset t0 5m
or
/varset t0 300

then

/if $t0==0 /goto doStuff