Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: 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
Reply with quote
NINjasonNIN
Newbie


Joined: 18 Jan 2004
Posts: 1

PostPosted: 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}
Reply with quote
Luhta
Beginner


Joined: 11 May 2003
Posts: 25
Location: USA

PostPosted: Tue Apr 27, 2004 11:08 pm   
 
Oh! lol thanks I don't know how I missed that!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net