TLDR: I have included a lot of context in this post in case it would be necessary or useful, but the basic gist is that I have set up an action sequence with effects that happen only if a certain actor (ID 7) last acted, but currently if they are the last actor to act in a turn, then the enemies also gain the effect for the rest of that turn, which isn't what I want.
So the character Blossom in my game has states she applies to herself that allow her to follow up her own magic attacks. (So, she uses "En Garde" and as long as she has the state, any single-target magic skill she uses will be followed by a basic physical attack. She also learns "Doublement" which causes the magic attack to be used twice, and these can be used in tandem for a maximum potential string of Magic Attack > Physical Attack > Magic Attack > Physical Attack all in one turn.) Basically how this works is when she uses the skills associated with them, a switch is turned on. The state itself only really serves to show how much longer it will last and to turn the switch off when it expires.
(If you're curious about the skills, literally all they do is play an animation, apply the state to the user, and turn the switch on.)
Then, through the Visustella Battlecore action sequences, the basic spells in the game check the ID of the last actor who took their turn, and if it's 7, proceed to repeat attacks based on what switches are turned on
This almost works perfectly, but recently while playtesting I realized its fatal flaw. This common event is run by every single-target spell in the game, since these states can be combined with any of them. For the actors this doesn't cause an issue, but the enemies also use these spells. So if Blossom is the last party member to act in a turn and has either of these active, any enemies that have yet to act also take advantage of these follow-up attacks, since technically Blossom was still the last actor to act. I realize I could fix this by giving the enemies unique versions of the spells that do not call this common event but I would rather look for a cleaner solution first if one exists, and I haven't been able to find it on my own. As far as I've been able to find there is no way to necessarily check if it is the player's turn, but is there something that would have more or less the same effect? Or some other, smarter way to handle the attacks?
So the character Blossom in my game has states she applies to herself that allow her to follow up her own magic attacks. (So, she uses "En Garde" and as long as she has the state, any single-target magic skill she uses will be followed by a basic physical attack. She also learns "Doublement" which causes the magic attack to be used twice, and these can be used in tandem for a maximum potential string of Magic Attack > Physical Attack > Magic Attack > Physical Attack all in one turn.) Basically how this works is when she uses the skills associated with them, a switch is turned on. The state itself only really serves to show how much longer it will last and to turn the switch off when it expires.
Then, through the Visustella Battlecore action sequences, the basic spells in the game check the ID of the last actor who took their turn, and if it's 7, proceed to repeat attacks based on what switches are turned on