Target Specific Buff

I would like my skill to target an enemy and buff a specific actor at the same time.
But the code below doesnt work. Any ideas?

I am using Yanfly's plugins...

Thank you in advance.

Code:
<after eval>
$gameActors.actor(12).addState(65);
</after eval>
The damage formula box is literally just a JS command executor. Here are a couple of links to other threads that might help you with that:
https://forums.rpgmakerweb.com/index.php?threads/damage-formulas-101.81905/
https://forums.rpgmakerweb.com/index.php?threads/rmmv-damage-formula-ideas-and-help.47099/
You can simply write user.addState(65) (for your actor using the skill) or target.addState(65) (for the target of your skill) instead of $gameActors.actor(12).addState(65) in your skill's Note Box (Not the damage formula box).
I believe he is trying to add the state to an actor that is not involved in the turn (ie is not the attacker nor the defender).

The code you are trying should work. Don't see anything wrong with it. Does the code give an error or simply not do anything? Is actor 12 in the battle party when you tried it (as far as I know, adding states does not work on reserve members)? A bit more info would help.

Original thread: https://forums.rpgmakerweb.com/threads/target-specific-buff.83246/