How to save a switch to the gobal save file

Basically what I want to do is force a save to the global save file for one specific switch if its ever triggered so that upon game launch thanks to a plugin I have installed, the event will check everytime to see if its on or not and such.


If the global save file is unique to yanfly's save core then I'd like to know how to alter it just the same.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-save-a-switch-to-the-gobal-save-file.63979/