My hp: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>ZammyWarrior
No edit summary
imported>ZammyWarrior
No edit summary
Line 6: Line 6:


<pre>if(my_hp() == 0){
<pre>if(my_hp() == 0){
restore_hp(mymax_mp());
restore_hp(mymax_hp());
} </pre>
} </pre>

Revision as of 03:25, 31 August 2007

int my_hp()
Returns your current HP level

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