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?
ID:157139
May 8 2010, 2:06 pm (Edited on May 8 2010, 2:23 pm)
|
|
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 |
In response to Masschaos100
|
|
Thank
|
but anyway this is how you change the value of a bar
just know that you change value, and the value must be a number
now for labels, because i see that percent its
remember those single quotes :P or else vars wont show...i think macro works to but i forget :|