|
How to make a multiple line trigger
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Marisolzebra
(1 post) 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!! | top |
|
| Posted by |
Terry
USA (87 posts) bio
|
| Date |
Reply #1 on 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 | 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,926 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )