My maxhp: Difference between revisions
Jump to navigation
Jump to search
imported>Zarqon more links, consistent formatting, logged-out info |
imported>Grotfang m moved My maxhp() to My maxhp: Conformity |
(No difference)
|
Revision as of 13:31, 1 March 2010
Returns your current maximum HP as an int.
This example attempts to restore you to full health if you have less than half of your possible HP.
if (my_hp() < (my_maxhp() / 2)) {
restore_hp(my_maxhp());
}
When not logged in, this function returns 0.