#============================================================================== # □ ダッシュ拡張 (for VX Ace) #------------------------------------------------------------------------------ # Version : 1_20111215 # by サリサ・タイクーン # http://www.tycoon812.com/rgss/ #============================================================================== #============================================================================== # □ 素材スイッチ #============================================================================== $rgsslab = {} if $rgsslab == nil $rgsslab["ダッシュ拡張"] = true if $rgsslab["ダッシュ拡張"] #============================================================================== # □ カスタマイズポイント #============================================================================== module RGSSLAB end module RGSSLAB::Dash #-------------------------------------------------------------------------- # ○ ダッシュ時の速度 # ダッシュ中の速度を設定します。 # # 標準は5.0(歩き:4.0)となっています。 # # この設定は、イベントコマンドのスクリプトで変更する事が可能です。 # # ・イベントコマンドのスクリプトでの変更方法 # $game_system.rgsslab025.speed = 値 # # 注意: # 極端な数値にすると、イベントがうまく実行されない場合がありますが # それは、仕様とさせて頂きます。 # (反応できる位の速度にする事をお勧め致します) #-------------------------------------------------------------------------- SPEED = 5.0 # 標準は5.0 end # カスタマイズポイントは、ここまで #============================================================================== # □ RGSSLAB::Dash [module] #============================================================================== module RGSSLAB::Dash #-------------------------------------------------------------------------- # ○ 素材設定用の定数定義 #-------------------------------------------------------------------------- MATERIAL_NAME = "ダッシュ拡張" VERSION = 1 RELEASE = 20111215 end #============================================================================== # ■ Game_System [class] #============================================================================== class Game_System #-------------------------------------------------------------------------- # ● 公開インスタンス変数 #-------------------------------------------------------------------------- attr_accessor :rgsslab025 #-------------------------------------------------------------------------- # ● オブジェクト初期化 [エイリアス] #-------------------------------------------------------------------------- alias dash_initialize initialize def initialize dash_initialize @rgsslab025 = RgssLab_025.new end end #============================================================================== # □ RgssLab_025 [class] #============================================================================== class RgssLab_025 #-------------------------------------------------------------------------- # ○ モジュールの設定 #-------------------------------------------------------------------------- RGSSLAB_025 = RGSSLAB::Dash #-------------------------------------------------------------------------- # ● 公開インスタンス変数 #-------------------------------------------------------------------------- attr_accessor :speed #-------------------------------------------------------------------------- # ○ オブジェクト初期化 #-------------------------------------------------------------------------- def initialize @speed = RGSSLAB_025::SPEED end end #============================================================================== # ■ Game_Player [class] #============================================================================== class Game_Player < Game_Character #-------------------------------------------------------------------------- # ○ 移動速度の取得 [オーバーライド] #-------------------------------------------------------------------------- def real_move_speed @move_speed + (dash? ? $game_system.rgsslab025.speed - 4.0 : 0) end end end