// You can select any side
<Enemy or Actor Select>
// This is just to make a variable inside the target object
<Custom Target Eval>
if (target.isActor() === user.isActor()) {
target._isHealing = true;
} else {
target._isHealing = false;
}
targets.push(target);
</Custom Target Eval>
// This part is identical to Yanfly's, except the formula that I adjusted to my needs
<Damage Formula>
// Check if target and user are on the same team.
if (target.isActor() === user.isActor()) {
// Heal formula for allies.
value = user.mdf * 4;
// Otherwise for enemies...
} else {
// Damage formula for enemies.
value = user.mat * 4;
}
</Damage Formula>
<Pre-Damage Eval>
// Check if target and user are on the same team.
if (target.isActor() === user.isActor()) {
// Make it heal the ally instead.
value = -1 * Math.abs(value);
}
</Pre-Damage Eval>
// Here's where I made the animation different if healing or damaging
// Change the animation ID number to whatever you need
<Target Action>
if target._isHealing
animation 215: target
wait for animation
action effect
else
animation 101: target
wait for animation
action effect
end
</Target Action>