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


Joined: 15 Jan 2002
Posts: 4
Location: USA

PostPosted: Tue Jan 29, 2002 6:20 am   

#IF Troubles
 
Here's my trigger:

Pattern: Str~: &StrVar Int~: &IntVar Wis~: &WisVar Dex~: &DexVar Con~: &ConVar Keep~? ~(Y~/N~)

Script: #IF ((%1=22)&(%2=17)&(%3=15)&(%4=18)&(%5=20)) {Y} {N}

Here's what happens:

Str: 18 Int: 13 Wis: 8 Dex: 15 Con: 12 Keep? (Y/N)N
N


Str: 16 Int: 15 Wis: 13 Dex: 11 Con: 20 Keep? (Y/N)N
N


Str: 18 Int: 13 Wis: 15 Dex: 18 Con: 19 Keep? (Y/N)
Str: 14 Int: 9 Wis: 15 Dex: 13 Con: 15 Keep? (Y/N)

Problem:

Why is it doing this? Why won't it just do one N if failure, and a single Y if correct?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Tue Jan 29, 2002 1:56 pm   
 
Check to see that you do not have this triggers duplicated in your settings.

Also, I doubt that what you want is to accept the roll when the values are exactly 22, 17, 15, 18, and 20. If one of them is above those values, it will still send N to the MUD. So I guess that what you need is to use >= instead of = to let zMUD know that you want a value equal or greater than the one you wrote. Unless, of course, the values that you put in the script, are the max values that the MUD can give you for each of those stats.

Kjata
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Jan 29, 2002 5:16 pm   
 
Also, check that you have EITHER trigger on Newline or trigger on Prompt selected, not BOTH. You need one or it won't trigger at all, but having both selected may result in double triggering.

LightBulb
All scripts untested unless otherwise noted
Reply with quote
PrestoPimp
Apprentice


Joined: 18 Sep 2001
Posts: 175
Location: USA

PostPosted: Wed Jan 30, 2002 12:33 am   
 
Pattern: ^Str~:*(%d)*Int~:*(%d)*Wis~:*(%d)*Dex~:*(%d)*Con~:*(%d)*Keep~? ~(Y~/N~)
Script: #IF ((%1 >= 22)&(%2 >= 17)&(%3 >= 15)&(%4 >= 18)&(%5 >= 20)) {Y} {N}

Try that, it should work.

For tomarrow is another day, and other days come but 6 times a week.
Reply with quote
Kerdyk
Newbie


Joined: 15 Jan 2002
Posts: 4
Location: USA

PostPosted: Wed Jan 30, 2002 7:42 am   
 
Thank you all. Somehow I had an 'inherited' trigger-set that duplicated all in that class...strange...oh well, fixed now. thanks all!
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