Okay, is this separate from your initial question in support, or is it connnected?
The following code will restore an actor to 1 HP if he was just dead, and if not, will restore 0.5% of his HP and MP. It has no graphical component. If you want something different, please ask.
class Scene_Battle
#--------------------------------------------------------------------------
# * End Battle
# result : Results (0: win, 1: escape, 2:lose)
#--------------------------------------------------------------------------
alias ghero_hp_recover_to1_on_bttl_end_8fbf battle_end
def battle_end(result)
ghero_hp_recover_to1_on_bttl_end_8fbf (result)
return if result == 2
$game_party.members.each { |actor|
if actor.dead?
actor.hp = 1
else
actor.hp += (0.5*actor.maxhp).to_i
actor.mp += (0.5*actor.maxmp).to_i
end
}
end
end