Difference between revisions of "My maxmp"

From Kolmafia
Jump to navigation Jump to search
imported>ZammyWarrior
imported>ZammyWarrior
Line 3: Line 3:
 
[[Category:Your Character | My maxmp()]]
 
[[Category:Your Character | My maxmp()]]
 
[[Category:Ash Functions |My maxmp()]]
 
[[Category:Ash Functions |My maxmp()]]
[[Category:Needs Code Samples | My maxmp()]]
 
 
<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_maxmp()
Returns your highest possible MP level

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