My maxhp
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Function Syntax
int my_maxhp()
Returns your current maximum HP as an int.
Code Samples
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());
}
See Also
Special
When not logged in, this function returns 0.