Bypass the damage formula character limit?

I'm using the "a.add_state(12)" type stuff in my damage formulas, and they take up a lot of space that makes it impossible for me to get to the damage part of the formula due to the character limit.

I was wondering if there's a way to either shorten the formulas or bypass the max character limit.

I'm willing to use scripts if it'll help. I tried using Yanfly's Lunatic Damage but couldn't find a good tutorial on how to use it.
Hime has a Formula effects script that lets you put the damage formula stuff in the note window. For some reason I can't get to the website to give you a direct link, but you can find it on himeworks.com
Make a new script slot
Write your long formula in that script slot like this
Ruby:
def my_formula(a,b)
  a.atk - b.def
end
In the damage formula box, you just need to type my_formula(a,b)
You can even use multiple def
Edit: ignore this
Never mind. I got it squared away thanks to Theo's suggestion and a bit of elbow grease. Thank you very much, and feel free to close the thread.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/bypass-the-damage-formula-character-limit.165714/