ID:266170
 
and have it show up and all that
SSJ4_Link wrote:
and have it show up and all that
mob
var
HP
MAXHP
mob/stat()
statpanel("stats")
stat("HP:", HP/MAXHP)



try somthing like that
In response to Nebathemonk
Nebathemonk wrote:
SSJ4_Link wrote:
and have it show up and all that
mob
var
HP
MAXHP
mob/stat()
statpanel("stats")
stat("HP:", HP/MAXHP)



try somthing like that

What if I heal whould it go over?
In response to SSJ4_Link
SSJ4_Link wrote:
Nebathemonk wrote:
SSJ4_Link wrote:
and have it show up and all that
mob
var
HP
MAXHP
mob/stat()
statpanel("stats")
stat("HP:", HP/MAXHP)



try somthing like that

What if I heal whould it go over?

if you change the MAXHP variable, that will display what it's value is, num, text, or even obj.
In response to Nebathemonk
Nebathemonk wrote:
SSJ4_Link wrote:
Nebathemonk wrote:
SSJ4_Link wrote:
and have it show up and all that
mob
var
HP
MAXHP
mob/stat()
statpanel("stats")
stat("HP:", HP/MAXHP)



try somthing like that

What if I heal whould it go over?

if you change the MAXHP variable, that will display what > it's value is, num, text, or even obj.

Okay, are you ready for this?
When you heal, it looks something like this, right?

obj
healing_potion
var/healing = 50
Healing()

obj
proc
Healing()
usr.HP += src.healing
if (usr.HP > usr.MAXHP) usr.HP = usr.MAXHP

Boom. Healing. Won't go over max HP. ;)
SSJ4_Link wrote:
and have it show up and all that

By programming it.
:)
:(
(

Have you tried that???
In response to SSJ4_Link
SSJ4_Link wrote:
Nebathemonk wrote:
SSJ4_Link wrote:
and have it show up and all that
mob
var
HP
MAXHP
mob/stat()
statpanel("stats")
stat("HP:", HP/MAXHP)



try somthing like that

What if I heal whould it go over?

Check out my write up on compact coding techniques at:
http://www.allhands.com/byond/code_1.htm

Towards the bottom is an example of a mob healing proc that should take everything into account that you need. It also shows you how to make objects that will heal you, such as potions. It would probably help you more if you read the whole article.

/mob/skysaw