State ending vs State being removed

I am wanting to make a state that lasts for 200 steps, then is removed. Upon removal, it will run a Common Event.
HOWEVER, I do not want the Wizard to cast Dispel Magic and remove the state, triggering the Common Event.

What is the most effective means to do so?
Well, if you're running a common event on some timing, you're probably using a plugin to do so? Yanfly's Buffs & States Core has different notetags for "expires" and "is removed by any means," and let you put in arbitrary javascript, so that would be a simple way. I'm not sure about other plugins.
Maybe by using a conditional branch in the common event? The specifics, though, I couldn't tell...
Ah, many thanks all. Will hit up the Yanfly crew

Original thread: https://forums.rpgmakerweb.com/threads/state-ending-vs-state-being-removed.99952/