HP-based Skills

I'm trying to implement a skill that makes damage to the user and heals every party member, but I can't both target the user and the team-mates with just a skill, so... is there a way to implement this or I need a plugin?
@diamantico21


There are many methods to produce this effect.  I don't know of any without using a plugin.


Here's how I would approach it using plugins:


One way is to have the ability just be a heal-all and cost HP to cast (in addition to whatever else you want it cost).  This capability  is already pre packaged in Yanfly's skill core plugin.


http://yanfly.moe/2015/10/13/yep-8-skill-core/


Alternatively if you don't want the skill to have the HP as a cost, but rather it be an effect of the skill (in addition to the party heal), you can do so using Yanfly's action sequence plugin.  That action sequence plugin is awesome!  It has a learning curve, but once you learn to use it you can do just about whatever you want with skills.


http://yanfly.moe/2015/10/11/yep-4-action-sequence-pack-1/
Or, without a plugin with a script call:


You create the skill, it heals everyone as its basic effect, plus it calls a common event upon use.


In the common event put as a script call:


$gameVariables.setValue(your_variable_id,BattleManager._subject._actorId)


This puts the casting actor id in the game variable provided as id.


You then substract hp using the change actor hp command. This won't display the hp loss however. But you can force an action that will if you want, or do anything really.


Tested and working in my project ^^.


Edit: If it is hp costs that you are after, not decreasing hp after use, there is no way around a plugin for that.
Thanks to both of you for the help, the plugins work fine for me, so I'll be using 'em ^^.


Thanks again, I think this can be closed now.

Original thread: https://forums.rpgmakerweb.com/threads/hp-based-skills.64004/