Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
zema
Wanderer


Joined: 22 Jun 2005
Posts: 79

PostPosted: Fri Sep 11, 2009 1:40 am   

gauges
 
I would like to make a hp bar i know you can set the variables max hp / min hp. But if i also remember correctly you have to make it read off of your mud prompt
which is what i am not completely sure how to do..this is what my mud prompt looks like. If someone could give me an example it would be greatly appreciated.
I do want to make other gauges, but i figured if i could get help with one i can do the others myself.

HP: 104/104 SP: 8/90
_________________
There are 3 things i hate kids, animals, and women with attitudes..
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Sep 11, 2009 3:16 am   
 
I believe in Preferences there's a mention of what your Prompt is and what variables you want to pull out of it. That will take care of the variables, but if you want to do a trigger use something like this:

#trigger {^HP: &%dcurrenthp/&%dmaxhp SP: &%dcurrentsp/&maxsp} {}

From there, create a button of type gauge. It's better to do this from the Settings Editor window. This button will now have a GAUGE tab in the Editor window. On this tab should be a place to enter the minimum value, the maximum value, and the current value. The minimum you'll probably want to set to 0. The maximum value can be set to @maxhp, and the current value (in the Value field) would be @currenthp.
_________________
EDIT: I didn't like my old signature
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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