# # 文章早送りの禁止(RGSS2) #  (C)2008 TYPE74RX-T # #============================================================================== # ■ Game_Temp #------------------------------------------------------------------------------ #  セーブデータに含まれない、一時的なデータを扱うクラスです。このクラスのイン # スタンスは $game_temp で参照されます。 #============================================================================== class Game_Temp #-------------------------------------------------------------------------- # ● オブジェクト初期化 #-------------------------------------------------------------------------- alias rx_rgss2c10_initialize initialize def initialize # メソッドを呼び戻す rx_rgss2c10_initialize @rx_prohibit_mes_skip = false # ★ 文章早送りの禁止フラグ end #-------------------------------------------------------------------------- # ★ 文章早送りの禁止フラグ #-------------------------------------------------------------------------- def rx_prohibit_mes_skip return @rx_prohibit_mes_skip end #-------------------------------------------------------------------------- # ★ 文章早送りの禁止フラグの設定 #-------------------------------------------------------------------------- def rx_prohibit_mes_skip=(flag) @rx_prohibit_mes_skip = flag end end #============================================================================== # ■ Interpreter #------------------------------------------------------------------------------ #  イベントコマンドを実行するインタプリタです。このクラスは Game_System クラ # スや Game_Event クラスの内部で使用されます。 #============================================================================== class Game_Interpreter #-------------------------------------------------------------------------- # ★ 注釈 #-------------------------------------------------------------------------- alias rx_rgss2c10_command_108 command_108 def command_108 # 文章早送りの禁止 if @parameters[0].include?("文章早送りの禁止") # 解除なら if @parameters[0].include?("解除") $game_temp.rx_prohibit_mes_skip = false # 禁止モードなら else $game_temp.rx_prohibit_mes_skip = true end # 継続(競合対策) return true end # メソッドを呼び戻す rx_rgss2c10_command_108 end end #============================================================================== # ■ Window_Message #------------------------------------------------------------------------------ #  文章表示に使うメッセージウィンドウです。 #============================================================================== class Window_Message < Window_Selectable #-------------------------------------------------------------------------- # ● 早送りフラグの更新 #-------------------------------------------------------------------------- alias rx_rgss2c10_update_show_fast update_show_fast def update_show_fast # ★ 文章早送りが禁止されていたらスルー return if $game_temp.rx_prohibit_mes_skip # メソッドを呼び戻す rx_rgss2c10_update_show_fast end end