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


Joined: 21 May 2021
Posts: 3

PostPosted: Fri May 21, 2021 8:14 am   

gauges
 
i need help making Health and Ki gauges with buttons please help

this is what my prompt looks like before battle and walking around in the mu
< Health(582,784/582,784) Ki(5,635,275/5,947,625) >

and this is what it looks like in battle
<Health[582,784] Armor[97,583] Ki[5,635,354]

can someone please show me how to make gauges for them
Reply with quote
chaossdragon
Apprentice


Joined: 09 Apr 2008
Posts: 167

PostPosted: Fri May 21, 2021 11:12 am   
 
Copy Paste the following..

#TR {Health~(&{curHP/&{maxHP}~)} {}
#TR {Ki~(&{curKI}/&{maxKI}~)} {}
#TR {Health~[&{curHP/&{maxHP}~]} {}
#TR {Ki~[&{curKI}/&{maxKI}~]} {}
#VA curHP {}
#VA maxHP {}
#VA curKI {}
#VA maxHP {}

create a new button and change its type to gauge, and go to the gauge tab and fill in the following for both HP and KI guages...
value = @curHP OR @curKI
max = @maxHP OR @maxKI
low = @maxHP/5 OR @maxKI/5

*set the color's and caption to suit taste. I prefer the gauges to be on toolbar2 on the options tab, and you can resize them here as well
** you may need to mess with %replace and %format to get the gauges to work due to the ,'s in the values.
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