int my_mp() Returns your current and highest available HP and MP levels
if(my_mp() == 0){ restore_mp(mymax_mp()); }