States damage dilema

In my game there are hundreds of states the main protagonists can affect enemies and vice-versa (enemies can affect my party) and each state has similar effect (deals percentage damage to HP and shows specific animation depending on element (ice, fire, earth etc) and each state has following notetag: https://prnt.sc/uz2dab (they differs effects and animations)

Wich is great, because it behaves exacly what I wanted and designed. The main problem begins, when specific actor or enemy has more than one or more states currently active, animations, damage popups, sound effects overlaps one on each other causing chaos on screen, confusing player wich and what kind of effect where triggered...

So... I wrote small function to "overcome" that chaos:
Spoiler
JavaScript:
Soulrender.prototype.dealDamageByStates = function(user){

    //obtain number of states on user
    var numStates = user._states.length - 1;

    //define default damage per state
    var dmgFormula = Math.floor(user.mhp * 0.05) - (user.mdf + user.def);

    //this variable will be handler to display damage in game (battle)
    var dmgDisplay = 0;

    //this variable will be summed value of all states on user
    //and calculate total damage to deal at end of turn
    var dmgDeal = 0;

    //sum damage by number of states
    for (var i = 0; i <= numStates; i++){
        dmgDeal += dmgFormula;
    }

    //set display variable
    dmgDisplay = dmgDeal;

    //if there are no states do nothing, else show damage value
    //and deduct calculated value from user
    if (numStates > 0){
        //user.customPopup() types
        //0 - neutral (white)
        //1 - positive (green)
        //2 - negative (red)
        user.customPopup("-" + dmgDisplay + " HP", 2);
        user.gainHp(-dmgDeal);
    }
    //end function - return 0 value to avoid unnecesary
    //additional damage to deal.
    return 0;
}
and this works also perfectly (everything - actors and enemies has that state as global - https://prnt.sc/uz2hvt) - this function sums all states on user and by that and formula calculates total damage to deal on user, but it shows no animations (I'll fix that later - cosmetic issue - not important at the moment)

So, the question of this issue, do you guys have some other alternatives how to deal with large number of states currently active on actor/enemy without causing mystagmus on screen for player?
I thought about queue'ing states effects, but that will end up in taking lot of time, before turns ends.
In my game there are hundreds of states the main protagonists can affect enemies and vice-versa (enemies can affect my party) and each state has similar effect (deals percentage damage to HP and shows specific animation depending on element (ice, fire, earth etc) and each state has following notetag: https://prnt.sc/uz2dab (they differs effects and animations)

Wich is great, because it behaves exacly what I wanted and designed. The main problem begins, when specific actor or enemy has more than one or more states currently active, animations, damage popups, sound effects overlaps one on each other causing chaos on screen, confusing player wich and what kind of effect where triggered...

So... I wrote small function to "overcome" that chaos:
Spoiler
JavaScript:
Soulrender.prototype.dealDamageByStates = function(user){

    //obtain number of states on user
    var numStates = user._states.length - 1;

    //define default damage per state
    var dmgFormula = Math.floor(user.mhp * 0.05) - (user.mdf + user.def);

    //this variable will be handler to display damage in game (battle)
    var dmgDisplay = 0;

    //this variable will be summed value of all states on user
    //and calculate total damage to deal at end of turn
    var dmgDeal = 0;

    //sum damage by number of states
    for (var i = 0; i <= numStates; i++){
        dmgDeal += dmgFormula;
    }

    //set display variable
    dmgDisplay = dmgDeal;

    //if there are no states do nothing, else show damage value
    //and deduct calculated value from user
    if (numStates > 0){
        //user.customPopup() types
        //0 - neutral (white)
        //1 - positive (green)
        //2 - negative (red)
        user.customPopup("-" + dmgDisplay + " HP", 2);
        user.gainHp(-dmgDeal);
    }
    //end function - return 0 value to avoid unnecesary
    //additional damage to deal.
    return 0;
}
and this works also perfectly (everything - actors and enemies has that state as global - https://prnt.sc/uz2hvt) - this function sums all states on user and by that and formula calculates total damage to deal on user, but it shows no animations (I'll fix that later - cosmetic issue - not important at the moment)

So, the question of this issue, do you guys have some other alternatives how to deal with large number of states currently active on actor/enemy without causing mystagmus on screen for player?
I thought about queue'ing states effects, but that will end up in taking lot of time, before turns ends.
how about queue'ing states but instead of one by one run 5 states max at a time... it will cuts lot of time... and 5 states effect might not causing chaos on screen... hope this help.
I checked your idea and in the very begining phase of game, where there is single hero and troops number varies between 1-3 it's ok, however, when you more progress and collect more heroes (max 6) and troop number also reaches max (6) and everyone is affected by that amount of 5 states it also takes time... Looks like I need to redesign my states database and either remove some of them, or I'll implement code, that will remove polar opposite states (e.g fire and ice/water will negate each other)
I checked your idea and in the very begining phase of game, where there is single hero and troops number varies between 1-3 it's ok, however, when you more progress and collect more heroes (max 6) and troop number also reaches max (6) and everyone is affected by that amount of 5 states it also takes time... Looks like I need to redesign my states database and either remove some of them, or I'll implement code, that will remove polar opposite states (e.g fire and ice/water will negate each other)
yeah i think there's no helping but to reduce the states... and/or... limiting the maximum states an enemy / actor can have...

but i'm curious about what you said about "when party reach 6, troop reach 6... and everyone affected by that amount of 5 states it also take times" statement... since if you're queueing 5 states pop at a time... there's no difference between 12 (actor + enemy) having 5 states each vs 12 (actor+enemy) having 1 states each... the time still the same... there's minor difference in theory... unless the states reach >5 each battler since it need to pop two times each battler...
@estriole - In practical it looks like following pattern I took by default:
depending on each battlers agility (from highest value to lowest) each battler at end of turn starts their states animations starts:

Battler: Fire (0.9 sec) -> Ice (1.2 sec) -> Wind -> (1.1 sec) -> Earth (0.6 sec) -> Divine (1.8sec) -> Demonic (1.4 sec) = 7 seconds total for one battler.

Because MV treats both each enemy and each actor as battler (only handler changes while taking turns) and if there are total 12 battlers and everyone
Spoiler
everyone2.jpg

is affected by those 6 states so it will take in total 84 seconds (1 min and 24 seconds) to begin next turn.
Not mentioning battle log...

Anyway, I think I know how to deal with it. I remove states animation, keep suming damage to deal with code from above, but I add another function wich will display following message log:
Code:
${enemy_name} took damage ${value} from ${states_names}

Harpy Lady took damage 1432 HP from Fire, Ice, Wind, Earth, Divine, Demonic.
@estriole - In practical it looks like following pattern I took by default:
depending on each battlers agility (from highest value to lowest) each battler at end of turn starts their states animations starts:

Battler: Fire (0.9 sec) -> Ice (1.2 sec) -> Wind -> (1.1 sec) -> Earth (0.6 sec) -> Divine (1.8sec) -> Demonic (1.4 sec) = 7 seconds total for one battler.

Because MV treats both each enemy and each actor as battler (only handler changes while taking turns) and if there are total 12 battlers and everyone
Spoiler
everyone2.jpg

is affected by those 6 states so it will take in total 84 seconds (1 min and 24 seconds) to begin next turn.
Not mentioning battle log...

Anyway, I think I know how to deal with it. I remove states animation, keep suming damage to deal with code from above, but I add another function wich will display following message log:
Code:
${enemy_name} took damage ${value} from ${states_names}

Harpy Lady took damage 1432 HP from Fire, Ice, Wind, Earth, Divine, Demonic.
ah i see... i though you're showing 5 states at the same time... if i remember correctly victor animated battle used to do that... all the states damage pop up in the same time...

also maybe swap '1432 HP' and 'damage':
Harpy Lady took 1432 HP damage from Fire, Ice, Wind, Earth, Divine, Demonic.
it sounds better in my opinion. 😀.
Yeah, right, I'll do it - I needed just to show example 😀 But please note, by default Yanfly's BuffStatesCore plugin do the same, all states and popups will show at the same time wich can cause chaos on screen and queueing states like I said earlier takes time when there are lot of battlers on screen with lot of states.

So I think (for 85% sure) I'll do it as I said 40 minutes ago 🙂 but I want to see if someone else got other ideas.
In my opinion, I don't think I need to see repetitive state animations (ESPECIALLY DoT states) in a game that is heavily revolved around buffs and debuffs, both for the technical and visual limitations. So for the sake of not dragging out a fight, it's best to omit them AND all condense all the DoT damage into a single damage instance. Other than that the only thing you really need is a way to display buffs/debuff icons on the enemies and an extra window the player can access that allows them to view what each state does in detail.

For popups, the ideal way to display them would be something like this:

Original thread: https://forums.rpgmakerweb.com/threads/states-damage-dilema.128676/