How to make an avoid command

I've tried making a move called Avoid. It basically gives the player a 50% chance of avoiding all damage. But I can't seem to set this up correctly, how might I go about doing this?
Best option would be to create a state that adds EVA+50% and MEV +50% (evasion and magical evasion) and have a skill apply that state to the target.
Just make the skill apply a State that provides 50% EVA and MEV to the actor/enemy.
Alrighty, I forgot to add Magic Evasion, which would explain why it wasn't working, thank you. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-an-avoid-command.35118/