My maxmp: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>ZammyWarrior
No edit summary
imported>ZammyWarrior
No edit summary
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());
}