inherit
170365
0
May 2, 2024 17:57:14 GMT -8
NetMaster
~Welcome to my domain!~
789
August 2011
netmaster
|
Post by NetMaster on Sept 25, 2011 14:30:10 GMT -8
divisionsoftriad.proboards.comI have implemented the code as it shows, however the bar doesn't seem to fill up all the way: I somewhat fixed the bar being full. I changed the line of coding: var maxHpBar = 16; to var maxHpBar = 10; However that made the top bar not change to reflect any subtractions from the total amount of health. I'm trying to get it so that both bars will accurately reflect the percentage of health left and the bottom one won't stretch beyond the top one.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Sept 25, 2011 17:01:39 GMT -8
I vaguely remember writing this, but here is what I do remember. each of the "dots" under the bar represent 16 hp. the top bar is out of 16 as well. the faded green behind it is the full health bar of 16 below the current one. everything is basically base 16. so looking at 100/100, you have 6 dots.. 6x16=96.. plus you have 4/16 of the top bar being solid. that whole code was written as a request for some sort of special gaming system in mind that was popular at the time. if you want something a little more basic that shows a definite subtraction of value, try: www.wormocodes.com/index.cgi?action=display&board=codedb&thread=1231
|
|
inherit
170365
0
May 2, 2024 17:57:14 GMT -8
NetMaster
~Welcome to my domain!~
789
August 2011
netmaster
|
Post by NetMaster on Sept 26, 2011 15:25:29 GMT -8
Okay thanks Worm. I think I get how to modify based off that information.
|
|