|
Luhta Beginner
Joined: 11 May 2003 Posts: 25 Location: USA
|
Posted: Tue Apr 27, 2004 9:10 pm
Trigger help, matching when I don't want it to |
MUD: You wield the pitch-black flaming longsword.
MUD: You wield a dark glaive as a secondary weapon.
TRIGGER: ^You wield(*) (%w).
TRIGGER: ^You wield(*) (%w) as a secondary weapon.
SITUATION:
I am trying to set up zmud so that it automatically records when I wear my primary and secondary weapons using the last word in the item string for use in rearming myself after being disarmed.
The problem is, as you have probably noticed already, the first trigger will match regardless of whether my wield is primary or secondary.
I would be willing to use one trigger and evaluate for the string "as a secondary weapon" but I'm not exactly sure how to do that without writing 20 triggers for a different number of words in different items.
QUESTION:
How can I search for "as a secondary weapon" in the first trigger I have listed so I can determine in a single trigger whether it is catching on the primary or secondary wield?
That probably didn't make much sense but if you understand what I'm getting at I would appreciate any advice.
Thanks,
Luhta |
|
|
|
NINjasonNIN Newbie
Joined: 18 Jan 2004 Posts: 1
|
Posted: Tue Apr 27, 2004 9:39 pm |
TRIGGER: ^You wield(*) (%w).
ACTION: #IF {%2 = weapon} {what you want if it is a secondary weapon} {what you want if it is the main weapon} |
|
|
|
Luhta Beginner
Joined: 11 May 2003 Posts: 25 Location: USA
|
Posted: Tue Apr 27, 2004 11:08 pm |
Oh! lol thanks I don't know how I missed that!
|
|
|
|
|
|