Maybe? The syntax is correct, that formula will function in RPG Maker.
Whether it does what you want is kind of up to you. You say you want "the difference between the actor's ATK multipler and the enemy's ATK multiplier," but there's no such thing in the engine and you're not multiplying them by anything in your formula (well, you're multiplying the actor's ATK at the beginning).
The last bit of your formula is just adding (or subtracting) the difference between their ATK parameters. Is that what you mean?
If you don't think your formula is doing what you want, try to reword what your goal is.
it actually works. But, I forgot to explain about the multiplier... i will explain it
Bonus damage is based on the difference between A.atk and B.atk, but it will be multiplied based on the difference , so the higher the difference --- the higher bonus damage.
Notes and example :
- Actor A ATK is 50, meanwhile Actor B ATK is 20
the difference is : 50-20 = 30 points.
- difference multiplier :
0 - 30 points : x1 bonus (bonus 0-30 damage)
31 - 50 points : x3 bonus (bonus 93-150 damage)
50 - 99 points : x5 bonus (bonus 250- 495 damage)
> 99 points : x10 bonus (bonus 990+ damage)
- if B.atk is higher than A.atk , no bonus damage. it will just do normal damage.