Item boost skill

Greetings! I use Yanfly's plugins and I'm having trouble creating two passive abilities. I'm calling them item multiplier and item enhancer.

The idea is that the enhancer increases the effect of the item by a percentage. For example, a potion that heals 200 health. With the base enhancer ability, it would increase this effect by 50%, healing 300 health. With the advanced enhancer, it would increase by 100%, thus healing 400 health.

The item multiplier ability makes the item repeat its use. The same 200 potion, with the 2x multiplier, would heal 200 twice (total of 400). Well, the 3x multiplier would heal that value three times (total of 600).

And here's the thing: is it possible to have both the multiplier and the enhance

Let's say the character has the advanced power-up and a 3x multiplier, the potion would heal 1200 (3x(200x2)).

Some things to consider: the multiplier isn't a simple increase in the effect; it has to be a real repetition. In the case of the potion, it wouldn't make much difference, but let's say a bomb. It would be an attack of 200 - b.mdef. So the multiplication would have to be affected multiple times by the enemy's defense, and I would also like the animation to repeat. A truly a multiplie activation of the skill.
Hmmm, put like a custom confirm notetag where you check if (this.isItem() && user.isStateAffected(X)) and manipulate the 'value' variable. Haven't checked if that applies to the item effects too, but if not, then you can give them a state that increases their pharmacology s-parameter (remove the state afterward in another notetag).

For the multiplier just copy paste an action sequence to all your items that has a check for the multiplier state and then you put a conditional to repeat the motion/animation/effect (you can also put a check that you have enough items remaining if that's what you want).
You could also try to do it so that if you have the passive state you check before acting starts if some of the actions are item uses and then add multiple of those in the array, I think. But at what point you'd have to do it might depend on your battle system and not sure if it could mess with action end state timing.
Hmmm, put like a custom confirm notetag where you check if (this.isItem() && user.isStateAffected(X)) and manipulate the 'value' variable. Haven't checked if that applies to the item effects too, but if not, then you can give them a state that increases their pharmacology s-parameter (remove the state afterward in another notetag).

For the multiplier just copy paste an action sequence to all your items that has a check for the multiplier state and then you put a conditional to repeat the motion/animation/effect (you can also put a check that you have enough items remaining if that's what you want).
You could also try to do it so that if you have the passive state you check before acting starts if some of the actions are item uses and then add multiple of those in the array, I think. But at what point you'd have to do it might depend on your battle system and not sure if it could mess with action end state timing.
I was thinking of using some kind of notetag on the item or a common event on the item that checks if the character has the skill and forces its use. But my idea is that even in the case of multiplication, it only uses a single item.

In any case, I have no idea how to do it.
Well like I said make an Yanfly action sequence for the items (copy paste). You can do item action sequences in MV, right? And check for the multiply states in there with the user.isStateAffected(stateId)

Also, for the other effect, earlier I wasn't thinking clearly. You don't have to add and remove a pharmacology trait state. Just make that passive state give you the bonus to pharmacology.

Original thread: https://forums.rpgmakerweb.com/threads/item-boost-skill.181333/