RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

[VXA] Recover HP and Mana upon leveling up.

Started by Aznkid367, July 26, 2012, 07:43:45 AM

0 Members and 1 Guest are viewing this topic.

Aznkid367

I just have a simple request, how do I make it so that the party members recover hp and mp when they level up?

pacdiggity

You could have a parallel process event running that checks if the actors' levels have changed, and if they are, recover their HP and MP.

Alternatively, you could use this snippet I just made up (anywhere in the Materials section of the script editor, preferably high up).
class Game_Actor < Game_Battler
  alias hpmprec_lvl_up level_up
  def level_up(*args)
    hpmprec_lvl_up(*args)
    @hp = mhp
    @mp = mmp
  end
end
it's like a metaphor or something i don't know

Aznkid367

Thanks, this works a lot better and is easier to use.