Advertisement
DarkSoul144

DSI Custom Party

Aug 24th, 2021
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. #==============================================================================
  2. # ▼ DSI Custom Party
  3. # -- Last Updated: 25/8/2021
  4. # -- Requires: n/a
  5. # A script that ignore the actor in the first slot in battle.
  6. #==============================================================================
  7. module CUSTOM_PARTY
  8. MAX_BATTLE_MEMBERS = 4
  9. DISABLE_SWITCH = 10 # Turn this switch ON to disable script function.
  10. end
  11.  
  12. class Game_Party
  13. include CUSTOM_PARTY
  14. #--------------------------------------------------------------------------
  15. # * ovewrite: battle_members
  16. #--------------------------------------------------------------------------
  17. def battle_members
  18. offset = $game_switches[DISABLE_SWITCH] ? 0 : 1
  19. all_members[offset, max_battle_members + offset].select {|actor| actor.exist? }
  20. end
  21. #--------------------------------------------------------------------------
  22. # * overwrite: max_battle_members
  23. #--------------------------------------------------------------------------
  24. def max_battle_members
  25. return MAX_BATTLE_MEMBERS
  26. end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement