#==============================================================================
# ■ カスタマイズ項目
#------------------------------------------------------------------------------
module WSB
module INDIVIDUALCOMMAND
ActorIndividualCommand = [] # ここは変更・削除しないでください
#ここから追加してください。
ActorIndividualCommand[] = []
end
end
#==============================================================================
# ■ BattleManager
#==============================================================================
module BattleManager
#--------------------------------------------------------------------------
# ● コマンド入力中のアクターIDを取得
#--------------------------------------------------------------------------
def self.actor_id
actor.id
end
end
#==============================================================================
# ■ Scene_Battle
#------------------------------------------------------------------------------
# バトル画面の処理を行うクラスです。
#==============================================================================
class Scene_Battle
include WSB::INDIVIDUALCOMMAND
#--------------------------------------------------------------------------
# ● アクターコマンドウィンドウの作成
#--------------------------------------------------------------------------
alias individual_create_actor_command_window create_actor_command_window
def create_actor_command_window
individual_create_actor_command_window
@actor_command_window.set_handler(:symbol, method(:command_individual))
end
#--------------------------------------------------------------------------
# ● 個別コマンド
#--------------------------------------------------------------------------
def command_individual
now_index = @actor_command_window.index - 1
skill_id = ActorIndividualCommand[BattleManager.actor_id][now_index]
@skill = $data_skills[skill_id]
BattleManager.actor.input.set_skill(@skill.id)
if !@skill.need_selection?
next_command
elsif @skill.for_opponent?
select_enemy_selection
else
select_actor_selection
end
end
#--------------------------------------------------------------------------
# ● 敵キャラ選択[キャンセル]
#--------------------------------------------------------------------------
alias individual_on_enemy_cancel on_enemy_cancel
def on_enemy_cancel
individual_on_enemy_cancel
case @actor_command_window.current_symbol
when :attack
when :skill
when :item
else
@actor_command_window.activate
end
end
#--------------------------------------------------------------------------
# ● アクター選択[キャンセル]
#--------------------------------------------------------------------------
alias individual_on_actor_cancel on_actor_cancel
def on_actor_cancel
individual_on_actor_cancel
case @actor_command_window.current_symbol
when :attack
when :skill
when :item
else
@actor_command_window.activate
end
end
end