How To Make A Passive That Applies A Different Buff Every Turn and So on?

Hi, sorry if title sounds complicated. But wondering how I could create a passive effect that'll apply a different state every turn.
What I mean is, I want a passive that'll first apply an attack buff the first turn, then a defense buff the second turn, then a agility buff the third turn, and this continues to happen indefinitely until the battle ends.
Any help?

Also I have a majority of Yanfly plugins.
you said it should apply a state first and then said buffs afterwards, but do something like this and it should work

Code:
<Custom Turn Start Effect>
user._tick = ((user._tick + 1) % 3) || 0;

if (user._tick == 0) user.addState(x);
else if (user._tick == 1) user.addState(y);
else if (user._tick == 2) user.addState(z);
</Custom Turn Start Effect>
you said it should apply a state first and then said buffs afterwards, but do something like this and it should work

Code:
<Custom Turn Start Effect>
user._tick = ((user._tick + 1) % 3) || 0;

if (user._tick == 0) user.addState(x);
else if (user._tick == 1) user.addState(y);
else if (user._tick == 2) user.addState(z);
</Custom Turn Start Effect>
Thanks I'll try it out as soon I can.

Thanks I'll try it out as soon I can.
Works like a charm. Thanks!
This thread is being closed due to being reported as solved. If you need it reopened, let us know. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-passive-that-applies-a-different-buff-every-turn-and-so-on.167931/