I am using Tsukihime's Effect Manager, which can be found here: http://dl.dropboxusercontent.com/u/23043573/RPG%20Maker/RMVXA%20Scripts/Effect_Manager.txt
One of the effects I have is for healing the whole party. Unfortunately, it doesn't have a way of checking to see if the actors are alive or dead, and therefore gives dead character their share of the HP, in effect resurrecting them. This is a nice effect, which I will use (with higher MP), but I would also like a vanilla healing effect. Can someone tell me what to amend/insert in order for the effect to check if the actors are alive, and only apply healing to them?
This is the effect in question. The def item section is written as it is because I am using Yanfly's Battle Engine Script which stores the HP in a different variable from the default script. I don't think that tweak will affect my basic question.
Effect_Manager.register_effect🙂drain_share, 2.0)class Game_Battler < Game_BattlerBasedef item_effect_drain_share(user, item, effect) drained = @result.instance_variable_get🙂@stored_hp_drain) (user.friends_unit.members - [user]).each {|mem| mem.hp += drained mem.result.hp_drain = drained mem.make_damage_popups(mem) } endendThanks
One of the effects I have is for healing the whole party. Unfortunately, it doesn't have a way of checking to see if the actors are alive or dead, and therefore gives dead character their share of the HP, in effect resurrecting them. This is a nice effect, which I will use (with higher MP), but I would also like a vanilla healing effect. Can someone tell me what to amend/insert in order for the effect to check if the actors are alive, and only apply healing to them?
This is the effect in question. The def item section is written as it is because I am using Yanfly's Battle Engine Script which stores the HP in a different variable from the default script. I don't think that tweak will affect my basic question.
Effect_Manager.register_effect🙂drain_share, 2.0)class Game_Battler < Game_BattlerBasedef item_effect_drain_share(user, item, effect) drained = @result.instance_variable_get🙂@stored_hp_drain) (user.friends_unit.members - [user]).each {|mem| mem.hp += drained mem.result.hp_drain = drained mem.make_damage_popups(mem) } endendThanks