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


Joined: 12 May 2004
Posts: 4
Location: Romania

PostPosted: Wed May 12, 2004 4:27 pm   

need help with a trigger, please read
 
hello guys, this is my fist post here ... I`ll try to make it as short as I can

ok about 1 year or so I stopped using plaing Muds ( I was using then 6.40 Zmud ) I have restarted plaing now and I use 7.04 Zmud but I have a problem with a trigger that does now work as it should


here it is

Pattern : ((%a) H (%a) M)

Value : #if (%1 < 40) {drink hazy}
#t- hazy


it used to work fine on 6.40 but now I can`t make it work on 7.04

now it just drinks hazyz all the time .... altho my H (hp) is above 40

can any1 help ? if I`m not clear in any way ask me and I`ll try to explane myself

also I don`t know what PERL REGULAR Expresion is and Shold it be on ( becouse it isn`t )
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed May 12, 2004 5:12 pm   
 
Remove the outside set of parentheses.
Pattern: (%a) H (%a) M

Most people use either %d or %n for numbers.
Reply with quote
ahile
Newbie


Joined: 12 May 2004
Posts: 4
Location: Romania

PostPosted: Wed May 12, 2004 5:27 pm   
 
ok I replaced %a with %n same thing ( still does not work)
I don`t know if I have replaced all I had
I probably should have mentioned I`m no expert with Zmud triggers
also that trigger was given to me by some1

can u be a little more explicit about what I have to do
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed May 12, 2004 6:16 pm   
 
I probably shouldn't have mentioned the wildcards. %a isn't the best choice for numbers but it will work and didn't need to be changed. The important thing is to
REMOVE THE OUTSIDE SET OF PARENTHESES!
That's why the example I gave before removed the parentheses but didn't change the wildcard. You should also check that the pattern includes enough spaces between items.

Change your pattern from
Pattern: ((%a) H (%a) M)
to
Pattern: (%a) H (%a) M
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