# # エンカウント歩数の変更 #  (C)2006 TYPE74RX-T # #============================================================================== # ■ Game_Map #------------------------------------------------------------------------------ #  マップを扱うクラスです。スクロールや通行可能判定などの機能を持っています。 # このクラスのインスタンスは $game_map で参照されます。 #============================================================================== class Game_Map #-------------------------------------------------------------------------- # ★ エンカウント歩数の変更 #-------------------------------------------------------------------------- def rx_chg_encounter_step(encounter_step) @map.encounter_step = encounter_step return @map.encounter_step end end #============================================================================== # ■ Interpreter #------------------------------------------------------------------------------ #  イベントコマンドを実行するインタプリタです。このクラスは Game_System クラ # スや Game_Event クラスの内部で使用されます。 #============================================================================== class Interpreter #-------------------------------------------------------------------------- # ★ 注釈 #-------------------------------------------------------------------------- alias rx_rgssc10_command_108 command_108 def command_108 # 出現トループの追加処理 if @parameters[0].include?("エンカウント歩数の変更") # 初期設定 rx_str = @parameters[0] # 文字列から数字の文字列のみを抽出 rx_r_spec = rx_str.scan(/\d+/) # 現在のマップのタイルセットをリセットアップ $game_map.rx_chg_encounter_step(rx_r_spec[0].to_i) # エンカウント カウントを作成 $game_player.make_encounter_count # 継続(競合対策) return true end # メソッドを呼び戻す rx_rgssc10_command_108 end end