Hello everyone,
I am using VX ACE and I have a script (see below) that heals the player when they level up. Works great! However it removes status effects. Don't get me wrong I want to remove the bad status effects but I have one status effect "well rested" that I would like to keep if it is active when the player levels up.
The status is given when the player sleeps at an INN and last for 1200 steps (gets removed afterwards.)
What I want to know is how to I stop the script from removing that particular status effect or can I just remove recover_all and have heal_poison, heal_paralysis, ect...
I am using VX ACE and I have a script (see below) that heals the player when they level up. Works great! However it removes status effects. Don't get me wrong I want to remove the bad status effects but I have one status effect "well rested" that I would like to keep if it is active when the player levels up.
The status is given when the player sleeps at an INN and last for 1200 steps (gets removed afterwards.)
What I want to know is how to I stop the script from removing that particular status effect or can I just remove recover_all and have heal_poison, heal_paralysis, ect...
Code:
class Game_Actor < Game_Battler
alias heal_on_level_up level_up
#--------------------------------------------------------------------------
# * Level Up
#--------------------------------------------------------------------------
def level_up
heal_on_level_up
recover_all
end
end