Help with move type.

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. 
junglechief, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


If you want to add something to your post, please edit it.


Also please note that in this community, we're talking about skills, not moves


That said, Escape probability is based on AGI values - if the actor AGI is much higher than the enemy AGI, Escape is more probable.


And for the skill itslef, you'll have to use a plugin to give you that option of converting drained MP to ally HP - I suggest checking Yanfly's plugins, but I don't know if he already wrote one
junglechief, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

If you want to add something to your post, please edit it.

Also please note that in this community, we're talking about skills, not moves

That said, Escape probability is based on AGI values - if the actor AGI is much higher than the enemy AGI, Escape is more probable.

And for the skill itslef, you'll have to use a plugin to give you that option of converting drained MP to ally HP - I suggest checking Yanfly's plugins, but I don't know if he already wrote one
Sorry about that. I had one thought. I have dug through the script files a lot. Where does it check the states of targets. I was thinking I might be able to do  a script call to make this work, if there is someway I can just get the stats of the target.
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.
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.
This sounds like an awesome idea, but how do you store the damage from the damage formula bar.This would solve a lot of problems for me. I have been digging through yanfly, I have most of his battle plugins. Haven't found a way to do it with them.

I also solved my escape problem.I had the atb plugin and couldn't figure out why setting a value of 1 in battle engine core wasn't working. Then I found the atb plugin ran it's own escape formula. Changed it there and it worked.
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.
You're welcome. In MV you can do a lot of things using the formula box since it is much longer than the one in VX Ace. If you need you can check the pinned topic to find ideas and options to put in the formula box.
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.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-move-type.50241/