def command_301
return if $game_party.in_battle
if @params[0] == 0 # 直接指定
troop_id = @params[1]
elsif @params[0] == 1 # 变量指定
troop_id = $game_variables[@params[1]]
else # 地图指定的敌群
troop_id = $game_player.make_encounter_troop_id
end
if $data_troops[troop_id]
BattleManager.setup(troop_id, @params[2], @params[3])
BattleManager.event_proc = Proc.new {|n| @branch[@indent] = n }
$game_player.make_encounter_count
SceneManager.call(Scene_Battle)
end
Fiber.yield
end
def command_301
return if $game_party.in_battle
if @params[0] == 0 # 直接指定
troop_id = @params[1]
elsif @params[0] == 1 # 变量指定
troop_id = $game_variables[@params[1]]
else # 地图指定的敌群
troop_id = $game_player.make_encounter_troop_id
end
if $data_troops[troop_id]
BattleManager.setup(troop_id, @params[2], @params[3])
BattleManager.event_proc = Proc.new {|n| @branch[@indent] = n }
$game_player.make_encounter_count
SceneManager.call(Scene_Battle)
end
Fiber.yield
end