MZ How to trigger common event upon "load game" (from save file) (Plugin?)

How can I set up a trigger for a common event in RPG Maker MZ that activates when I load a saved game and enter the game?

Already tried asking chatgpt and searching online and everywhere.
I give up.
Usually all savegames are self-contained, which means that they cannot detect anything outside their context and thereby not detect if they are loaded or not.

To solve that problem, you'll need a reference outside the game data, without that nothing is possible.

One way is a plugin for persistent variables, and then use a variable to coun t how often the game was saved.

Basically you'll need to compare one internal regular variable with the savecount to the external persistent variable - and if they are different then you'll know that the game was recently loaded.

Unfortunately even with that it is still a bit tricky to handle, but these hints should give you a starting point on how to handle this
Moved to: Plugin Requests
Galv's load common event does this.

https://galvs-scripts.com/2017/01/23/mv-load-common-event/

That should answer your question.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-trigger-common-event-upon-load-game-from-save-file-plugin.156318/