# ============================================================================= # TheoAllen - Message Wait Skip # Version : 1.0 # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com # (This script documentation is written in informal indonesian language) # ============================================================================= ($imported ||= {})[:Theo_MsgWaitSkip] = true # ============================================================================= # Change Logs: # ----------------------------------------------------------------------------- # 2013.10.24 - Finished Script # ============================================================================= =begin Perkenalan : Di dalam message, kita bisa skip pengetikan tulisan dengan mencet tombol konfirm. Tapi kita ngga bisa skip message yang emang seharusnya wait seperti kode-kode macem \. ato \| Nah, kalo di sebuah konversasi atau show text (macem intro) kebanyakan kode untuk nunggu, kan ngga bisa diskip juga. Script ini ngebikin kamu bisa skip wait biar ngga kelamaan nunggu Cara penggunaan : Pasang script ini dibawah material dan diatas semua script yang berhubungan dengan message. Kalo make script basic modul gw, taruh diatasnya juga Terms of use : Credit gw, TheoAllen. Kalo semisal u bisa ngedit2 script gw trus jadi lebih keren, terserah. Ane bebasin. Asal ngga ngeklaim aja. Kalo semisal mau dipake buat komersil, jangan lupa, gw dibagi gratisannya. =end # ============================================================================= class Window_Message < Window_Base # <-- Jangan disentuh # ============================================================================= Skip_Button = :SHIFT # <-- Ganti disini buttonnya # Kalo mau liat list buttonnya ada apa aja, coba buka helpfile # RGSS Reference > Game Library > RGSS Built-in Module > Input # Lihat paling bawah sendiri # ============================================================================= # Setelah ini jangan coba-coba ganti kecuali elu ngerti # ============================================================================= # --------------------------------------------------------------------------- # Overwrite process escape character # --------------------------------------------------------------------------- def process_escape_character(code, text, pos) case code.upcase when '$' @gold_window.open when '.' command_wait(15) unless @skip_wait when '|' command_wait(60) unless @skip_wait when '!' input_pause when '>' @line_show_fast = true when '<' @line_show_fast = false when '^' @pause_skip = true else super end end # --------------------------------------------------------------------------- # Overwrite update show fast # --------------------------------------------------------------------------- def update_show_fast @show_fast = true if Input.trigger?(:C) || Input.trigger?(Skip_Button) end # --------------------------------------------------------------------------- # New method. Command wait for escape code # --------------------------------------------------------------------------- def command_wait(duration) duration.times do Fiber.yield update_skip_wait return if @skip_wait end end # --------------------------------------------------------------------------- # New method. Skip check for escape code # --------------------------------------------------------------------------- def update_skip_wait @skip_wait = true if Input.trigger?(Skip_Button) end # --------------------------------------------------------------------------- # Aliased method, clear flags # --------------------------------------------------------------------------- alias theo_skip_wait_clear_flags clear_flags def clear_flags theo_skip_wait_clear_flags @skip_wait = false end end