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
Fewyn
Wanderer


Joined: 27 Sep 2002
Posts: 83

PostPosted: Sat Dec 03, 2005 11:06 pm   

Help with one more thing
 
Just need something to complete everything I've written up so far the help of a few people/


Hit Points: 2048 (2048)

This is what my prompt looks like, is there a way if the first number hits below 50% of the second number it will do some kind of command?

Thanks for any help!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Dec 03, 2005 11:37 pm   
 
#trigger {Hit Points: (%d) ~((%d)~)} {#If (%1 < (%2 / %1)) {do command} {do nothing/do something else}}
_________________
EDIT: I didn't like my old signature
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Dec 04, 2005 1:59 am   
 
Might need to make 1 little change to make it work correctly on the "prompt"

#trigger {Hit Points: (%d) ~((%d)~)} {#If (%1 < (%2 / %1)) {do command} {do nothing/do something else}} "" {prompt|nocr}
_________________
Zmud Support Library
Zmud Knowledge Base
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