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
Ashur
Novice


Joined: 25 Jul 2011
Posts: 39

PostPosted: Mon Jul 25, 2011 3:12 pm   

Conditional Trigger assistance
 
Hello,

I have been poking around the help docs and forum and have been unable to figure out how to properly write a trigger which contains conditions.

What I'd like to do is create a trigger for forging items. The trigger should begin when "You have finished forging the" is returned by the mud. I should, then, 'put sword in pack; get bar'. That part works just fine, but I struggle from there. After "get bar" there are two options, the mud with either return "Get what?" or "You get an iron bar." I can't figure out how to properly set up the trigger so that it evaluates both possibilities.

What I have managed to do is create a sequential trigger, first it looks for "You have finished forging" then "Get what?" then "You get an iron bar" but I need it to look for "You have finished forging" then "Get what?" OR "You get an iron bar".

Any assistance would be greatly appreciated

Thank you.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Jul 25, 2011 8:35 pm   
 
check out stringlist patterns.
_________________
EDIT: I didn't like my old signature
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