A way to activate a status at the start of a battlers' turn

I'm trying to make a status effect that is non-visible to the player dubbed 'active character', that activates at the start of/before a battlers action and lasts until their action is over. It's possible to do something akin to this in Action Sequence, but this has to be tied to a skill or an ability.

The reasoning behind this, is because I want to be able to call upon the currently active battler easier, and I also did not manage to find something more specific like acquiring the current battler's ID for use in other scripts.


What I would be after is setting this up so that every battler is affected by this effectively invisible status, effectively before their turn even takes place. Is this possible?


Any input would be appreciated.

Thank you.
Yanfly's Buffs&States Core has a notetag that might be able to do what you're looking for:
<Custom Turn Start Effect>
code goes here
</Custom Turn Start Effect>

Notetag description in plugin:
This requires YEP_BattleEngineCore. This effect will run at the start of each of the battler's turns. The code will process after all the other turn start effects have taken course.

http://yanfly.moe/2015/12/25/yep-50-buffs-states-core/

You can add an invisible state and then have your code run to check who is currently affected by the state, and then remove the state using this notetag at the end of that actor's turn.
<Custom Action End Effect>
code goes here
</Custom Action End Effect>
It's interesting but it says nothing about adding the status to battlers in the first place, the notetag script only seems to affect those already affected by the state.

In hindsight it might be easier to just get the script call of the currently acting battler so that I can just run a conditional branch to see which Troop/Party member is currently acting, and then apply that specific status to them there.
If you want to have a state applied to actors by default you could try using passive auto states. Depending on how you plan on implementing this you can have the passive state apply the new state at the start of the players turn via the commands fernyfer mentioned and remove it thereafter with the auto passive state.

http://yanfly.moe/2015/10/17/yep-13-auto-passive-states/
To be honest I think I've managed to circumnavigate this entirely by adding states at the end of an actors turn, this way Action end works the way I would like it to work rather than in the rather finicky manner it was seemingly before. I won't speak with absolute certainty yet though, such is the way of RPGMAKER MV.

Original thread: https://forums.rpgmakerweb.com/threads/a-way-to-activate-a-status-at-the-start-of-a-battlers-turn.103984/