#============================================================================== # ★ 無効化スイッチいろいろ ver1.0 by USK #------------------------------------------------------------------------------ # ・デフォルトで無効化しにくい要素をスイッチで無効化します。 #============================================================================== =begin 13行目以降の各定数に対応したIDのスイッチがオンのとき対象の機能が無効化されます。 =end module InvalidSwitch #-------------------------------------------------------------------------- # ● スイッチ設定 #-------------------------------------------------------------------------- Exp = 1 #経験値の入手の無効化スイッチID Gold = 2 #ゴールドの入手の無効化スイッチID SkillAnimation = 3 #スキルアニメーションの無効化スイッチID Move = 4 #プレイヤー操作による移動の無効化スイッチID ItemUse = 5 #アイテムコマンドの無効化スイッチID Equip = 5 #装備コマンドの無効化スイッチID #-------------------------------------------------------------------------- # ● #-------------------------------------------------------------------------- def self.exp $game_switches[Exp] end #-------------------------------------------------------------------------- # ● #-------------------------------------------------------------------------- def self.gold $game_switches[Gold] end #-------------------------------------------------------------------------- # ● #-------------------------------------------------------------------------- def self.animation $game_switches[SkillAnimation] end #-------------------------------------------------------------------------- # ● #-------------------------------------------------------------------------- def self.move $game_switches[Move] end #-------------------------------------------------------------------------- # ● #-------------------------------------------------------------------------- def self.item !$game_switches[ItemUse] end #-------------------------------------------------------------------------- # ● #-------------------------------------------------------------------------- def self.equip !$game_switches[Equip] end end #============================================================================== # ■ Game_Troop #============================================================================== class Game_Troop #-------------------------------------------------------------------------- # ● 経験値の合計計算 #-------------------------------------------------------------------------- alias :usk_is_exp_total :exp_total def exp_total InvalidSwitch.exp ? 0 : usk_is_exp_total end #-------------------------------------------------------------------------- # ● お金の合計計算 #-------------------------------------------------------------------------- alias :usk_is_gold_total :gold_total def gold_total InvalidSwitch.gold ? 0 : usk_is_gold_total end end #============================================================================== # ■ RPG::UsableItem #============================================================================== class RPG::UsableItem #-------------------------------------------------------------------------- # ● #-------------------------------------------------------------------------- alias :usk_is_animation_id :animation_id def animation_id InvalidSwitch.animation ? 0 : usk_is_animation_id end end #============================================================================== # ■ Window_MenuCommand #============================================================================== class Window_MenuCommand #-------------------------------------------------------------------------- # ● #-------------------------------------------------------------------------- def enable_check item = @list.find{|val| val[:symbol] == :item} item[:enabled] = InvalidSwitch.item if item equip = @list.find{|val| val[:symbol] == :equip} equip[:enabled] = InvalidSwitch.equip if equip end #-------------------------------------------------------------------------- # ● #-------------------------------------------------------------------------- alias :usk_is_make_command_list :make_command_list def make_command_list usk_is_make_command_list enable_check end end #============================================================================== # ■ Window_ActorCommand #============================================================================== class Window_ActorCommand #-------------------------------------------------------------------------- # ● #-------------------------------------------------------------------------- def enable_check item = @list.find{|val| val[:symbol] == :item} item[:enabled] = InvalidSwitch.item if item end #-------------------------------------------------------------------------- # ● #-------------------------------------------------------------------------- alias :usk_is_make_command_list :make_command_list def make_command_list usk_is_make_command_list enable_check end end #============================================================================== # ■ Game_Player #============================================================================== class Game_Player #-------------------------------------------------------------------------- # ● 方向ボタン入力による移動処理 #-------------------------------------------------------------------------- alias :usk_is_move_by_input :move_by_input def move_by_input usk_is_move_by_input unless InvalidSwitch.move end end