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


Joined: 01 Jul 2011
Posts: 6

PostPosted: 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!
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: 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
Reply with quote
Tigerlily
Newbie


Joined: 01 Jul 2011
Posts: 6

PostPosted: 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?
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: 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 :)
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