加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
模仿轩辕剑五当中,被攻击时以后备队伍出战
插入脚本后,当队伍人数大于战斗最大人数时
战斗被偷袭时则会由最后面的队员出战
class Game_Party < Game_Unit alias back_attack_battle_members battle_members def battle_members if BattleManager.surprise? && all_members.size > max_battle_members start_member = all_members.size-max_battle_members all_members[start_member, max_battle_members].select{|actor| actor.exist? } else back_attack_battle_members end end end module BattleManager def self.surprise? return @surprise end end
class Game_Party < Game_Unit
alias back_attack_battle_members battle_members
def battle_members
if BattleManager.surprise? && all_members.size > max_battle_members
start_member = all_members.size-max_battle_members
all_members[start_member, max_battle_members].select{|actor|
actor.exist?
}
else
back_attack_battle_members
end
end
end
module BattleManager
def self.surprise?
return @surprise
end
end
|