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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  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] Refresh page


Posted by Neverwhere   USA  (40 posts)  [Biography] 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.
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] 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
[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.


8,960 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 HostDash]