Chaos Project

RPG Maker => RPG Maker Scripts => Topic started by: MarkHest on November 01, 2012, 03:09:33 pm

Title: [XP] Crashing Script
Post by: MarkHest on November 01, 2012, 03:09:33 pm
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




Screenshots

Spoiler: ShowHide
(https://dl.dropbox.com/u/29306744/Screenshotszzz.jpg)



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




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!
Title: Re: [XP] Crashing Script
Post by: winkio on November 01, 2012, 03:16:57 pm
all that work just for a syntax error? :P
Title: Re: [XP] Crashing Script
Post by: 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:
Title: Re: [XP] Crashing Script
Post by: Zexion on November 01, 2012, 06:58:58 pm
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
Title: Re: [XP] Crashing Script
Post by: G_G on November 01, 2012, 07:10:39 pm
It's okay Mark. Still not as useless as this.

http://forum.chaos-project.com/index.php/topic,4623.0.html
Title: Re: [XP] Crashing Script
Post by: MarkHest on November 01, 2012, 09:50:36 pm
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:
Title: Re: [XP] Crashing Script
Post by: Blizzard on November 01, 2012, 10:48:50 pm
*fixes script*

p 'I suck at scripting. - Mark'


:V