MV Yanfly State Remove/Apply Common Event effects at the same time?

I'm working on solving a larger issue but one solution I'm testing seems to be hindered at the moment.

I am trying to play a common event when a state is applied by a skill but it also removes a state when it is used which I would also like to play a common event as it is removed.

Part of the removal effect plays, however the common event portion of the removal effect does not play, only the common event of the newly applied state plays.


This is what the coding looks like which seems to work however if STATE 1 is removed by a skill that applies State 2 then the common event effect of STATE 2 does not occur.

I have also tested and a skill that removes STATE 1 without applying a new state DOES allow the common event to function properly.

Untitled2.png

Thanks for the help in advance!
Moved to: Plugin Support
I think this is happening because the event for the state removal and attached to the new state are getting called at essentially the same time.

Try adding this plugin:
Thanks! This might do the trick! It's also just pretty useful in general.
I think this is happening because the event for the state removal and attached to the new state are getting called at essentially the same time.

Try adding this plugin:

@Shaz I think I was just going to ask about if Common Events could play at the same time before I decided to go into more details about the plugin specific situation and forgot to switch forums, whoops mb!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-state-remove-apply-common-event-effects-at-the-same-time.142038/