|
Sorwen Beginner
Joined: 16 Nov 2001 Posts: 13
|
Posted: 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. |
|
|
|
undergod Wanderer
Joined: 27 Jun 2001 Posts: 82
|
Posted: Wed Mar 20, 2002 10:21 pm |
You need to use this:
Pattern: Health: ~[(%d)~/(%d)~] |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
Sorwen Beginner
Joined: 16 Nov 2001 Posts: 13
|
Posted: Wed Mar 20, 2002 10:29 pm |
That did it thanks. guess I had the option off before or something. Thanks a lot.
|
|
|
|
|
|