RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Disable Skipping in Messages

0 Members and 1 Guest are viewing this topic.

*
Rep:
Level 97
2014 Best RPG Maker User - Engine2014 Most Unsung Member2013 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best RPG Maker User (Scripting)2011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best Use of Avatar and Signature Space2010 Favourite Staff Member2010 Most Mature Member
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


Code: [Select]
#==============================================================================
#  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


  • modern algebra

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.


Creative Commons License
This script by modern algebra is licensed under a Creative Commons Attribution-Non-Commercial-Share Alike 2.5 Canada License.
« Last Edit: February 11, 2010, 09:50:36 PM by Modern Algebra »