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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Problem with Trigger Sequence
Problem with Trigger Sequence
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| WillFa
USA (525 posts) Bio
|
Date
| Thu 21 Aug 2008 08:35 PM (UTC) Amended on Thu 21 Aug 2008 08:53 PM (UTC) by WillFa
|
Message
| I have 2 triggers:
<triggers>
<trigger
back_colour="8"
bold="y"
enabled="y"
expand_variables="y"
group="Hits"
match="^You (?P<NewVerb>.+) @!Enemy(?P<NewPredicate>.+)$"
match_back_colour="y"
match_bold="y"
match_inverse="y"
match_italic="y"
match_text_colour="y"
name="NewVerb"
regexp="y"
script="ParseNewDamageEmote"
sequence="130"
text_colour="13"
>
</trigger>
<trigger
back_colour="8"
bold="y"
enabled="y"
expand_variables="y"
group="Hits"
match="^You (?P<DamageVerb>@!DamageVerb) (?P<EmoteRemainder>.+)$"
match_back_colour="y"
match_bold="y"
match_text_colour="y"
name="Verb"
regexp="y"
script="GetCritterName"
sequence="100"
text_colour="13"
>
</trigger>
</triggers>
Trace shows that if Verb is left at 100, NewVerb fires first no matter what its value (101-1000). Changing Verb to 99 and NewVerb to 100 gives the desired effect. Does it only check against a trigger sequence if it is other than the default? | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Thu 21 Aug 2008 09:18 PM (UTC) |
Message
| No. Why would I do that? How would I do that? Check sequence 100 first and 1 next?
My guess is you actually have other triggers, some of which are sequence 100 and they are firing first and upsetting your match sequence. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
6,871 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top