Which actor uses a skill?

Hello, I'm new to the forum so sorry if I'm posting in the wrong section (and if i'm writing nonsense).
I'll try to explain my problem: I'm trying to make a short and simple game "summon based", where the summoning system is the core of the battle. I don't know how to write code on java so I'm using existing plugins. In particular I'm using the Lady Baskerville's plugin for summoning actors and moogle's friendship system plugin to improve a sort of affinity system.
Spoiler: what i'm using
There are the plugins I'm using: https://forums.rpgmakerweb.com/index.php?threads/summon-actor.73950/
I'm trying to make possible to influence affinity (friendship) with the summon when the actor use a specific skill (for example A. uses fire and this enhance his affinity with the fire summon). But to do so I need to use common event call when the skill is used and I don't know how to transfer to the event the information about witch character used the skill.
I try to be more clear: A learn the fire summon, so the game starts to show is affinity level with this summon. To add point to this level I have to use a plugin command trough a common event. I want to add point whenever A uses a certain skill, but not when it is used by other members of the party.
So:
It is possible to create conditional branches that recognizes which actor used the skill that calls the event?
Thanks in advance
Moved to: RPG Maker MV
is damage formula
a.addState(X); formula
replace X with ID of a blank placeholder state.
replace formula with your normal skill formula or 0 if it doesn't use formulas for that skill.

now your common event can check for the state on the actor that used the skill using conditional branches.
remove the state as part of the event
there is no need to use the damage formula if you have the summon skill targeted on the user and have the state as an effect in addition to the common event effect (as the summon happens through the common event and is independent of target)
Yeah. It works! I have to use the damage formula because the problem was not with the summon skills, but with the common skills used in battle, so the target can't be the user. Thanks a lot for the cleaver tip.
Yup, @Tiamat-86's solution is very good. An alternative approach would be to make separate versions of the skill for each possible user, each of which runs a different Common Event that references that user.

This can be useful where the skill doesn't use a formula, where a Recover All effect could wipe out the state on the actor before it's noticed by your Common Event, or where there are only a few actors that can use a skill and you don't want to deal with Conditional Branches or complicated eventing. In most other cases, the "damage formula adds a state; common event checks for the state then removes it" solution is probably better than my way.
Yup, @Tiamat-86's solution is very good. An alternative approach would be to make separate versions of the skill for each possible user, each of which runs a different Common Event that references that user.

This can be useful where the skill doesn't use a formula, where a Recover All effect could wipe out the state on the actor before it's noticed by your Common Event, or where there are only a few actors that can use a skill and you don't want to deal with Conditional Branches or complicated eventing. In most other cases, the "damage formula adds a state; common event checks for the state then removes it" solution is probably better than my way.
Your suggestion was my first idea to resolve the problem, but for the sake of simplicity I preferred to have something with less skills and less common event. Understand how to point to the caster in the common event could be useful in other situation so I wanted to find a way to do it.
However your suggestion makes me wonder: is the damage formula applied by the system before the effect in the box, right? While the effect in the box, I suppose, are applied in their order, so if i put the common event before another effect, like parameter buff, the common event does not see it.
However your suggestion makes me wonder: is the damage formula applied by the system before the effect in the box, right?
Correct. Damage formulas are applied before Effect Box effects. If a Skill doesn't connect (for example Misses or Fails), the formula won't be applied and therefore any coded effects you have in the formula won't happen.

While the effect in the box, I suppose, are applied in their order, so if i put the common event before another effect, like parameter buff, the common event does not see it.
I believe this is incorrect (and did a test just now to confirm it, at least in a basic situation). The effects in the Effect Box are not strictly applied in the order they're listed. I think what happens is that different Effects have different priorities - so, for example, an Add State effect would always be applied before a Common Event effect in the same box. If you have multiple Common Event effects though, I assume they'd run in the order you listed them.
The system does not recognize multiple Common Event in the effect box and run just the one put below. However exist a plugin that corrects this limitation.
there is another option for same effects but more control or when stuff happens,
and can trigger even on miss also using multiple common events.
yanfly's action sequences plugins
requires a little extra work for every skill but can do MANY MANY things with it

Original thread: https://forums.rpgmakerweb.com/threads/which-actor-uses-a-skill.118762/