|
Tigerlily Newbie
Joined: 01 Jul 2011 Posts: 6
|
Posted: Fri Jul 01, 2011 12:36 pm
Trigger for when spell points are below 'x'? |
What i basically want to do is setup a beep for whenever my spell points are displayed below 70.
The text looks as follows:
SP: [487/517]
so for example
SP: [47/517]
results in #beep.
Thanks for the help guys! |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Fri Jul 01, 2011 12:48 pm |
#TR {SP~: ~[(%d)/%d~]} {#IF (%1<70) {#BEEP}}
you may not need the tilde in front of the colon... i forget if it needed quoting in zMUD or not. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Tigerlily Newbie
Joined: 01 Jul 2011 Posts: 6
|
Posted: Fri Jul 01, 2011 12:56 pm |
sigh....
No beep,
what about this one
Spell Points : 63 / 517
is there a way to do if less than 70 here? |
|
|
|
Taz GURU
Joined: 28 Sep 2000 Posts: 1395 Location: United Kingdom
|
Posted: Fri Jul 01, 2011 2:07 pm |
#TR {Spell Points%s~:%s(%d)%s~/%s%d} {#IF (%1<70) {#BEEP}}
The %s accounts for variable spaces and I've escaped any character that could cause a matching issue possibly due to being a special character. |
|
_________________ Taz :) |
|
|
|
|
|