MZ Creating custom plugin (add global save data)

I just want to create a simple plugin.

All it needs to do is add three new entries to the global.rmmzsave data.

I have determine that that is done through DataManager.makeSavefileInfo
Please tell me what is wrong with the plugin I created below. I tried using the guide found here: https://docs.google.com/document/d/176S5ldh330fltOy9IEsrcAfeIWGkelWa/edit#

t1.jpg


EDIT: OK, even when modifying the core script it doesn't do anything, so I'm guessing I'm modifying the wrong thing to get the effect I want.

How do I add extra things to track in the global save data for MZ?
Alright, figured it out already. Just a bit of tweaking and now I've got custom info to track on my save files!

t3.jpg
you can better alias the function and add your new functions to it.
however, it wont work directly as the new info does nothing else.

what will they do in game?
what purpose should it has?

it 's nowhere to be found in the plugin though.

Original thread: https://forums.rpgmakerweb.com/threads/creating-custom-plugin-add-global-save-data.152752/