State for attack buff problem

Hi, guys and ladies,

I want to make a state that gives attack buff decided by MAT of the buffer.

For example a fire mage casts Flaming Palms on his team member. I want the state to add attack element of fire to the buffed party member (don't know if "Attack Element" on the state adds element or changes element) and to add ass much damage to the attack as was the caster MAT when the buff was casted.

I will be glad if someone helps me with idea for a state or even custom damage formula or with a script.
I got the Idea but I want an in battle automated way.
This is a (in my country we call it that way) a lumberjack way...
it is automated in battle, that event page is a common which triggered when you use that skill
I know. And I can spot an easy way to turn the parameter back to normal but I prefer to use this as state if possible.

Thanks for your guide anyway.
Given the evidence, we heavily suspect that you are using a pirated RPG Maker, which is not tolerated here and we have an instant-ban policy regarding this. You have now been banned. If you feel we were incorrect and you have been falsely accused, you can send us a support question with proof of your purchase of the RPG Maker to revert our decision.

Original thread: https://forums.rpgmakerweb.com/threads/state-for-attack-buff-problem.43217/