My hp: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Efilnikufecin
No edit summary
imported>ZammyWarrior
No edit summary
Line 4: Line 4:
[[Category:Ash Functions |My hp()]]
[[Category:Ash Functions |My hp()]]
[[Category:Needs Code Samples | My hp()]]
[[Category:Needs Code Samples | My hp()]]
<pre>if(my_hp() == 0){
restore_hp(mymax_mp());
} </pre>

Revision as of 03:24, 31 August 2007

int my_hp()
Returns your current HP level

if(my_hp() == 0){
restore_hp(mymax_mp());
}