MV Multiple damage formulas in one item.

Hi ^w^
I want it so items in my game scale with the caster's stats. EX: an item does "a.mdf * 3" healing.
But, I want to make an item that heals HP AND MP. Like certain items in paper Mario (https://www.mariowiki.com/Mushroom_Fry)
So, yeah. How do I make multiple damage formulas for one item?
Edit: Forgot to say "Thank you in advance ^w^!"
since its an item, it should be safe to put a command to restore MP in the formula box.
try something like this:

keep the item as hp recover, but give it the following formula
Code:
b.gainMp(a.mat*2);a.mat*3
and it should recover HP equal to 3*the user's mat, but also MP equal to twice the user's mat
You could also just make it be an HP Recover item that also has an MP Recover effect. That might not give you damage numbers for the MP though, not sure.
You could also just make it be an HP Recover item that also has an MP Recover effect
i think the issue with the mp recover effect here is that your options would only be % based or static. the amount recovered cant scale with anything other than the target's max mp
Ah yes, that's true. Good point.

Another option would be a skill chaining setup – a plugin that auto-triggers a skill after a skill or item is used. I don't know if such a plugin exists though. (I heard Himeworks was working on one as part of the Grid Battle System, but I think it was never released.)
since its an item, it should be safe to put a command to restore MP in the formula box.
try something like this:

keep the item as hp recover, but give it the following formula
Code:
b.gainMp(a.mat*2);a.mat*3
and it should recover HP equal to 3*the user's mat, but also MP equal to twice the user's mat
Exactly what I need!! TYSM!!
But what if I want the HP healing and MP healing to have an element, so it heals more if the target is "Vulnerable" or "Resistant" to the dedicated healing element I have.
Example: An accessory called "gluttony ring"or something that makes food heal a character more. Or a robotic character that doesn't heal as much from normal food.
It definitely sounds like skill chaining would be the best option for you then… but I really don't know of any plugin that implements that.
Example: An accessory called "gluttony ring"or something that makes food heal a character more. Or a robotic character that doesn't heal as much from normal food.
the hp portion would already be affected by element rate, but for the mp part, you can multiply it by b.elementRate(x)where x is the ID for the element

Original thread: https://forums.rpgmakerweb.com/threads/multiple-damage-formulas-in-one-item.181864/