Team Combo Help

I want to add a Marked status that when the target is hit by a different team member a different effect occurs based on who hit, then the mark is consumed.
How it would work:
The Hero hits a target, applying the Marked status.
If that target is hit by the warrior, the target gains the bleeding status.
If that target is hit by the priest, the party is healed a small amount.
If that target is hit by the mage, they gain the poisoned status
Once triggered, the marked status is consumed so it cannot be triggered again until reapplied.

The trouble I'm running into is how to get a common event to work, how to you 'call' the current actor and current target in script?
I need something like
If current actor == warrior
{var target = battler; target.addState(Bleeding); target.removeState(Marked);}
If current actor == priest
{var target = battler; target.removeState(Marked); ChangeHP: Entire Party +15; ChangeMP: Entire Party +15; ChangeTP: Entire Party +5;}
If current actor == mage
{var target = battler; target.addState(Poisoned); target.removeState(Marked);}

I have Yanfly's plugin library but the battle plugins don't seem to do what I want, or aren't very clear in how they would do them.
it might be easier to make the state be inflicted by a trait on either the actor or the weapons used by the actor? I might not be understanding your goal here properly
it might be easier to make the state be inflicted by a trait on either the actor or the weapons used by the actor? I might not be understanding your goal here propely
The point is for you to need to combo your attacks, making a weapon apply the state defeats the purpose entirely.
Character A applies the Marked status, then characters B, C, or D can trigger it for a boost.
I want to add a Marked status that when the target is hit by a different team member a different effect occurs based on who hit, then the mark is consumed.... I have Yanfly's plugin library but the battle plugins don't seem to do what I want, or aren't very clear in how they would do them.
With Yanfly's buffs and states, you can have the state do the effects directly. itll have a notetag thatll look something like this:
Code:
<Custom Deselect Effect>
if (this.isDamage() && user.isActor()){
    if (user.actorId()==[Warriors ID]) target.addState(bleed id);
    if (user.actorId()==[priests ID]) user.friendsUnit().aliveMembers().forEach(ally => ally.gainHp(some hp formula));
    if (user.actorId()==[mages ID]) target.addState(poison id);
   
    target.removeState(stateId);
}
</Custom Deselect Effect>
With Yanfly's buffs and states, you can have the state do the effects directly. itll have a notetag thatll look something like this:
Code:
<Custom Deselect Effect>
if (this.isDamage() && user.isActor()){
    if (user.actorId()==[Warriors ID]) target.addState(bleed id);
    if (user.actorId()==[priests ID]) user.friendsUnit().aliveMembers().forEach(ally => ally.gainHp(some hp formula));
    if (user.actorId()==[mages ID]) target.addState(poison id);
  
    target.removeState(stateId);
}
</Custom Deselect Effect>
I'll give this a try! Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/team-combo-help.162432/