Intentionally making the game crash script

Status
Not open for further replies.

nhok9

Villager
Member
Joined
Jan 28, 2016
Messages
5
Reaction score
0
First Language
vietnamese
Primarily Uses

Hello there ! So i am working on a project and i want to have a script where it make a game crashed but not for any reasons or maybe i can edit the crashing box so that it said what ever i want ? And when the player open the game , the stage they are at already got saved or better yet ,when the player turn the game on the game is still continuing ...kinda like in undertale where you're fighting omega flowwy . Yeah That's what i wanted , Thank you!!! 
 

Rinobi

Veteran
Veteran
Joined
Mar 24, 2014
Messages
579
Reaction score
219
First Language
English
Primarily Uses
RMVXA
This was an interesting request so I whipped something up. The script lets you set a switch that should immediately 'crash' your game once triggered.
 

Code:
#==============================================================================
# Rinobi: Force Crash
# -----------------------------------------------------------------------------
# Allows the developer to crash their game whenever they please.
#==============================================================================
# Version History:
# -----------------------------------------------------------------------------
# 1.0 [05/14/2016] Completed
#==============================================================================
# * Instructions
# -----------------------------------------------------------------------------
# Set the default switch and message within the settings module below.
#==============================================================================
# * Compatibility
# -----------------------------------------------------------------------------
# Alias Methods:
# - update_basic -> Scene_Base
#===============================================================================
module RINOBI module ForceCrash # No Touchie!
#===============================================================================
# ** Settings Module
# ------------------------------------------------------------------------------
# Switch = The global switch ID that will crash the game once turned on.
# Crash_Message = The text displayed within the crash message box.
#===============================================================================
  Switch = 0
  Crash_Message = "Yeah, no. Let's try that again."
#===============================================================================
# ** End of Settings
#-------------------------------------------------------------------------------
# Editing beyond this area may result in unfathomable terror.
#===============================================================================
end end # No Touchie!
$imported = {} if $imported.nil?
$imported[:RIN_ForceCrash] = true
#===============================================================================
# ■ Class: Scene_Base
#===============================================================================
class Scene_Base
  #--------------------------------------------------------------------------
  # * Update Frame (Basic)
  #--------------------------------------------------------------------------
  alias :crash_update_basic :update_basic
  def update_basic
    crash_update_basic
    return unless $game_switches[RINOBI::ForceCrash::Switch]
    msgbox(RINOBI::ForceCrash::Crash_Message)
    exit
  end # update_basic
end # Scene_Base
 

nhok9

Villager
Member
Joined
Jan 28, 2016
Messages
5
Reaction score
0
First Language
vietnamese
Primarily Uses
Thank you dude!!!
 

Sir_Volt

Warper
Member
Joined
Jan 29, 2019
Messages
1
Reaction score
0
First Language
Italian
Primarily Uses
RMMV
Thank you for this script, i really needed it.
I have a small question though:where do i need to copy the code that you created? Do i have to convert it into a js? Sorry if this sounds like a stupid question, but i'm just starting to use RPG maker.
 
Joined
Jan 22, 2019
Messages
1
Reaction score
0
First Language
Estonian
Primarily Uses
RMVXA
Thank you for this script, i really needed it.
I have a small question though:where do i need to copy the code that you created? Do i have to convert it into a js? Sorry if this sounds like a stupid question, but i'm just starting to use RPG maker.
RPG Maker VX Ace uses scripts written in Ruby.
RPG Maker MV uses plugins written in Javascript.

If you're using MV, this script won't work for you. You're in the wrong forum. You wanna head to Javascript boards -> JS Plugin Requests.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,225
First Language
Dutch
Primarily Uses
RMXP

Sir_Volt, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top