Magic that gives lifesteal and heal all allies.

So I need an magic that will deal dmg to all foes and heal all allies.
I know how to make the magic hit all enemies, but I don`t know how to make it heal the other allies, it is only healing the caster.

How can I do this ?
I using YanFly Lifesteal plugin
Is not exactly what you asking but im pretty sure you can extract what you want from it.
Its Atonement form yanfly's tips & tricks:

Ill see if this works, but im sure its possible to call two skills at the same time...

You make the first skill your "heal all allies" skill, and your second one the "damage all enemies", then a third skill that calls both of them at the same time, maybe as a state?

Ill play around with it, see if it works without any plugins!

(Final Edit)

Ok! It took me a good ~30 minutes to figure it out, but i was right!

You make three skills:

1: Heal All Allies
2: Damage All Enemies
3: (What you call your real skill). Ill call this "Wake!" for now.

Wake! is a skill that has a scope of none, certain hits, and has an effect that calls the common event "Wakening!"

You make a common event called "Wakening!", and use force action on whoever uses this spell.

For example:

Text: Wake heals all allies!
Force Action: Lucius, Heal All Allies, Random (Calls first Skill)
Text: Wake now deals damage to all enemies!
Force Action: Lucius, Damage All Enemies, Random (Calls second Skill)

And thats it! I hope that helps!

Frank

P.S: This is a really cool skill to have, would you mind if i used this in my game since i helped you with the coding for it? =P
@Frankster300 yes u can use it.

I will try it tomorrow, thanks for the help.
@GuanyuMaker thanks for the help
How can I do this ?
I using YanFly Lifesteal plugin

Using Yanfly Skill Core just put it inside the damage skill:

Code:
<Post-Damage Eval>
var Damage = Math.floor(value);
for (var i = 0; i < $gameParty.aliveMembers().length; i++) {
    var actor = $gameParty.aliveMembers()[i];
    actor.gainHp(Damage);
    actor.startDamagePopup();
    actor.clearResult();
    };
</Post-Damage Eval>

Tha will heal based in the "Damage" variable. Currently will heal every allied basead in the damage caused (value). Just change it around to find the desired effect.
Have you looked at yanfly's biotic grenade tip and tricks?
Is 3:05 what you're looking for?

Original thread: https://forums.rpgmakerweb.com/threads/magic-that-gives-lifesteal-and-heal-all-allies.93971/