MV Plugin that execute common event x after common event y

Hello everyone, I was wondering if someone could make a plugin for me for RPG MAKER MV its a very simple thing i believe I just need it to execute a common event after a certain common event solely through plugin

like if there was a common event named 1 and inside it you would put a common event called a
so common event a would execute after 1 was done
but I don't want to do it through common events
i want to create common event 1
then common event a
and put the condition that a should execute after 1 in plugins .js file only
is it possible?


The reason for this is for modding.
When I make a mods it conflicts with other people mods and they do not work together.

I want to make my mod solely through a custom made common event without modifying any
of the preexisting common events.

Gist of what I wanna do: Beforecommonevent,MiddleCommonevent,Aftercommonevent

When middlecommonevent is triggered execute the beforecommonevent first then the middlecommonevent and when its done do the aftercommonevent.
are you asking to use that plugin on games not made by yourself?
because otherwise your reasoning makes no sense...
are you asking to use that plugin on games not made by yourself?
because otherwise your reasoning makes no sense...
The game has a custom made mod loader which uses xdiff it is able to copy common events,items and other things across different mods successfully but it is unable to actually fix conflicts between the same common events thus why i want to do this.All I would have to do is put my mod files+that new plugin js file and the modified .js file and it would work with pretty much any mod.

Yes,it's on a game not made by myself.Its to make my mod compatible with other mods.
There must be some way to make a hidden common event that does not take up a visual database slot, but nevertheless, is one. (no pun intended)
There must be some way to make a hidden common event that does not take up a visual database slot, but nevertheless, is one. (no pun intended)
Ya,but even if it is actually hidden.That does not help me.I want to execute a common event in chain.
COMMON EVENT B ALWAYS AFTER COMMON EVENT A.
Whether its visible or not I do not really care lul.
You can just put the script $gameTemp.reserveCommonEvent(ID) inside the preceding common event at the end. ID can even be a variable defined by the player
Like this?

Original thread: https://forums.rpgmakerweb.com/threads/plugin-that-execute-common-event-x-after-common-event-y.166657/