Making a good healer script (finding maximum HP)
Kharlog
Member Posts: 5
Hi,
I'm making a script for any characters capable of casting healing spells. Generally HPLT or HPPercentLT are used to see if there is a need for healing and then some arbitrary number HPPercentLT(object, 50) or HPPercentLT(object, 75) are used to determine which kind of healing spell to use. This is quite dumb approach because every character has very different maximum HP. I would like to know how to get the maximum HP of the character and then calculate how many HPs have been lost (to determine which healing spell is sufficient). How to do this?
I'm making a script for any characters capable of casting healing spells. Generally HPLT or HPPercentLT are used to see if there is a need for healing and then some arbitrary number HPPercentLT(object, 50) or HPPercentLT(object, 75) are used to determine which kind of healing spell to use. This is quite dumb approach because every character has very different maximum HP. I would like to know how to get the maximum HP of the character and then calculate how many HPs have been lost (to determine which healing spell is sufficient). How to do this?
0
Comments