Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # ▼ DSI Custom Party
- # -- Last Updated: 25/8/2021
- # -- Requires: n/a
- # A script that ignore the actor in the first slot in battle.
- #==============================================================================
- module CUSTOM_PARTY
- MAX_BATTLE_MEMBERS = 4
- DISABLE_SWITCH = 10 # Turn this switch ON to disable script function.
- end
- class Game_Party
- include CUSTOM_PARTY
- #--------------------------------------------------------------------------
- # * ovewrite: battle_members
- #--------------------------------------------------------------------------
- def battle_members
- offset = $game_switches[DISABLE_SWITCH] ? 0 : 1
- all_members[offset, max_battle_members + offset].select {|actor| actor.exist? }
- end
- #--------------------------------------------------------------------------
- # * overwrite: max_battle_members
- #--------------------------------------------------------------------------
- def max_battle_members
- return MAX_BATTLE_MEMBERS
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement