question about making a anger system buff

so i want to add something to battle where if a party member dies there's a small chance that any remaining party will get made and get the buff. is there a way to set this trigger
Troop events can be used for this
Troop events can be used for this

how would i go about doing that.?
One troop event per actor, conditioned on actor death, checks the random change by control variable and conditional branch and gives whatever bonus you want.
Use a plugin for base troop events so that you don't have to copy those events into every troop.
One troop event per actor, conditioned on actor death, checks the random change by control variable and conditional branch and gives whatever bonus you want.
Use a plugin for base troop events so that you don't have to copy those events into every troop.
this is for ace not MV ^^;
then use a script for base troop events - they exist for Ace as well.

Basically MV's plugins are just a more formal and automated way of writing scripts...
ok well is there any that you may know of?
Yanfly has one: https://yanflychannel.wordpress.com/rmvxa/utility-scripts/base-troop-events/
thanks ^^

Original thread: https://forums.rpgmakerweb.com/threads/question-about-making-a-anger-system-buff.90623/