Advertisement
neutale

Skip Text Wait

Jun 9th, 2018
2,848
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.47 KB | None | 0 0
  1. #==============================================================================
  2. #                   「Skip Text Wait」(ACE) ver1  by Nana
  3. #
  4. #   ◇Terms of Use
  5. #   Please credit "Nana" and link http://heptanas.mamagoto.com/ if possible.
  6. #   Feel free to modify this script and/or distribute it.
  7. #   Also please include the credit in the readme or somewhere it's accessible. (Not from credit roll)
  8. #  
  9. #   ◇Non-commercial use
  10. #
  11. #------------------------------------------------------------------------------
  12. #
  13. #   By default, you can fast forward the text with C button (Enter key)
  14. #   Fast forwarding was impossible due to using waits with "\." or "\ |".
  15. #   With this script it is possible to skip wait by pressing the Enter key.
  16. #
  17. #==============================================================================
  18.  
  19. class Window_Message < Window_Base
  20.   #--------------------------------------------------------------------------
  21.   # ● Process Escaoe Characters (Redefinition)
  22.   #--------------------------------------------------------------------------
  23.   def process_escape_character(code, text, pos)
  24.     case code.upcase
  25.     when '$'
  26.       @gold_window.open
  27.     when '.'
  28.       wait(15) unless Input.press?(:C)
  29.     when '|'
  30.       wait(60) unless Input.press?(:C)
  31.     when '!'
  32.       input_pause
  33.     when '>'
  34.       @line_show_fast = true
  35.     when '<'
  36.       @line_show_fast = false
  37.     when '^'
  38.       @pause_skip = true
  39.     else
  40.       super
  41.     end
  42.   end
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement