I am pleased to know I've helped you out a bit, hehe, but I'm afraid this flies right over my head as far as my own problem.
Thank you, anyway, Aesica~
~ Dragon
Having it call a common event that checks if an actor is in the active party and heals it if that's the case should work too
This is why I love Yanfly's Skill Core plugin. So much customization 🙂
<MP Cost: 50%>
<Post-Damage Eval>
if (this.isHpEffect() && value > 0){
user.gainHp(value * 0.25)
}
</Post-Damage Eval>
I feel an explanation is in order; "this" refers to the context action, thus it's checking the skill for HP changes. value is the number displayed after the damage is dealt (positive is damage and negative is healing) and 0.25 is 25% in decimal form.
Wouldn't the user part only refer to the caster though? Or the player's team in general? I'll admit that's a little confusing. Or is it the 'actor' that refers to the character?
I'll try that out though and see if it works.
~ Dragon
just use (value / 4) instead of (value * 0.25). It is rounded down but it returns an integer.
That doesn't change much, heh.
But I have discovered a slight problem with the skill testing that out. It heals for each enemy hit... and not once for the skill being used...
I may have to get rid of the healing factor, but any suggestions would be a great help.
~ Dragon
Oh, change "user.gainHp(value * 0.25)" to "user.gainHp(Math.round(value * 0.25))" to negate decimal results.
If you want it after the skill's been used, place it in a <Custom Conclude Effect> set of notetags.
EDIT: The entire party is a little tricky; you will need this line for each battle party position:
$gameParty.members()[x].gainHp(Math.round(value * 0.25))
Where x is 0 up to the last battle position -1 (i.e. a party of four will have 0, 1, 2 or 3 for x from left to right).
Hm... that's... actually not a bad idea~!
I will try that out immediately~!
~ Dragon
Edit//: Er... how... do you make it so you can choose either ally or enemy your target?
Ooh... wait, it's the core thingy, isn't it?
I... feel like I'm getting no where.
I've installed the plug-ins and have figured out how to do the base of what I want with the skill, however... now the problem is that when enemies are selected, they take no damage. And when the party is selected... no health is gained. In addition to this, for some reason when I use the normal attack skill I can only select Bat B when I test my skills?
I am so sorry about all of this... I wish I knew what I was doing wrong.
~ Dragon
Have you got a screenshot of your entire skill and its' notetags?
Also, check the plugins are turned ON.
EDIT: If you still have Yanfly's skill core plugin, use the following notetag instead of <damage formula> for best results:
<Pre-Damage Eval>
if (this.isHpEffect() && value > 0){
if (target.isActor()){
value = Math.round(-value * 0.25);
}
}
</Pre-Damage Eval>
This does its' thing before the damage popups display themselves. If you want it to be a whole 25%, change "Math.round(-value * 0.25);" to "Math.round(target.mhp * -0.25);".