MZ State that changes physical or magic damage dealt by a percentage

Hello,

Let me start by saying I am still getting my feet wet. I'm not currently using any plugins or scripts, and I'm sure there's still a lot of stuff you can do even in the base engine that I don't understand yet. I may need a lot of handholding.

So I have found that it is simple enough to create a state that adjusts the amount of physical or magic damage a target receives by a percentage, using the Sp-Parameters "Physical Damage" and "Magic Damage". However, I've been struggling to figure out how to make a similar state that adjusts the amount of physical or magic damage a target deals by a percentage. I can adjust a target's Attack or M.Attack parameter by a percentage, but that is not the same thing and does not give me the damage output I desire.

This feels to me like something that shouldn't be that hard to do, but the answer is completely eluding me.
you could use state rates and/or element rates into your formulas to fake additional sp parameters that dont exist. If you reserved state 20 to be your "Physical Damage Dealt" trait, you can then use a.stateRate(20) in the formulas of your physical attacks to multiply the damage output by the rate's value and then have states/equipment boost/lower that rate.

imo its a better solution to use a plugin like Turan's Eval Tags or Visustella's Battle Core and make states that conditionally modify the battler's damage output using the JS notetags, or even modify the engine's damage formula code to always factor in the fake traits in skills of the correct hit type so that you dont need to put them in every applicable formula, but you can set this up without plugins or JS knowledge.
Ok, I think I got it to work, thank you! It may be a bit time consuming to put it into every necessary formula, but for the time being I feel more comfortable doing that; I'm just worried that plugins could alter things I've already set up in ways I don't want.

I've definitely got more questions coming, but this topic can be closed.
This thread is closed due to being reported as solved. If you need it reopened, report it to let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/state-that-changes-physical-or-magic-damage-dealt-by-a-percentage.178499/