[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  VBscript
. . -> [Subject]  Using Scripting in a timer
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Using Scripting in a timer

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Madrox   (40 posts)  [Biography] bio
Date Sat 09 Sep 2006 05:04 AM (UTC)
Message
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?
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] bio
Date Reply #1 on Sat 09 Sep 2006 05:29 AM (UTC)
Message
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.
[Go to top] top

Posted by Madrox   (40 posts)  [Biography] bio
Date Reply #2 on Sat 09 Sep 2006 05:31 AM (UTC)
Message
Awsome, thanks man. Didnt wanna go writing a large script (probably small to most of you) and have it end up unable to work
[Go to top] top

Posted by Nick Gammon   Australia  (21,388 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Sat 09 Sep 2006 05:58 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Madrox   (40 posts)  [Biography] bio
Date Reply #4 on Sat 09 Sep 2006 04:28 PM (UTC)
Message
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
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


5,223 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]