Skill Affect User and one ally?

I'm making a skill with the concept of comrades.

The skill affects only the skill user and one selected ally.
That is, it affects only 'two' allies.

How can i made it?

+
Formulas and events are good, but I'm also using the yep plug-in.
Any help would be good with me!
What exactly do you want the skill to do?
I think you might need a plugin, like YEP Battle Core. You need something set the skill to target one Ally and have it also have "user." and "target." somewhere in your Lunatic mode. However, for more specific code, then the community at large will need to know the exact effect you need to write it for you. If you want to try your hand on it though, I suggest checking the Absorb Ailment on YEP website and adjust to what you need.
basically you make the skill target one ally, and use javascript code in the damage formula to affect the skill user a
for example a.hp+=10; would add 10 to the skill users HP.
What exactly do you want the skill to do?
If using the skill,
The user and the target(one ally) are given a beneficial stat(simple effects such as ATK bonus, HP regeneration...).
But, It doesn't work for the other allies except for the two.

I was inspired by the strategy game X-com.
The two comrades who fought many battles together there become a bond.
And get a beneficial effect, such as increased attack power.

basically you make the skill target one ally, and use javascript code in the damage formula to affect the skill user a
for example a.hp+=10; would add 10 to the skill users HP.
I'll test it right now.
I think you might need a plugin, like YEP Battle Core. You need something set the skill to target one Ally and have it also have "user." and "target." somewhere in your Lunatic mode. However, for more specific code, then the community at large will need to know the exact effect you need to write it for you. If you want to try your hand on it though, I suggest checking the Absorb Ailment on YEP website and adjust to what you need.
Just amazing

<Before Eval>
user.addState (id);
</Before Eval>

With this simple formula, I got the perfect effect I wanted.

I can finally wash my feet and go to sleep.

Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/skill-affect-user-and-one-ally.130887/