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.
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.