Additional Conditions for skill usage

Hello!
As an introduction, I have VisuStella plugins, maybe it will help.

But speaking about the essence of my problem.
I am looking for a method for additional conditions for using a given skill by both the player and the opponents.

For example, I would like the skill "Orc buster" to be usable only against orcs as the name suggests. So I am looking for a method to make the skill usable against a specific enemy (for example enemy 002)

Secondly, I would like the same to apply to enemies.
For example, I want the skill "Elfen Doom" to be usable only against a specific actor in a situation when another effect is applied to him (paralysis, for example)

Is it possible to obtain such conditions for using a skill without additional dedicated plugins but based on the ones I already have?
Hi there, please study this mandatory reading so that we are better able to help you.

There's no way to tell what you mean with "VisuStella plugins" as there are many. But assuming that you mean the basic Core plugins: if you wish to have a certain skill only have effect on a certain type of monster, I would make a branching action sequence.

Secondly, I would like the same to apply to enemies.
I suppose that in this case, you want the enemy to EXCLUDE specific actors as potential targets? For that you would need a plugin that customizes the enemy AI.
There's no way to tell what you mean with "VisuStella plugins" as there are many. But assuming that you mean the basic Core plugins: if you wish to have a certain skill only have effect on a certain type of monster, I would make a branching action sequence.
Your guess are correct, the plugin that affects the battle is only Battle Core VisuStella MZ
I suppose that in this case, you want the enemy to EXCLUDE specific actors as potential targets? For that you would need a plugin that customizes the enemy AI.
That is also correct, i want to exclude specific actor as potential target.
I suppose i could use some dedicated plugin that would give a specification to actors that would identify them as a "race" and then set the skill to correlate with that specification, but I think a simpler but perhaps more time-consuming method would be to simply exclude the actor as a target for the skill by simple commands.

at the moment I am using the code below written in skill note window but I have the impression that sometimes it doesn't work properly
maybe i should write actor id inside brackets, although I found somewhere that it should rather look like this.
Spoiler: Code
<AI Priority>
condition: target.actorId() === 1 && $gameSwitches.value(201)
</AI Priority>


I also read that when I want the enemy to use a given skill exclusively for a given actor and additionally when a given switch is enabled, I should construct the code as follows.
Spoiler: Code
<AI Priority>
condition: target.actorId() === 1 && $gameSwitches.value(201)
</AI Priority>
In this case, the identification of the actor is always correct, but the engine does not take into account the condition in the form of a switch

Original thread: https://forums.rpgmakerweb.com/threads/additional-conditions-for-skill-usage.176121/