Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if true # make false to disable script, true to enable.
- #===============================================================================
- # www.dekyde.com
- # www.dekitarpg.wordpress.com
- #===============================================================================
- # This small snippet simply tells the system to ignore the RGSSReset call when
- # triggered.
- # Unfortunately, this cannot be completely removed so instead the system will
- # just stop whilst the F12 key is being pressed.
- #
- # v1.1+ keeps the scene updating whilst F12 is being pressed.
- #
- #===============================================================================
- # Updates:
- # o3/11/2o14 - Stopped scene(s) from freezing when F12 is pressed. (v1.1)
- # o2/11/2o14 - Started, Finished,
- #
- #===============================================================================
- # Free to use in all commercial and non commercial projects.
- #===============================================================================
- class Scene_Base
- #===============================================================================
- #-----------------------------------------------------------------------------
- #
- #-----------------------------------------------------------------------------
- alias :fuckofff12youcunt_updt! :update
- #-----------------------------------------------------------------------------
- #
- #-----------------------------------------------------------------------------
- FRAME_SKIP_F12 = 21
- #-----------------------------------------------------------------------------
- #
- #-----------------------------------------------------------------------------
- def update
- begin
- fuckofff12youcunt_updt!
- rescue RGSSReset
- update_rgss_shit
- end
- end
- #-----------------------------------------------------------------------------
- #
- #-----------------------------------------------------------------------------
- def update_rgss_shit
- @rgss_shit_updater ||= 0
- @rgss_shit_updater += 1
- return unless @rgss_shit_updater % FRAME_SKIP_F12 == 0
- instance_variables.each do |varname|
- ivar = instance_variable_get(varname)
- if ivar.respond_to?(:update)
- ivar.update
- end
- end
- end
- #-----------------------------------------------------------------------------
- # [ end class ]
- #-----------------------------------------------------------------------------
- end
- #===============================================================================
- # www.dekyde.com
- # www.dekitarpg.wordpress.com
- #===============================================================================
- end # end if false/ true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement