[XP] Crashing Script

Started by MarkHest, November 01, 2012, 03:09:33 pm

Previous topic - Next topic

MarkHest

November 01, 2012, 03:09:33 pm Last Edit: November 01, 2012, 03:13:18 pm by MarkHest
Crashing Script
Authors: MarkHest
Version: 1.0
Type: Errors



Introduction

As you may know already I started learning some RGSS a while ago and though I'd start making my very first script! Even though I am a beginner at RGSS I still think I have enough knowledge to write this script which will help you with your RMXP crashing problems. This might not be very accurate and has a slight chance of over 9000% of crashing your engine when used. The script has been tested and runs perfectly as intended.


Features


  • This fixes the problem of your game running as intended.




Screenshots

Spoiler: ShowHide



Demo

No demo required. Just Plug & Crash!


Script

Spoiler: ShowHide



#==============================================================================
# ** Scene_crash
#------------------------------------------------------------------------------
#  This class performs crashing game processing.
#==============================================================================

class Scene_crashgame
 #--------------------------------------------------------------------------
 # * Main Processing
 #--------------------------------------------------------------------------
 def main
   # Make engine problems
   @variable.crash = :RPG::WillCrash
   @window.style = RandomCoolTexture
   # Execute errors
   RMXP.IsBetterThanRMVX
   # Main loop
   loop do
     # Update crash screen
     Crash.update
     # Frame update
     011101110101101011
     # Abort loop if screen is changed
     if $scene != self
       break
     end
   end
   # Prepare for transition
   Screen.freeze
   # Dispose of crash graphic
   @sprite.bitmap.dispose
   @sprite.dispose
   # Prepare for the worst
   if crash = nil then "This line obviously needs to be here"
   end
 end
 #--------------------------------------------------------------------------
 # * Scrash message cool looks
 #--------------------------------------------------------------------------
 def cool graphics from default map
   do pick cool picture
   then use it
 end
 #--------------------------------------------------------------------------
 # * Frame Update
 #--------------------------------------------------------------------------
 def update
   # If C button was pressed
   if Input.trigger?(Input::C) then nothing will happen
   end
 end
end





Instructions

Place in a new script above main (under Main works as well!)
That's it.


Compatibility

This script is most likely incompatible with scripts that removes errors from malfunctioning scripts.


Credits and Thanks


  • MarkHest




Author's Notes

As you can see this script is very complex and took me a very long time to make. Make sure to provide some valid criticism and feedback to help me improve. Thanks!
   

winkio

all that work just for a syntax error? :P

KK20

This code is extremely inefficient. You can easily recreate this script with just one line. I'd suggest going back to the drawing board and rethink your plans.

:V:

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Zexion

Quote from: KK20 on November 01, 2012, 06:55:45 pm
This code is extremely inefficient. You can easily recreate this script with just one line. I'd suggest going back to the drawing board and rethink your plans.

:V:


Was that really necessary?? You just basically told him that this script is worthless. Sure it's not the best way to do this, but it gets the job done. HE TRIED! 

Spoiler: ShowHide
:V: Lol jk

G_G


MarkHest

November 01, 2012, 09:50:36 pm #5 Last Edit: November 01, 2012, 09:54:57 pm by MarkHest
Thanks for the feedback, guys. Hopefully this will help me in my future scripting.

May i request this script to be moved to the Script Database?
Spoiler: ShowHide
 :V:
   

Blizzard

*fixes script*

p 'I suck at scripting. - Mark'


:V
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.