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

Gammon Software Solutions forum

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

[Folder]  Entire forum
-> [Folder]  Programming
. -> [Folder]  General
. . -> [Subject]  How to make a multiple line trigger

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: How to make a multiple line trigger
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Terry   USA  (87 posts)  [Biography] bio
Date Mon 23 Nov 2009 02:23 AM (UTC)  quote  ]
Message
Yikes! Sorry that no one replied to your question sooner! Multi-line triggers are really quite tricky. However, with what you said the situation should be, it seems like you can pull it off with just one.
<triggers>
  <trigger
   enabled="y"
   group="spells"
   match="^(.*?) says \'bless (.*?)\'$"
   name="bless_armor"
   regexp="y"
   sequence="100"
  >
  <send>cast 'bless armor' %2
give %2 back to %1</send>
  </trigger>
</triggers>


If this isn't what you want, just reply, and I'll be sure you don't have to wait another 8 months to get an answer. :3
[Go to top] top

Posted by Marisolzebra   (1 post)  [Biography] bio
Date Mon 30 Mar 2009 07:44 AM (UTC)  quote  ]
Message
Hello there.

I'm trying to figure out how to make up what I guess you'd call a multiple line trigger.

The trigger needs to do this:

(character) gives you (equipment)
(character) says 'bless (equipment)'
cast 'bless armor' (equipment)
give (equipment) back to (character)

I'm trying to set up the triggers so that people can give my character things and I can bless them and give them back instead of hunting me down to manually do it.

I'd very much appreciate any help anyone can give on this for me. I can't for the life of me figure it out with my researching.

THANKS!!
[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.


1,929 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]