加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
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
以上是VA自带的战斗事件的写法,改了n次都跳错误
不引用数据库中的敌群。
敌群只一个敌人,如何用脚本设定该敌人的属性、掉落等,并开始战斗? |