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


Joined: 24 Oct 2005
Posts: 3

PostPosted: Mon Oct 24, 2005 5:39 pm   

Capturing Ranges of Numbers?
 
Name: Matt Davenport

I am trying to make a trigger that will heal me if my hp drops to any
number between 1 and 79. I know how to make a trigger that will do it
for a specific number, and I could make one for every # between 1 and
79, but I know there must be a better way.

This is a cut and paste of my prompt: (9131/320/399/178). the first #
is my xp to next level, the second # is my current hp, the 3rd # is my
current endurance, and the last # is my current mana.

What I have figured out so far is that I can use
(&n %n/79/%n/%n) as my pattern, with 'c heal' as my value, and then
create one for every number between 1 and 79, but again, I know there
must be a better way.

Please help! :)
_________________
Your Perceptions Determine Your Reality
Reply with quote
talonfreak2003
Beginner


Joined: 02 Dec 2004
Posts: 27
Location: Kansas... whippie!

PostPosted: Mon Oct 24, 2005 6:27 pm   
 
#TRIGGER {^({%d}/{%d}/{%d}/{%d})$} {#IF (%2<79) {cast 'heal}}
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