Yes, if it is too big you have to put it in a script page, there is no other way around.
The one suggested is a possibility, another one might be this one:
Code:
class Game_Battler < Game_BattlerBase
def flames_of_rebirth(b)
$game_party.members.each do |m|
m.hp += (m.mhp * percentage / 100) if (m.hp == 0) # change percentage here to be the variable you use to store the actual percentage
end
end
end
This way you can call it in your damage formula box this way:
Code:
a.flames_of_rebirth(b); damage_formula_goes_here
Both this and the one in the previous post are fine, just pick the one you like the most.
Just keep in mind that a skill written this way doesn't check if the user is an actor or an enemy and automatically revives actors. So you are the one who has to be sure that enemies cannot cast this skill.
I did a little edit in my previous post since I missed a semicolon. If you copied the code there be sure to copy it again. Missing semicolons are extremely annoying.