|
blindingsnow Newbie
Joined: 13 Apr 2003 Posts: 3
|
Posted: 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! |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
blindingsnow Newbie
Joined: 13 Apr 2003 Posts: 3
|
Posted: Fri May 09, 2003 11:01 pm |
ic,thanks a lot
|
|
|
|
|
|