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


Joined: 13 Apr 2003
Posts: 3

PostPosted: Fri May 09, 2003 9:53 pm   

Multiple Trigger Problem
 
Hi all,I've upgraded my zmud to 6.40 but got confused abuot the multiple triggers.
It seems a completely different concept.

Here is my problem:

#TRIGGER {^You are asking old man about job} {}
//then there may 3 situation,all will be displayed on the next line.

#COND {^The old man noded.} {say a} {within|param=1}
#COND {^The old man let u wait.} {say b} {within|param=1}
#COND {^The old man keep silent.} {say c} {within|param=1}

but only the trigger "The old man noded." fired. When the second or third pattern displays, it won't work.
Is it possible to put these 4 triggers into 1 by using multiple trigger?
Thanks!
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri May 09, 2003 10:53 pm   
 
Why did you choose 6.40 instead of 6.61? They are both public versions, and 6.61 is the latest.

No, it's not possible. Only one state of a trigger may be active at any given time. What you need to do is combine the three responses into a single trigger-state.

#TR {^You are asking old man about job} {;then there may 3 situation, all will be displayed on the next line.}
#COND {^The old man (*).} {#IF ("%1" = "noded") {say a};#IF ("%1" = "let u wait") {say b};#IF ("%1" = "keep silent") {say c}} {within|param=1}

LightBulb
Advanced Member
Reply with quote
blindingsnow
Newbie


Joined: 13 Apr 2003
Posts: 3

PostPosted: Fri May 09, 2003 11:01 pm   
 
ic,thanks a lot
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