how to make moves like counter?

so i was wondering but is there a script to make skills like counter if you want to know counter is a move in pokemon which when attacked counter will do double the damage the oppnent did to it


or what about bide which bide is like counter except the user can't attack for 2 turns and then returns double the damage the oppnent did to the user


and lastly how do you make moves like retilate which retaliate is a move in pokemon which if a pokemon faints on the same turn retilate is used retailate will have double the damage
by default all skills are independent single actions - they store nothing and react to nothing else.


However, you can use scripts to introduce new mechanics into the game, and that includes new skill effects.


Ace' master script list already contains a thousand scripts, many of which are introducing new effects to the engine - I suggest you check it yourself to see what already exists.


You can find a link to the MSL in my tutorial "how to use a script" that is linked in my signature

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-moves-like-counter.66687/