Setting a Killswitch

Hey everyone,


When testing my game, I'm typically always working in fullscreen, and one thing I would love to be able to do is bind a key for an immediate killswitch (rather than have to go into the menu, shutdown, alt-tab out and close it, etc.)


I know I can trigger it through a Common Event via a conditional branch bound to a key, or with Yanfly's Button Common Events for an even greater choice of keys, but what command do I put in the common event itself? Is there a script or other thing I can call that effectively initiates the 'Shutdown' procedure? I don't want it going back to the title screen or a game over screen - I want the program to close.


Thanks in advance!
Script call: SceneManager.terminate();
Script call: SceneManager.terminate();



You're the best, YanFly...!


Are all of these types of script calls written down somewhere...?
I found it in rpg_manager.js. They're not documented in what they do if that's what you mean.
I found it in rpg_manager.js. They're not documented in what they do if that's what you mean.



Ehhh as long as they're (relatively) logically named, I think I can figure it out and stop asking the forums questions like these. 😛


Thanks again, my friend!

Original thread: https://forums.rpgmakerweb.com/threads/setting-a-killswitch.64067/