MV [Solved] Placing a state on a specific character

Hello, fellow game makers. I am looking to solve a problem. I want to have AOE buff skills that adds a cooldown state only to the user. I am open to how to solve this, but I also have a method I'm using (which I don't like), and an idea. My current method: I am adding the state to the user in the battle formula; I do not like this method because it always displays a 0 damage notification. My current idea: to use a common event with a script that identifies the character using the skill, then adds the cooldown state specifically to them.
As I am using Yanfly combat plug-in for CTB combat, so the cooldowns plug-in does not work correctly.
Thank you in advance!

How I'm currently doing it:
Spoiler
1637119786902.png
Could you post the entire damage formula here? Perhaps it's not made correctly. Usually a formula outputting 0 damage means it's running an error and outputting what it can. Take a more careful look through it first to make sure things like all of the ()'s are closed and that it ends with a damage calculation.
Usually a formula outputting 0 damage means it's running an error and outputting what it can.
Looking at the description of his skill, it's not supposed to have any damage - it just applies and removes states. He has HP Recovery chosen just to have access to the damage formula field, he wants an end result of 0 but doesn't want it to show.
I do not like this method because it always displays a 0 damage notification.
I would take all of that out of the damage formula and write the skill up using Yanfly's Action Sequences. There are commands in there to add states, evaluate JavaScript, everything you want.
As I am using Yanfly combat plug-in for CTB combat, so the cooldowns plug-in does not work correctly.
Huh, really?
@VegaKotes this also occurs when formula isnt broken but there is no actual damage or healing in the formula. just using the formula box for user effects when the skill targets other units.

@Sirius270 do you have action sequences?
<setup action>
add state X: user
</setup action>
JavaScript:
<Custom Execution>
a.addState(447);
</Custom Execution>
...or...
JavaScript:
<Pre-Damage Eval>
a.addState(447);
</Pre-Damage Eval>
If "a" doesn't work, use "user.addState(447);" instead.
Wow! So many different ways to do this! Thank you, all! I plan on using Yanfly Action Sequences in the future, but I do not presently have it in use and do not have the time to fully use it, so I will be using Frostorm method (and it worked!). Thank you, all, again! I will likely refer back to this in the future when I add Action Sequences.
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/solved-placing-a-state-on-a-specific-character.142216/