- RelMembre
- Nombre de messages : 352
Localisation : Le Mans, Sarthes
Distinction : aucune
Date d'inscription : 18/01/2013
[ Résolu ] Supprimer du Menu l'option Formation
Sam 16 Mar 2013 - 11:40
Bonjours, alors voilà, j'utilise le script " Yanfly Engine Ace - Party System v1.08 " pour la formation de groupe.
Mais j'aimerais que l'option Formation dans le menu disparaisse et que je ne puisse changer l'ordre de mon équipe
que grâce à un appelle de script ( je crois que c'est :" call_party_menu ", mais je n'en suis pas sur).
Alors si quelqu'un pouvais m'aider, je lui en serais très reconnaissant.
Mais j'aimerais que l'option Formation dans le menu disparaisse et que je ne puisse changer l'ordre de mon équipe
que grâce à un appelle de script ( je crois que c'est :" call_party_menu ", mais je n'en suis pas sur).
Alors si quelqu'un pouvais m'aider, je lui en serais très reconnaissant.
- ClashMembre
- Nombre de messages : 1023
Age : 27
Distinction : aucune
Date d'inscription : 12/10/2011
Re: [ Résolu ] Supprimer du Menu l'option Formation
Sam 16 Mar 2013 - 17:20
Pour supprimer l'option formation dans le menu, il suffit d'effacer la ligne 38 du script Window_MenuCommand, à savoir add_formation_command.
- NozvezMembre
- Nombre de messages : 354
Distinction : aucune
Date d'inscription : 16/03/2012
Re: [ Résolu ] Supprimer du Menu l'option Formation
Sam 16 Mar 2013 - 17:42
Il ne faut jamais modifier un script d'origine !
As-tu un menu custom ? Si ce n'est pas le cas, utilise ce script :
A placer bien entre Materials et Main.
As-tu un menu custom ? Si ce n'est pas le cas, utilise ce script :
- Spoiler:
- Code:
#==============================================================================
# ** Window_MenuCommand
#------------------------------------------------------------------------------
# This command window appears on the menu screen.
#==============================================================================
class Window_MenuCommand < Window_Command
#--------------------------------------------------------------------------
# * Initialize Command Selection Position (Class Method)
#--------------------------------------------------------------------------
def self.init_command_position
@@last_command_symbol = nil
end
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 0)
select_last
end
#--------------------------------------------------------------------------
# * Get Window Width
#--------------------------------------------------------------------------
def window_width
return 160
end
#--------------------------------------------------------------------------
# * Get Number of Lines to Show
#--------------------------------------------------------------------------
def visible_line_number
item_max
end
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
add_main_commands
add_original_commands
add_save_command
add_game_end_command
end
#--------------------------------------------------------------------------
# * Add Main Commands to List
#--------------------------------------------------------------------------
def add_main_commands
add_command(Vocab::item, :item, main_commands_enabled)
add_command(Vocab::skill, :skill, main_commands_enabled)
add_command(Vocab::equip, :equip, main_commands_enabled)
add_command(Vocab::status, :status, main_commands_enabled)
end
#--------------------------------------------------------------------------
# * Add Formation to Command List
#--------------------------------------------------------------------------
def add_formation_command
add_command(Vocab::formation, :formation, formation_enabled)
end
#--------------------------------------------------------------------------
# * For Adding Original Commands
#--------------------------------------------------------------------------
def add_original_commands
end
#--------------------------------------------------------------------------
# * Add Save to Command List
#--------------------------------------------------------------------------
def add_save_command
add_command(Vocab::save, :save, save_enabled)
end
#--------------------------------------------------------------------------
# * Add Exit Game to Command List
#--------------------------------------------------------------------------
def add_game_end_command
add_command(Vocab::game_end, :game_end)
end
#--------------------------------------------------------------------------
# * Get Activation State of Main Commands
#--------------------------------------------------------------------------
def main_commands_enabled
$game_party.exists
end
#--------------------------------------------------------------------------
# * Get Activation State of Formation
#--------------------------------------------------------------------------
def formation_enabled
$game_party.members.size >= 2 && !$game_system.formation_disabled
end
#--------------------------------------------------------------------------
# * Get Activation State of Save
#--------------------------------------------------------------------------
def save_enabled
!$game_system.save_disabled
end
#--------------------------------------------------------------------------
# * Processing When OK Button Is Pressed
#--------------------------------------------------------------------------
def process_ok
@@last_command_symbol = current_symbol
super
end
#--------------------------------------------------------------------------
# * Restore Previous Selection Position
#--------------------------------------------------------------------------
def select_last
select_symbol(@@last_command_symbol)
end
end
A placer bien entre Materials et Main.
- RelMembre
- Nombre de messages : 352
Localisation : Le Mans, Sarthes
Distinction : aucune
Date d'inscription : 18/01/2013
Re: [ Résolu ] Supprimer du Menu l'option Formation
Sam 16 Mar 2013 - 18:12
C'est exactement ce que je voulais.
Merci à vous deux.
- LightNoxMembre
- Nombre de messages : 1759
Age : 33
Localisation : Chez Moi ^^
Date d'inscription : 10/04/2008
Re: [ Résolu ] Supprimer du Menu l'option Formation
Sam 16 Mar 2013 - 19:49
Ou plus simplement tu va direct en l'essentiel en ne mettant que ceci au lieu de recharger une fois le script entier pour rien ^^
comme ceci :
comme ceci :
- Code:
#==============================================================================
# ** Window_MenuCommand
#------------------------------------------------------------------------------
# This command window appears on the menu screen.
#==============================================================================
class Window_MenuCommand < Window_Command
#--------------------------------------------------------------------------
# * Create Command List
#--------------------------------------------------------------------------
def make_command_list
add_main_commands
add_original_commands
add_save_command
add_game_end_command
end
end
#==============================================================================
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum
|
|