So, I have a state called barrier, and I want for it to increase the user's defense by his attack, but I don't know how.
Any help, please?
Any help, please?
(b.def + (b.state?(barrier_state_id) ? b.atk : 0))
a.atk*4 - (b.def + (b.state?(barrier_state_id) ? b.atk : 0))*2
Thank you very much for helping, the first formula will help me a lot, thank you again!
Original thread: https://forums.rpgmakerweb.com/threads/increase-def-by-atk.108131/