Tu veux juste enlever la fonction combattre ?
Pour faire cela il suffit de modifier 2 scipts :
Window_ActorCommand
- Code:
-
#==============================================================================
# ** Window_ActorCommand
#------------------------------------------------------------------------------
# This window is used to select actor commands, such as "Attack" or "Skill".
#==============================================================================
class Window_ActorCommand < Window_Command
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(128, [], 1, 4)
self.active = false
end
#--------------------------------------------------------------------------
# * Setup
# actor : actor
#--------------------------------------------------------------------------
def setup(actor)
# on supprime juste l'affichage du caractère d'attaque
s2 = Vocab::skill
s3 = Vocab::guard
s4 = Vocab::item
if actor.class.skill_name_valid # Skill command name is valid?
s2 = actor.class.skill_name # Replace command name
end
@commands = [ s2, s3, s4]
@item_max = 4
refresh
self.index = 0
end
end
et
Scene_Battle cherche la méthode " def update_actor_command_selection"
et remplace la par celle-ci
- Code:
-
#--------------------------------------------------------------------------
# * Update Actor Command Selection
#--------------------------------------------------------------------------
def update_actor_command_selection
if Input.trigger?(Input::B)
Sound.play_cancel
prior_actor
elsif Input.trigger?(Input::C)
case @actor_command_window.index
when 0 # Skill
Sound.play_decision
start_skill_selection
when 1 # Guard
Sound.play_decision
@active_battler.action.set_guard
next_actor
when 2 # Item
Sound.play_decision
start_item_selection
end
end
end
Et normalement ton persos ne pourra plus attaquer,
heu c'est bien cela que tu demandais ?