The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: rofl1337 on March 12, 2014, 05:10:07 PM

Title: [VXA] Get parameters of specific targets of spell
Post by: rofl1337 on March 12, 2014, 05:10:07 PM
So, I am trying to recreate that one spell from Might and Magic 6, that redistributes the current Hitpoints of your Party.

The spell combines the HP of each character and then redistributes the sum amongst them.
What I need, to do this, is a way to obtain the current HP of each individual member of the active party.

Can anyone help me out?
Sincerely
Title: Re: [VXA] Get parameters of specific targets of spell
Post by: Axel Mherkor on August 25, 2014, 02:00:38 AM
I don't know if you continue needing this one, but you can get the sum of the party members current HP with this code:

Code: [Select]
    totalHP = 0;
    $game_party.members.each { |actor| totalHP += actor.hp }