MV ♦ Make a Triangular Battle Mechanic -> Need help for skills condition

Hello ♪
I have a question about scipts (or plugin ? idk what i need to make it work) for battle mechanic.

I want to make a "rock paper scissors" system : creat a skill type for each (for rock, paper and scissors).
-> When player chose a skill, the battle animation begin normaly but i need a system to confront both attackers skills (player and monster) at the same time.
-> Then "rock paper scissors" mechanic calculate who is the winer (based on skill type).

• (exemple 1 : if player attack is a rock skill type and the enemy attack is a scissors skill type -> the player skill work normaly and the enemy skill is canceled)
• (exemple 2 : if player attack is the same skill type than the enemy attack -> both attack work but their effectiveness is halfed)

Then my question is how can i do this ? (if possible, i prefer use scripts rather than plugins)
Sorry about this long description 😢Thanks for reading, hope you can help me !
Moved to: Plugin Requests

Please do not make the same post multiple times. I have moved this one and deleted the other (which was also in the wrong place).

Original thread: https://forums.rpgmakerweb.com/threads/make-a-triangular-battle-mechanic-need-help-for-skills-condition.142684/