Project1
标题:
行动顺序
[打印本页]
作者:
ae3175001
时间:
2014-8-18 13:21
标题:
行动顺序
#--------------------------------------------------------------------------
# ● 生成行动顺序
#--------------------------------------------------------------------------
def self.make_action_orders
@action_battlers = []
@action_battlers += $game_party.members unless @surprise
@action_battlers += $game_troop.members unless @preemptive
@action_battlers.each {|battler| battler.make_speed }
@action_battlers.sort! {|a,b| b.speed - a.speed }
end
我将@action_battlers.sort! {|a,b| b.speed - a.speed }改成@action_battlers.sort! {|a,b| a.speed - b.speed }
行动顺序就逆转了,如何设计某条件达成行动顺序就逆转(tp 永远为 0)例如条件分支
作者:
taroxd
时间:
2014-8-18 13:27
def self.make_action_orders
@action_battlers = []
@action_battlers += $game_party.members unless @surprise
@action_battlers += $game_troop.members unless @preemptive
@action_battlers.each {|battler| battler.make_speed }
@action_battlers.sort! {|a,b| b.speed - a.speed }
@action_battlers.reverse! if 某条件
end
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1