Using Scripting in a timer

Posted by Madrox on Sat 09 Sep 2006 05:04 AM — 5 posts, 23,258 views.

#0
Okay, so i plan on using a timer that shoots off every 1 second that sends to a script to check if i have certain afflictions. If I do it will heal them in order of priorities. But, I don't see a Expand Variables thing on the timers page. Is that going to matter if i use world.getvariable or setvariable and what not?
Russia #1
The "expand variables" option doesn't have anything to do with scripting, as far as I know, so its absence doesn't prevent you from using GetVariable in any way.
#2
Awsome, thanks man. Didnt wanna go writing a large script (probably small to most of you) and have it end up unable to work
Australia Forum Administrator #3
Well, you can use expand variables in triggers and aliases in conjunction with "send to script".

However using GetVariable and SetVariable is probably the best way to go when writing scripts, rather than relying on inline substitution of variables.

As someone else noted before in a query, the substitution of things like @level is done in advance of the script starting, so if you change the level variable in the middle the new value is not incorporated in subsequent script lines.
#4
I see, I see. All my vars are going to be changed by trigs, So, I'd have to use get/set var if I want it to work right. hehe. Thanks for all your help. I'm sure I'll be posting again when I get stuck :P