Battle: Play animation at actor turn start

Hey,

Something I just can't seem to figure out...
How can I play an animation or a common event at the start of each actor's turn, but not the enemies'?

I tried it with with Yanfly's Buff Plugin, creating a state and putting in the notes:

<Custom Turn Start Effect> $gameTemp.reserveCommonEvent(20); </Custom Turn Start Effect>

But nothing happened. Any other solution would be greatly appreciated


SOLVED!!!!!
Assuming that by 'start of actor's turn' you mean that it should happen right before the battle menu appears.

What I would do is to have the common event/animation happen at the very end of the turn before.
I'm not sure if Yanfly's plugin can call Common Events in battle, though I could be wrong.

However, I did find this: https://forums.rpgmakerweb.com/index.php?threads/state-common-events.57853/

Perhaps you could use this in conjunction with a state to do what you need? Maybe that actor gains an (invisible) state at the start of each of their turns, and that triggers the Common Event from this plugin? Unfortunately I'm at work so I can't test it out.
Assuming that by 'start of actor's turn' you mean that it should happen right before the battle menu appears.

What I would do is to have the common event/animation happen at the very end of the turn before.

This would solve my problem, however then it would also be shown when it's an enemy's turn...
I'm not sure if Yanfly's plugin can call Common Events in battle, though I could be wrong.

However, I did find this: https://forums.rpgmakerweb.com/index.php?threads/state-common-events.57853/

Perhaps you could use this in conjunction with a state to do what you need? Maybe that actor gains an (invisible) state at the start of each of their turns, and that triggers the Common Event from this plugin? Unfortunately I'm at work so I can't test it out.

I tried it and the script doesn't work for me, it says Undefined is not a function...
Oh yeah...I actually didn't notice that you had posted on that thread previously, lol - my bad. I'll try to think of another workaround, but someone with more JS knowledge than me will probably have to step in and help.

Original thread: https://forums.rpgmakerweb.com/threads/battle-play-animation-at-actor-turn-start.84997/