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
Sinme
Newbie


Joined: 05 Jun 2003
Posts: 2

PostPosted: Thu Jun 05, 2003 6:25 am   

Logical OR Trigger?
 
Is there anyway to have a trigger fire if either of two possibilities occur?

e.g. #TRIGGER {You need to rest "OR" You are very tired} {sleep}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Jun 05, 2003 7:55 am   
 
Yes, but its simpler and faster to just use two triggers.
#TR {You need to rest} {sleep}
#TR {You are very tired} {sleep}

From the Pattern Matching helpfile:
{val1|val2|val3|...} match any of the specified strings can not use other wildcard inside this
#TR {{You need to rest|You are very tired}} {sleep}

LightBulb
Advanced Member
Reply with quote
DeathofOne
Beginner


Joined: 03 Jun 2003
Posts: 25

PostPosted: Thu Jun 05, 2003 1:59 pm   
 
#TR {{You need to rest|You are very tired}} {sleep}

Instead use
#TR {You {need to rest|are very tired}} {sleep}

This will help it fire faster just by a bit
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