Difference between revisions of "My hp"

From Kolmafia
Jump to navigation Jump to search
imported>ZammyWarrior
imported>ZammyWarrior
Line 3: Line 3:
 
[[Category:Your Character | My hp()]]
 
[[Category:Your Character | My hp()]]
 
[[Category:Ash Functions |My hp()]]
 
[[Category:Ash Functions |My hp()]]
[[Category:Needs Code Samples | My hp()]]
 
  
 
<pre>if(my_hp() == 0){
 
<pre>if(my_hp() == 0){
 
restore_hp(mymax_hp());
 
restore_hp(mymax_hp());
 
} </pre>
 
} </pre>

Revision as of 23:58, 16 November 2007

int my_hp()
Returns your current HP level

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