There are two crashes happening one is not related to my plugin. By the looks of it, it seems you need the PluginCommonBase.js from the official RPG Maker MZ plugins. Probably have him above KC mirrors.
I guess that, maybe fixing this, will also fix the other error.
About the common event. I guess maybe you are not understanding because I'm not following what you want and what you are doing. I need you to tell me in a way more objectively what you are trying to do. Example:
"I have an event below priority, and I want it to appear above the player"
A Below Priority event has the Z value equal to 1. When you change the zIndex with my plugin, it will be added to it. Example:
- Event 1 Below Priority = Z = 1 + zIndex
- If you set the zIndex with my plugin to 0.5, the result will be that:
- Event 1 Below Priority = Z = 1 + 0.5 = 1.5
My plugin only changes the visual aspect of it. It will not change collision. If you want a certain graphic to always be below the actor, you just have to set the zIndex value to change the default Z value of the event to be less than 3. The sum of Default Z + zIndex must be below 3.