MV A state effect using YEP's Buffs & States - count EVERY turn?

I've found Yanfly's Tips & Tricks super helpful, but after digging around I haven't found an answer to this or how to do achieve it, but what I'm looking for is...!

A way to have a state count EVERY turn (actors and enemies) rather than the round as a turn. Would that be called per action than per turn? I dunno. So for a poison effect, with every single turn made in the round, the poisoned target receives damage rather than on THEIR turn in the round. Or with the Doom state, the countdown includes the same; with every turn made in the round the countdown decreases by 1 until it hits 0 and death occurs.

Hopefully I explained that well enough.

If anyone knows how to achieve this, I'd appreciate the assistance! Thanks!
Would that be called per action than per turn?
It's called...whatever you like 😛 Actions are referred to as turns within RPG Maker, but by default everything only looks at the current battler's turns.

So for a poison effect, with every single turn made in the round, the poisoned target receives damage rather than on THEIR turn in the round.
The only way I can think of to do this using the plugins/notetags you have access to (as opposed to writing custom code for it) is this:
Make a passive state that you give you every actor and enemy.

In that state, you do something like:
Code:
<Custom Turn End Effect>
$gameTroop.aliveMembers().forEach(battler =>
{
// Poison effect
    if (battler.isStateAffected(42))
    {
        battler.gainHp(-10);
        battler.startDamagePopup();
        if (battler.hp <= 0)
            battler.performCollapse();
    }
};

$gameParty.aliveMembers().forEach(battler =>
{
// Poison effect
    if (battler.isStateAffected(42))
    {
        battler.gainHp(-10);
        battler.startDamagePopup();
        if (battler.hp <= 0)
            battler.performCollapse();
    }
};
</Custom Turn End Effect>

And you'd make further entries for any other states you want to do things at those times, including the full code that would go inside each state, and including it in both the party and troop loops.

Someone else may have a different idea.
more or less the same idea as above, but if you have access to yanfly's passive aura plugin you could have every state like this have an aura effect to put a corresponding second state on all battlers, and then give that second state a <custom action end effect> to do the things you want to happen to all battlers with the first active
Dang! Thanks for the quick response, ATT_Turan, haha.
The only way I can think of to do this using the plugins/notetags you have access to (as opposed to writing custom code for it) is this:
Make a passive state that you give you every actor and enemy.
This is exactly what I was looking for; something using the note tags for the Buffs & States plugin.

I played around with it a bit and it works as far as ally turns go!

Code:
<Custom Action End Effect>
$gameTroop.aliveMembers().forEach(battler =>
{
// Poison effect
    if (battler.isStateAffected(15))
    {
        battler.gainHp(-10);
        battler.startDamagePopup();
        if (battler.hp <= 0)
            battler.performCollapse();
    }
});
$gameParty.aliveMembers().forEach(battler =>
{
// Poison effect
    if (battler.isStateAffected(15))
    {
        battler.gainHp(-10);
        battler.startDamagePopup();
        if (battler.hp <= 0)
            battler.performCollapse();
    }
});
</Custom Action End Effect>

However, enemy turns don't seem to add to the damage over time, so I'm still trying things out. Maybe a syntax thing?

more or less the same idea as above, but if you have access to yanfly's passive aura plugin you could have every state like this have an aura effect to put a corresponding second state on all battlers, and then give that second state a <custom action end effect> to do the things you want to happen to all battlers with the first active
Thanks, Robro33, that's also a great idea. I don't have that plugin but I might end up grabbing the bundle it's included in anyway at some point!
However, enemy turns don't seem to add to the damage over time, so I'm still trying things out. Maybe a syntax thing?
There's no different notetag for enemies versus players, it's Custom Turn End Effect regardless of what kind of battler the state is on.

So if you've put the passive state on the enemies, it should be running the exact same code.

Good call, @Robro33 - I've never used the auras, so I kind of forget it's there.
There's no different notetag for enemies versus players, it's Custom Turn End Effect regardless of what kind of battler the state is on.

So if you've put the passive state on the enemies, it should be running the exact same code.

Good call, @Robro33 - I've never used the auras, so I kind of forget it's there.

Sheesh, that's what I forgot to do. Add it to the enemies lol. It definitely works! Thanks for that!

EDIT:
With that, then, I'm also attempting a petrify state where each action adds to a counter. At the desired number, unless a healing item or something has been used, the battler will turn to stone.

This is what I've got so far, but it doesn't seem to fully function. I've just isolated it from the passive state we established where all of these action end state bits would be located.

Code:
<Custom Action End Effect>
var petrify = 0;
$gameTroop.aliveMembers().forEach(battler => {
if (battler.isStateAffected(14)) {
     petrify += 1;
     if (petrify == 5) {
        battler.removeState(14);
        battler.addState(15);
        petrify = 0;
        }
   }
});
</Custom Action End Effect>

State 14 is essentially the Petrify Counter state and 15 is the actual Petrified State. I have <Show Turns> in 14, but it doesn't display. Also I'm thinking Show Turns wouldn't work in the desired way here since I'm not counting turns in the typical sense.

EDIT EDIT: It looks to be that I'm setting petrify to 0 on each action, so I have to define it outside I guess! Working on it some more haha

Original thread: https://forums.rpgmakerweb.com/threads/a-state-effect-using-yeps-buffs-states-count-every-turn.168178/