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.
Entire forum
➜ Programming
➜ General
➜ How to make a multiple line trigger
How to make a multiple line trigger
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Marisolzebra
(1 post) Bio
|
Date
| Mon 30 Mar 2009 07:44 AM (UTC) |
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) |
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.
10,748 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top