Drain to all players

Hello 

Ive looked everywhere for a answer to this and found nothing.

I want a skill that is a hp drain on all enemy with all players receiving it, 

So for instance 

3 monsters apeared

Paula is ready for battle

lewis is ready for battle

christian is ready for battle

krysta is ready for battle 

Paula uses Final drain 

Every monster looses health and the heroes gain health equil to what was lost by the monsters. Thanks for help 😛 let me know if you need anything else!
This is complicated enough that I'd recommend holding off on it unless you're already comfortable working inside the game's scripts.

If you are comfortable working with the scripts, go to Game_Battler and find the make_damage_value method.  Find the line that reads: @result.make_damage(value.to_i, item)  You will want to make your modifications after this line, but preferably right after it.

value is the amount of damage done to a given battler, so you can split this among the party with something like so:

if skill.id == 72

party_size = $game_party.alive_members.size

for i in 0..($game_party.members.size - 1)

unless $game_party.members.dead?

$game_party.members.hp += (value / party_size).to_i

end

end

end

 

Replace 72 with whatever Final Drain's skill ID is.
ok thank you so much. You can close this thread now!
Well, this skill seems a bit too overpowered in my opinion. Anyway you can do this in few different ways: first of all you have to store the damage into a variable. For this purpose you can use the formula box with something like this:

v[x]+=(skilldamage)*b.element_rate(y); skilldamage

Change x with the ID of the variable you want to use and y with the ID of the element of the skill itself (if you don't the heal output could be greater or lesser than the damage value depending on how much the target is resistent or vulnerable to that element).

After doing so you can use the troops tab to set an event with trigger end of turn (turn) and force the character to cast a skill that heals the whole party using the v[x] ammount. Then the event should set v[x] back to 0.

You should also be able to do it via formula but this way should work fine expecially if you set the damage skill speed to -1000. This way the character will cast them in sequence.

EDIT: ninjed...anyway wavelength solution is much better then this one. If you are comfortable with scripts use that one.
Heirukichi Its basicly like a final fantasy limit brake/ overdrive. tales of mystic art.The player has to build paulas tp to 100 before you can use this skill
I did this in a very simple way using Tsukihime's effects manager.

I have 2 versions, one drains from all enemies and heals all allies, the second drains from all enemies, revives dead allies, and heals all allies.  You determine how much damage (and therefore how much healing) through the damage formula, and the skill cost is whatever you set.

If you're interested I can post them, but I don't want to clutter your thread up if it's not what you want.

Original thread: https://forums.rpgmakerweb.com/threads/drain-to-all-players.46079/