Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ MUSHclient ➜ General ➜ variables

variables

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


Posted by Skarlot   (1 post)  Bio
Date Wed 27 Nov 2002 01:58 AM (UTC)
Message
I can't figure out how to change variables from within an alias. Is there any way to call one from within an alias?

Thanks
Top

Posted by Guest1   USA  (256 posts)
Date Reply #1 on Wed 27 Nov 2002 06:37 AM (UTC)
Message
at the moment, you can call a variable with an alias using @variablename and clicking the 'expand variables' box on the alias, but can only set variables directly using triggers. To set a variable with an aliases, you have to make it call a script to do it, such as:

alias is 'target *' and actives a script named 'settarget'. The script would be:

sub settarget (thename, theoutput, thewildcards)
World.SetVariable "target", thewildcards (1)
end sub

However, I saw a thread not long ago where Nick said that he will change this in a future version release so an alias can set a variable in the same way that a trigger currently can, so you can select 'send to variable' and it sends the * in your alias to a variable, the variable being the same name as the label of the trigger/alias.
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.


10,343 views.

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

Go to topic:           Search the forum


[Go to top] top

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