Globals

Title: Globals
Version: 2.0.0
Author: DKPlugins
Description:
Saves variables and switches regardless of the player’s saving. Allows you to have variables and switches that are not tied to saving, but are global for all new games.

"Help" languages: English, Russian

Terms of use
You can:
-To use the plugin for your non-commercial projects
-Change code of the plugin

You cannot:
-Delete or change any information about the plugin
-Distribute the plugin and its modifications

Details on obtaining a commercial license on my website

Download:
https://dk-plugins.ru/globals/
Version 1.1: Compatibility with the new file manager in DKTools version 0.992
Hi. I found that there is one problem when loaded the save file.

PHP:
DataManager.loadGameWithoutRescue = function(savefileId) {
    var globalInfo = this.loadGlobalInfo();
    if (this.isThisGameFile(savefileId)) {
        var json = StorageManager.load(savefileId);
      
        // The global variable and switches values will be loaded correctly.
        this.createGameObjects();
    
        // But, they are restored as a preceding JSON data at this line, so it is not ideal.
        this.extractSaveContents(JsonEx.parse(json));
      
        this._lastAccessedId = savefileId;
        return true;
    } else {
        return false;
    }
};

This plugin is pretty popular in Korea, so I've decided to inform the bug.
Version 1.2:
Compatibility with DKTools 2.0.0
Fixed bug where data could not be loaded when the game was loaded
Version 1.3:
Added support for Web
Version 2.0.0

Original thread: https://forums.rpgmakerweb.com/threads/globals.86142/