Auto-Close Messages
Version 1.0By Miget man12November 8, 2009IntroductionI made this script for my game and decided I ought to post it here. It makes messages automatically close after a set amount of frames. Good for intros, etc.
Features-Automatically close messages after set amount of time
-Turn on switch to
disable
ScriptCODE
#==============================================================================
# * Miget man12 Auto-Close Messages 1.0
#-----------------------------------------------------------------------------
# This script automatically closes messages after a set amount of time if they
# are set to close after input.
#==============================================================================
class Window_Message < Window_Selectable # don't touch this
# How many frames to wait until it automatically closes (60frames/1second)
WAIT_TIME = 150
# Switch that, when on, disables auto-closing
OFF_SWITCH = 1
############ END CUSTOMIZATION ############
alias mm12autoclose_init initialize
def initialize
mm12autoclose_init
@time_passed = 0
end
alias mm12autoclose_input_pause input_pause
def input_pause
@time_passed += 1
mm12autoclose_input_pause
if @time_passed == WAIT_TIME and !$game_switches[OFF_SWITCH]
@time_passed = 0
self.pause = false
if @text != nil and not @text.empty?
new_page if @line_count >= MAX_LINE
else
terminate_message
end
end
end
end
OR
Script @ Script CentralCustomizationQUOTE
CODE
# How many frames to wait until it automatically closes (60frames/1second)
WAIT_TIME = 150
# Switch that, when on, disables auto-closing
OFF_SWITCH = 1
Also, to change wait amount in game, put:
CODE
Window_Message::WAIT_TIME = number
CompatibilityShould have really good compatibility, as it hardly modifies anything, and I doubt many scripts would modify them.
ScreenshotNot applicable.
DEMONot really needed, but I'll put one up if anyone asks.
InstallationPlace script in editor in Materials section, above Main and edit customization.
FAQNot available.
Terms and Conditions-Credits in your game
-Don't post this anywhere without permission
-Feel free to edit for personal use, but don't post edited versions without permission
CreditsMiget man12
~Miget man12