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.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Tips and tricks ➜ using variables

using variables

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


Posted by Archer   (2 posts)  Bio
Date Mon 23 Dec 2002 02:00 AM (UTC)
Message
I was wondering how to make two different uses of a variable one is for when someone in my group backstabs that it retrieves their name and then rescues them and was also wondering how I could make one so when a target is poked it retrieves the targets name and attacks. I guess they're both related in I'm not exactly sure how to make it retrieve a name or phrase and store in somewhere to use in triggers. Any help would be much appreciated
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 24 Dec 2002 01:49 AM (UTC)
Message
You can make a trigger, like:

* pokes you.

Then the word that matches the wildcard (asterisk) is %1 in the trigger "send" text. You can just set that to %1 and select "send to variable". Then make the trigger name the same as the variable name you want to send it to.

For a more complicated response you could use a script. There are lots of examples of a similar thing to what you describe on this forum. Try searching for "trigger variable" and see what you come up with.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


11,286 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.