Making Skills Unusable Under Certain Conditions.

Hello, quick question for clarification.

I'm wondering if there's any way, either through eventing or scripting, that skills can be unusable if the target is inflicted with a certain state. For example: In my wrestling RPG, there's a simple 'downed' state that allows for certain moves such as elbow drops and body splashes to be used by the attacker if that condition is met. Simultaneously, the user cannot perform moves such as suplexes or karate kicks while the target is 'downed' and must forcibly 'pick up' the opponent or wait until they're 'standing' (in other words, the 'downed' state is removed) in order to perform said moves.

I apologize in advance if my question or explanation isn't clear enough.
First use Yanfly's Skill Restriction script and create a switch that will be turned On when the Downed state is applied and tie it to the skill you want. Now in the battle scene event create a page with a conditional branch that will check if someone is inflicted with the Downed State every turn. If they are then the switch will turn On and the skill cannot be used. Make sure to have the switch set to Off in the "else" of the conditional branch.
Edit: Nevermind, saw this was based on the target's states.
I would recommend using Hime's Scope Conditions script.  This script will allow you to designate conditions like "Karate Chop won't affect Knocked-Down targets".

Original thread: https://forums.rpgmakerweb.com/threads/making-skills-unusable-under-certain-conditions.41867/