(MZ not MV) Making a common event add a state to last target

Is there a way to do this? I know you can just add a chance to add the state in the effects area, but i need this to be done through a common event for more flexability with skills. Or to give skills extra effects if certain conditions are met. Or maybe making a state that can surpress the secondary effects of skills whether there applied to ally or enemy. How would i do this?

P.s. i dont want to do it through force action, cause that messes with states that have a remove setting of "action end X"

Original thread: https://forums.rpgmakerweb.com/threads/mz-not-mv-making-a-common-event-add-a-state-to-last-target.126701/