#==============================================================================
# More Scroll Speeds
# Version: 1.0
# Author: MobiusXVI
# Date: May 14, 2017
#------------------------------------------------------------------------------
# Description:
#
# This script allows you to change the speed of scrolling text beyond what
# you can set by default.
#
#------------------------------------------------------------------------------
# Instructions:
#
# - Place this script in the materials section, above Main.
#
# - Set the fast and slow values to your liking in the config section
#
# - If needed, you can change the values during play by using the
# following script calls in events:
#
# Mobius::Scroll_Speed.fast_scroll_speed = 1.0
# Mobius::Scroll_Speed.slow_scroll_speed = 0.5
#
# Where you replace the numbers (1.0 and 0.5), with whatever value
# you want.
#
# License
#
# This script is available in its entirety for commercial and non-commercial
# use. View the specific license terms below.
#
# The MIT License (MIT)
#
# Copyright (c) 2015 darmes
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
#
# Further, if you do decide to use this script in a commercial product,
# I'd ask that you let me know via a forum post or a PM. Thanks.
#
#==============================================================================
module Mobius
module Scroll_Speed
#--------------------------------------------------------------------------
# * CONFIG - Set the two speeds below to your liking
# default fast = 1.0
# default slow = 0.5
#--------------------------------------------------------------------------
@@fast_scroll_speed = 1.0
@@slow_scroll_speed = 0.5
#--------------------------------------------------------------------------
# * Get Fast Scroll Speed
#--------------------------------------------------------------------------
def self.fast_scroll_speed
return @@fast_scroll_speed
end
#--------------------------------------------------------------------------
# * Get Slow Scroll Speed
#--------------------------------------------------------------------------
def self.slow_scroll_speed
return @@slow_scroll_speed
end
#--------------------------------------------------------------------------
# * Set Fast Scroll Speed
#--------------------------------------------------------------------------
def self.fast_scroll_speed=(speed)
@@fast_scroll_speed = speed
end
#--------------------------------------------------------------------------
# * Set Slow Scroll Speed
#--------------------------------------------------------------------------
def self.slow_scroll_speed=(speed)
@@slow_scroll_speed = speed
end
end
end
class Window_ScrollText < Window_Base
#--------------------------------------------------------------------------
# * Get Scroll Speed
#--------------------------------------------------------------------------
def scroll_speed
fast_scroll = Mobius::Scroll_Speed.fast_scroll_speed
slow_scroll = Mobius::Scroll_Speed.slow_scroll_speed
$game_message.scroll_speed * (show_fast? ? fast_scroll : slow_scroll)
end
end