Soandso2
Well-known member
- Joined
- Mar 13, 2023
- RedCents
- 937¢
So, there is a timer datatype. The values are normal integers, but the timer has a feature that makes it automatically count down to zero directly after being set. https://docs.macroquest.org/reference/data-types/datatype-timer/?h=timer
In macroscript you declare timers like this:
[CODE title="timer in macroscript"]/declare BuffTimer timer local
/varset BuffTimer 360[/CODE]
But in Lua you dont declare datatypes (as far as this here noob understands things)
How do I tell my Lua that "this variable, that currently holds an integer, is and should behave, like a timer"? I googled and found the question asked, but no answer given,
In macroscript you declare timers like this:
[CODE title="timer in macroscript"]/declare BuffTimer timer local
/varset BuffTimer 360[/CODE]
But in Lua you dont declare datatypes (as far as this here noob understands things)
How do I tell my Lua that "this variable, that currently holds an integer, is and should behave, like a timer"? I googled and found the question asked, but no answer given,


