|
tylanthea Newbie
Joined: 06 Apr 2004 Posts: 4
|
Posted: Tue Apr 06, 2004 1:16 pm
Triggering for patterns that starts with * |
I was trying to make a trigger for a line that generally looks like this:
* Kraelyth 19+6 Deathknight 1300/1300 900/900 210/210 223515200
The trigger pattern I have currently is
^@blahblah%s&leader%s%x%s%w%s%d/%d%s%d/%d%s%d/%d%s%d,
where @blahblah is a text variable with the value *
When I fire this trigger, my leader variable doesn't get updated by the trigger. Does anyone have any ideas on how to do this? Thanks.
btw, I can get a pattern match, but only the variable leader does not get updated. |
|
|
|
tobei Newbie
Joined: 19 Mar 2004 Posts: 9 Location: Canada
|
Posted: Tue Apr 06, 2004 1:20 pm |
#TRIGGER {^* (%w) (%d)~+(%d) (%w) (%d)~/(%d) (%d)~/(%d) (%d)~/(%d) (%d)} {#var Leader %1}
or
#TRIGGER {^* &Leader %d~+%d &LeaderClas %d~/%d %d~/%d %d~/%d %d} {#NOOP}
that would prolly do it too... |
|
|
|
tylanthea Newbie
Joined: 06 Apr 2004 Posts: 4
|
Posted: Tue Apr 06, 2004 1:25 pm |
Hmm.. seems like that doesn't work.. Thanks for the help though
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Tue Apr 06, 2004 1:26 pm |
Are you saying that the line from the mud starts with * if so just quote it with ~
^~*%s&leader%s%x%s%w%s%d/%d%s%d/%d%s%d/%d%s%d, |
|
|
|
tylanthea Newbie
Joined: 06 Apr 2004 Posts: 4
|
Posted: Tue Apr 06, 2004 1:27 pm |
When i used it in this format,
^*%s&Leader%s%d~+%d%s&LeaderClas%s%d~/%d%s%d~/%d%s%d~/%d%s%d
The leaderclas variable is updated, but not the leader variable.. It seems that it is skipping the leader variable and going straight to the blank space after it, and store that into the leader variable.. |
|
|
|
tylanthea Newbie
Joined: 06 Apr 2004 Posts: 4
|
Posted: Tue Apr 06, 2004 1:30 pm |
woooo... hahaha.. thanks nexela.. quoting it with ~ solved the problem instantly XD.
|
|
|
|
|
|