本帖最后由 QQ蚊子湯 于 2016-11-18 22:56 编辑
iterate_battler( 0, $game_variables[3]) do |battler| next if battler.death_state? battler.force_action(10, -2) BattleManager.force_action(battler) Fiber.yield while BattleManager.action_forced? end
iterate_battler( 0, $game_variables[3]) do
|battler|
next if battler.death_state?
battler.force_action(10, -2)
BattleManager.force_action(battler)
Fiber.yield while
BattleManager.action_forced?
end
從原本的command_339下去改
iterate_battler(@params[0], @params[1]) do |battler| next if battler.death_state? battler.force_action(@params[2], @params[3]) BattleManager.force_action(battler) Fiber.yield while BattleManager.action_forced? end
iterate_battler(@params[0], @params[1]) do |battler|
next if battler.death_state?
battler.force_action(@params[2], @params[3])
BattleManager.force_action(battler)
Fiber.yield while BattleManager.action_forced?
end
參照6樓
params[0] 0敵 1我
params[1] 號位
params[2] 技能
params[3] 對象號位,-1隨機, -2上一個目標 |