Any ideas on how I would get this move concept to work. I want to drain an enemy mp gauge and heal my party by the amount drained + 50% of max health.
Also, how do I make escape guaranteed.
Any help with this. I have been messing with it for a while. As far as I can tell, without plugins there is now what to have enemy mp used in calculation for a full party heal.
You could set the skill to be MP damage instead of MP drain, store the damage into a variable and let it call a Common Event that restores the whole party HP for the ammount you want (50% of damage or anything else). If I am not making a big mistake called events take place after formula execution.
You can do all of that with Yanfly's plugins. SkillCore (i think it's this one) will allow your skills to have more than one effect (here, damages and heal).
Also, if i remember well, BattleCore (another Yanfly's plugin) allow you to change the formula for escaping. If you set "1" to this formula, i think it would lead to 100% escape chances.
That's pretty easy, assuming your formula is YourDamageFormula you can do something like this:
r=(YourDamageFormula * b.elementRate(x)); v[y]=r; rchange x to fit the element you want to use for the skill and y with the id of the variable where you want to store the value.
NOTE: in order to store the correct value in the variable you have to apply the element rate before damage calculation. This means that the damage increment/reduction is already being calculated in the skill and the skill element should be "None" even if you plan it to be an elemental skill. If you want to set the skill to have an element different than none then you should change the formula to have:
r=YourDamageFormula; v[y]=(r*b.elementRate(y)); rThe Common Event should only have Change HP -> Entire Party -> v[y]
I had no idea this was possible in The skill formula bar and you have save me so much trouble.
I'll be testing this after work.
Awesome thanks again. I assume I can even call other skills if I want to play a seperate healing animation and use the stored variable in that skills calculation. Especially when used in tangent with yanfly action sequence.
Actually that's risky. If you want it to have a different animation then you should call it in a troop event that triggers at the end of the turn. I am not sure about it since I didn't read carefully the code but I think that forcing an action to someone who already acted is a bit risky, you could have strange things to happen. Anyway if you set the skill to be very slow and you set the troop event to force the healing skill the player won't see the difference.
I'll experiment and see how it goes. Couldn't hurt.