obj
hudMeters2
Chakra_01
icon='HUD2.dmi'
icon_state="0"
New(client/c)
screen_loc="8,11"
c.screen+=src
Chakra_02
icon='HUD3.dmi'
icon_state="0"
New(client/c)
screen_loc="9,11"
c.screen+=src
mob
proc
updateChakra()
var/percent=round(src.Chakra/src.max_Chakra*100,10)
if(percent>100) percent=100
if(percent<0) percent=0
for(var/obj/hudMeters2/o in src.client.screen)
o.icon_state=num2text(percent)
spawn(10)
src.updateChakra()
mob
var
Chakra=100
max_Chakra=100
But i am wondering How would I Make one were it says Ryo
and under it has how much cash you got says u got 900 it say
Ryo Chakrabar Healthhbar i already have the two bars
900 just want the ryo part how would i do it
This can be easily done with a self-updating label element. In your interface file, create a new label element. Go into its settings and make it a transparent label.
Next, within your code you'll want an infinite while() loop that constantly calls the winset() proc to "update" the text of the label element.