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
Sorwen
Beginner


Joined: 16 Nov 2001
Posts: 13

PostPosted: Wed Mar 20, 2002 9:55 pm   

trigger problem
 
I had this trigger working before but now it will not work. I've recreated it copy paste the whole 9 yards and still no go.
The data being passed at the moment is:
Health: [31/31]

Pattern: Health: [(%d)/(%d)]
value:
@hp = %1
@hpmax = %2

the space between Health: and the [ is always the same no matter the size of the numbers inside. It use to work fine and now nothing.

Thanks.
Reply with quote
undergod
Wanderer


Joined: 27 Jun 2001
Posts: 82

PostPosted: Wed Mar 20, 2002 10:21 pm   
 
You need to use this:

Pattern: Health: ~[(%d)~/(%d)~]
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Mar 20, 2002 10:22 pm   
 
Pattern: Health: ~[(%d)~/(%d)~]

[] <> {} () etc have to be ~'d as they can be
interpreted by zMud.

(Pattern Matching: ~ quote the next
character to prevent it to be interpreted as
a wild card.)

quote:

General Parsing:
Allow [] for eval (local)

Controls whether brackets [] are parsed in the command line to indicate immediate evaluation of expressions. Default is on.

Allow <> for expand (local)

Controls whether brackets <> are parsed in the command line to indicate immediate variable expansion. Default is on.


quote:

Pattern Matching:
For example, the pattern ~[test~] will match the string [test] rather than being interpreted as a range wild-card pattern. Note that the quote character can be changed in the Preferences section.




TonDiening
Beta Upgrading to 6.26
Reply with quote
Sorwen
Beginner


Joined: 16 Nov 2001
Posts: 13

PostPosted: Wed Mar 20, 2002 10:29 pm   
 
That did it thanks. guess I had the option off before or something. 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