Difference between revisions of "My mp"

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

Revision as of 23:59, 16 November 2007

int my_mp()
Returns your current and highest available HP and MP levels

if(my_mp() == 0){
restore_mp(mymax_mp());
}