Ability to specify target of forced action

I need to use a forced action through a common event which a skill calls up. This forced action is to change the enemy's state.

However, the default only gives 2 options - the whole troop or selecting a specific enemy in advance who will get it.
But by definition I cannot know which enemy in a troop the player will use this skill on.

Is there a way (script call maybe?) that the forced action be used on the target instead of enemy 3, or whatever?

Thank you.
Hey, I think I have a solution. Make the action throw a Status on the target. For this example, let's call it Recognizer. Next, inside the common event, input:

[If Enemy Number 1 has Recognizer]
: "Put the effect"
[If Enemy Number 2 has Recognizer]
: "Put the effect"

.... and so on....

Then, it will let the game know whom has to be afflicted by your curse or whatsoever. But it will be important to cure the ennemies of Recognizer after the processing of the event otherwise it may interfere with the next uses.

I hope I'm clear, and I'm more hoping that this solution will work for you 😉
And this works perfectly.
Thank you. Much appreciated.

Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/ability-to-specify-target-of-forced-action.74454/