메시지

Text Skip [ 메시지 스킵 ]

by 스리아씨 posted Sep 26, 2013
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

#==============================================================================
# ** TDS Text Skip
#    Ver: 1.0
#------------------------------------------------------------------------------
#  * Description:
#  This script allows you to skip messages by pressing the cancel key (B) X.
#------------------------------------------------------------------------------
#  * Features:
#  Skip text boxes.
#------------------------------------------------------------------------------
#  * Instructions:
#  Just put it in your game and pres the the cancel key (B) X to skip text.
#------------------------------------------------------------------------------
#  * Notes:
#  None.
#------------------------------------------------------------------------------
# WARNING:
#
# Do not release, distribute or change my work without my expressed written
# consent, doing so violates the terms of use of this work.
#
# If you really want to share my work please just post a link to the original
# site.
#
# * Not Knowing English or understanding these terms will not excuse you in any
#   way from the consequenses.
#==============================================================================
# * Import to Global Hash *
#==============================================================================
($imported ||= {})[:TDS_Text_Skip] = true

#==============================================================================
# ** Window_Message
#------------------------------------------------------------------------------
#  This message window is used to display text.
#==============================================================================

class Window_Message < Window_Base
  #--------------------------------------------------------------------------
  # * Alias Listing
  #-------------------------------------------------------------------------- 
  alias tds_text_skip_window_message_wait_for_one_character wait_for_one_character
  alias tds_text_skip_window_message_input_pause            input_pause
  #--------------------------------------------------------------------------
  # * Determine if all text should be skipped
  #--------------------------------------------------------------------------
  def skip_all_text? ; $TEST and Input.press?(:B) end
  #--------------------------------------------------------------------------
  # * Wait After Output of One Character
  #--------------------------------------------------------------------------
  def wait_for_one_character(*args, &block)
    # Return if Skipping All Text
    return if skip_all_text?
    # Run Original Method
    tds_text_skip_window_message_wait_for_one_character(*args, &block)
  end 
  #--------------------------------------------------------------------------
  # * Input Pause Processing
  #--------------------------------------------------------------------------
  def input_pause(*args, &block)
    # Return and Remove Pause if skipping all text
    return self.pause = false if skip_all_text?    
    # Run Original Method
    tds_text_skip_window_message_input_pause(*args, &block)
  end
end

 

 

 

 

※ 스크립트에 필요한 버튼은

 

  def skip_all_text? ; $TEST and Input.press?(:B) end

로 수정하는 듯 합니다.

 

출처

http://rpgmaker.net/scripts/rmvxace/