Disable Skipping in Messages
Version: 1.0
Author: modern algbera
Date: May 29, 2009
Version History
- <Version 1.0> 05.29.2009 - Original Release
Description
Basically, it allows you to set a code in a message that will make it so that the player cannot skip the message but has to wait for it to draw completely before going forward with the message.
Features
- Allows you to disable text-skipping with a simple message code
- Should be compatible with most other message scripts
Instructions
Place above Main and below other custom scripts. To disable text-skipping in a message, simply put \% anywhere in the message.
Script
#==============================================================================
# Disable Skipping Mod
# Author: modern algebra (rmrk.net)
# Extracted from Advanced Text System 2.0
# http://rmrk.net/index.php/topic,25348.0.html
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Description:
#
# This little add-on allows the game maker to disable text skipping by the
# user with the message code \%, placed anywhere in the message. It disallows
# skipping only on a message to message basis, unlike in the ATS, which
# toggles the ability to skip mid-message.
#==============================================================================
# ** Window Message
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# Summary of Changes:
# aliased method - update_show_fast, start_message, finish_message
# new method - ma_skip_disabled?
#==============================================================================
class Window_Message
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# * Update Show Fast
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alias modnbr_ext_ats_disbleskip_showfasr_67b5 update_show_fast
def update_show_fast (*args)
# Run Original Method
modnbr_ext_ats_disbleskip_showfasr_67b5 (*args)
# Disallow that type of show fast if skip disabled
@show_fast = false if ma_skip_disabled?
end
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# * Start Message
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alias modrnalg_atsextrctin_strtmsg_53b5 start_message
def start_message (*args)
# Run Original Method
modrnalg_atsextrctin_strtmsg_53b5 (*args)
if @text.gsub! (/\\%/) { "" } != nil
@ma_skip_disabled = true
end
end
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# * Finish Message
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
alias modalg_atsexion_dsblskp_fnsmsg_73b5 finish_message
def finish_message (*args)
# Run Original Message
modalg_atsexion_dsblskp_fnsmsg_73b5 (*args)
@ma_skip_disabled = false
end
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# * Skip Disabled?
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
def ma_skip_disabled?
@ma_skip_disabled = false if @ma_skip_disabled.nil?
return @ma_skip_disabled
end
end
Credit
Thanks
- mirceacalarasu, for the request
Support
Please post in this topic for swiftest support.
Known Compatibility Issues
No known compatibility problems.
Author's Notes
This script is a feature extracted from my ATS. But, since it is a useful feature and not all people want an entire message system for one little feature, I decided to make it its own little script. It's not as functional as the one in the ATS since I didn't want to destroy your compatibility with all other message systems ever, and so I didn't directly modify the drawing loop. Basically, the one in the ATS allows you to disable and re-enable skipping mid-text, while this one you can only disable skipping for entire messages.
This script by
modern algebra is licensed under a
Creative Commons Attribution-Non-Commercial-Share Alike 2.5 Canada License.