ID:266734
 
i wanna make a meter and such for stats, but spuzzums meter snippet didnt exactly help
Well how did Spuzzum's meter not help.
In response to Strange Kidd
spuzzums meter snippet only showed me a meter, it didnt show me HOw to make it or the code just what it looked like
In response to Magnus VI
Oh, you want a description on how to make it, sorry can't help ya.
In response to Strange Kidd
Check out my snippet on it.. Read the comments.

http://www.byond.com/hub/Rcet/Snippets

-Rcet
In response to Rcet
Rcet wrote:
Check out my snippet on it.. Read the comments.

http://www.byond.com/hub/Rcet/Snippets

-Rcet

I'm sure he wont be able to get it to work, he needs it how i add it, So, i'll show him.

Make the object

obj/HPBar
icon = 'hpbar.dmi'
layer=1000000001
New(client/C)
screen_loc = "1,1"
icon_state = null
C.screen += src
Update(C)
proc/Update(client/C)
var/mob/M
for (M in world)
if (M.key == C.key)
src.icon_state = "[round(((M.health / M.Maxhealth) * 100) / 3.33333333)]"
spawn (5) Update(C)



Now, make a file hpbar.dmi and make 30 icon states, 30 being a full bar down to 0 being empty. dont forget to put the numbers to, 1 - 30..

Now, code it into the hud

client
New()
new/obj/HPBar(src)
..()


Enjoy,

RaeKwon
In response to Magnus VI
When you downloaded the meter snippet, you also recieved the code for it. Look in your byond/users/you_windows_login/MyHub/spuzzum/metersnippet/Meter directory. It's right there in plain sight! ;P
In response to RaeKwon
You sure the layer is high enough?