How do I make the game turn it's self off/crash in RPG Maker MV

So, in a game I'm working on, I want the game to close the application or crash it's self. I feel that having that effect would be good enough for the spook factor I want. I don't know if it requires a plugin or not, but I thought i'd ask.

I need this for RPG Maker MV

Thank you, and hopefully, I can figure this out with the help of fellow game devs. 😊

(Also, PS, if this is in the wrong category, or breaks any of the forum rules, just let me know! I don't fully know where to find the rule section in each forum place so yeah)
This is right, if it can be done without a plugin. If it's determined that it can't, we'll move it to plugin requests. Rules for each forum (for those that have their own rules) can be found pinned at the top. And no worries if you post in the wrong place, we just like to move them so if others have the same question, they can find the answer easier. And the blue text is just a courtesy to let you know we moved it.
This is right, if it can be done without a plugin. If it's determined that it can't, we'll move it to plugin requests. Rules for each forum (for those that have their own rules) can be found pinned at the top. And no worries if you post in the wrong place, we just like to move them so if others have the same question, they can find the answer easier. And the blue text is just a courtesy to let you know we moved it.
Nice to know! 😍
Just did a little test and the following script will close the game. Just add it to an event 🙂
Code:
window.close();
Just did a little test and the following script will close the game. Just add it to an event 🙂
Code:
window.close();
Awesome! Thanks so much!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-the-game-turn-its-self-off-crash-in-rpg-maker-mv.105942/