Recover HP/MP/States when Level UpVersion 1.0
by Woratana
Release Date: 10/06/2008
IntroductionHere is a little snippet I scripted after lost one VX game.
I just think that it should be easier (for player) if actors' status are recover when they level up.
Enjoy~
Screenshots-No screenshot-
ScriptPlace it above main
#===============================================================
# ? [VX] ? Recover HP/MP/States when Level Up ? ?
#--------------------------------------------------------------
# ? by Woratana [woratana@hotmail.com]
# ? Thaiware RPG Maker Community
# ? Released on: 10/06/2008
# ? Version: 1.0
#--------------------------------------------------------------
# ? How to use:
# Put this script above main, you can setup script below
#=================================================================
class Game_Actor < Game_Battler
#==================================
# * SCRIPT SETUP PART
#----------------------------------
RECOVER_HP = true # Recover HP when level up? (true/false)
RECOVER_MP = true # Recover MP when level up?
REMOVE_STATES = true # Cure all states when level up?
#==================================
alias wora_fullhpmp_gamact_lvup level_up
def level_up
wora_fullhpmp_gamact_lvup
@hp = maxhp if RECOVER_HP
@mp = maxmp if RECOVER_MP
if REMOVE_STATES
@states.clone.each {|i| remove_state(i) }
end
end
end
InstructionPlace the script above main.
You can setup script in setup part if you don't want to recover all HP/MP/states when level up.
Author's NotesFree for use in your work if credit is included.
Bug Report?Please give me these informations:
- What is it says in error window?
- When is it get error? (Right after run game, when you choose something, etc.)
- Do you have any other scripts running in your game that may crash with this script?