ID:157139
 
Code:
mob/proc/Dcheck(mob/M)
winset(src,"default.bars","percent='[M.hp]%'")


I'm having a little problem that does not see the bars% percent of my hp, already have the bar set up, most do not trim

How do I get to see my percent% hp?
well you are changing the wrong value, i suggest you make an interface, then rename is as "name.txt" to get an idea of what everything has, also look at the Interface Reference and Lummox JR's interface tutorial

but anyway this is how you change the value of a bar

winset(src,"window.element","value=45")

just know that you change value, and the value must be a number

now for labels, because i see that percent its
winset(src,"window.element","text='text'")

remember those single quotes :P or else vars wont show...i think macro works to but i forget :|
In response to Masschaos100
If I put
winset(src,"default.bars","text='[M.hp]'")

I will see my hp can be 108619080, 196, etc.. The more I wanted to put so
100%, 10%, 55% ...
In response to SoulGamesProductions
if its percents your looking for then it would look something like this...im guessing your using a label :P, since when using bars u have to use numbers, and with labels its single quotes and text

first you make a a percent out of hp and maxhp and you change the value, it goes like this...
var/per = round(M.hp/M.maxhp*100)//M.maxhp, whatever the max is
winset(src,"default.bars","text='[per]%'")

In response to Masschaos100
Thank