How to make a multiple line trigger

Posted by Marisolzebra on Mon 30 Mar 2009 07:44 AM — 2 posts, 13,878 views.

#0
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!!
USA #1
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