|
Chim Beginner
Joined: 06 Jan 2004 Posts: 13 Location: Canada
|
Posted: Sat May 15, 2004 2:32 am
another trigger question |
What am I doing wrong with this trigger? The pattern ( 15 17 14 12 13 13 8 6 39 Keep these? : ) matches when I test it in zmud, and it doesn't report any errors in the value window, but still whenever I try to roll my stats, the trigger doesn't kick in.
#TRIGGER {%s(%n)%s(%n)%s(%n)%s(%n)%s(%n)%s(%n)%s(%n)%s(%n)%s(%n)%sKeep these? :%s} {#IF (%1<15)AND(%2<18)AND(%3<18)AND(%4<15)AND(%5<13)AND(%6<15)AND(%7<12)AND(%8<8)AND(%9<60) {yes}{no}}
What am I doing wrong? |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sat May 15, 2004 2:53 am |
make sure there is a space between {yes} {no}
also delete the last %s (the one after the :
also this could be a culprit goto the options tab and uncheck newline and check prompt |
|
|
|
Chim Beginner
Joined: 06 Jan 2004 Posts: 13 Location: Canada
|
Posted: Sat May 15, 2004 4:24 am |
I made those changes, however when the pattern comes up for the first time, nothing happens. When I type no to get the pattern to come up again, zmud triggers the response yes for some reason. Here's exactly what my screen looks like when I want the trigger to go off:
--------------------------[ PLAYER STATS ROLL ]------------------------------
You can accept your stats as they are or take a chance on better stats :
Str Int Wis Dex Con Luck Practices Trains Hps
--- --- --- --- --- ---- --------- ------ ---
11 13 11 13 11 16 10 9 40 Keep these? :
Here's what it looked like when I tried to use to get the trigger to work(I entered no, not zMud:
--------------------------[ PLAYER STATS ROLL ]------------------------------
You can accept your stats as they are or take a chance on better stats :
Str Int Wis Dex Con Luck Practices Trains Hps
--- --- --- --- --- ---- --------- ------ ---
11 13 11 13 11 16 10 9 40 Keep these? : no
yes
And here's the trigger as exported to text by zMud(I added the %s because after I made the changes to the trigger, the trigger editor told me that AND wasn't a valid expression):
#TRIGGER {%s(%n)%s(%n)%s(%n)%s(%n)%s(%n)%s(%n)%s(%n)%s(%n)%s(%n)%sKeep these? :} {#IF %s(%1<15)%s(%2<18)%s(%3<18)%s(%4<15)%s(%5<13)%s(%6<15)%s(%7<12)%s(%8<8)%s(%9<60) {yes} {no}}
P.S. I just reentered the trigger, and apparently %s isn't a valid expression either. Pls help! |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sat May 15, 2004 5:01 am |
Couple of problems:
First it wasn't set up as a prompt trigger
Second I think you wanted greater than or equal too and not less than
Third your expresions need to be grouped in ()
Fourth Tidy up the pattern a lil bit
So here you go copy and paste to your command line hit enter and it should work like a charm
#TR {(%d)%s(%d)%s(%d)%s(%d)%s(%d)%s(%d)%s(%d)%s(%d)%s(%d) Keep these? :} {#IF ((%1>=15) AND (%2>=18) AND (%3>=18) AND (%4>=15) AND (%5>=13) AND (%6>=15) AND (%7>=12) AND (%8>=8) AND (%9>=60)) {yes} {no}} "" {prompt|nocr} |
|
|
|
Chim Beginner
Joined: 06 Jan 2004 Posts: 13 Location: Canada
|
Posted: Sat May 15, 2004 5:26 am |
This trigger seems to cause zMud to freeze. I'm using v6.40 because of the mapping problems in later versions.
|
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sat May 15, 2004 6:53 am |
I have not noticed any mapper problems in 7.05? and that trigger should work correctly even in 6.40 what exactly is freezing and where?
|
|
|
|
Chim Beginner
Joined: 06 Jan 2004 Posts: 13 Location: Canada
|
Posted: Sun May 16, 2004 12:11 am |
I enter the trigger, and when the dialog ( 11 13 11 13 11 16 10 9 40 Keep these? : ) comes up, nothing happens. I type no to get it to come up again, and then zMud just freezes and windows says it's not responding.
|
|
|
|
|
|