force next attack script?

hey so i belive i am not the only one who asked this but i am looking for a force next attack script where upon using a move you will be forced to use another move and can not use nothing else for example thrash


thrash is a move in pokemon which when used for the next 3 turns nothing else could be used except thrash including items
Here's one way of doing it.

Spoiler
thrash_00.PNGthrash_01.PNG

Original thread: https://forums.rpgmakerweb.com/threads/force-next-attack-script.66449/