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 ➜ General ➜ How to use variables inside trigger firings?

How to use variables inside trigger firings?

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


Posted by Neverwhere   USA  (40 posts)  Bio
Date Wed 30 Oct 2002 07:46 PM (UTC)
Message
Ok, Ive noticed that there is a thing check box for expanded variables in the trigger area.

Does this mean I can store stuff into the variables each time the trigger fires? If so, how?

i.e. each time the trigger goes, the varible goes up one or something like that.

ChaosMUD: chaosmud.org:23
Always looking for new players/coders. Willing to train if your willing to lear. Contact Neverwhere or just mention that I sent you.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 30 Oct 2002 08:16 PM (UTC)
Message
There is an example in the recent forum posting "General: trigger that match more then one line".

What it means is you can use triggers to set variables, by using "send to variable". eg. you might make a trigger set up a monster's name (eg. Variable "monster" = "kobold" ).

Then another trigger might use that variable, by preceding it by a "@".

eg.

The @monster hits you!

A single trigger can only set one variable, but a trigger can use many variables. Aliases can also use variables. eg.

Alias: k = "kill @monster with @weapon"




- 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,711 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.