Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================================
- # * Limite_Party v. 1.2
- # ▼ Tool: VX Ace
- # ▼ Autore: Ally, mikb89
- # ▼ Sito Web: rpgmkr.net
- #===============================================================================
- # ▼ Lo script dà la possibilità di impostare il limite del party, cosa non
- # fattibile direttamente dal Tool.
- # In più, è possibile inserire nel chiama script della Condizione SE la voce:
- # party_pieno?
- # Per controllare se il gruppo ha raggiunto o no il limite stabilito.
- #-------------------------------------------------------------------------------
- # Richiesto da Poison
- #===============================================================================
- # ▼ Configurazioni:
- #===============================================================================
- module PARTY_LIM
- MAX_PARTY = 4
- # Modificando il 4 con quello a vostra scelta, potrete limitare
- # o aumentare il Party a vostro piacimento.
- end
- #===============================================================================
- # ▼ Importazione script:
- #===============================================================================
- ($imported ||= {})[:ally_mikb89_party_lim] = true
- #===============================================================================
- # ▼ Inizio codice:
- #===============================================================================
- #===============================================================================
- # ** Window_MenuStatus
- #-------------------------------------------------------------------------------
- # This window displays party member status on the menu screen.
- #===============================================================================
- class Window_MenuStatus < Window_Selectable
- #-----------------------------------------------------------------------------
- # * Get Number of Items
- #-----------------------------------------------------------------------------
- def item_max
- [PARTY_LIM::MAX_PARTY, $game_party.members.size].min
- end
- end
- #===============================================================================
- # ** Game_Interpreter
- #-------------------------------------------------------------------------------
- # An interpreter for executing event commands. This class is used within the
- # Game_Map, Game_Troop, and Game_Event classes.
- #===============================================================================
- class Game_Interpreter
- #-----------------------------------------------------------------------------
- # * Is Limit Reached?
- #-----------------------------------------------------------------------------
- def party_pieno?
- $game_party.all_members.size >= PARTY_LIM::MAX_PARTY
- end
- end
- #===============================================================================
- # ▼ Fine Script
- #===============================================================================
Advertisement
Add Comment
Please, Sign In to add comment