以下引用凉凉の雨于2009-4-5 8:47:30的发言:
呃。。。
能不能兼容替補出場
class Scene_Battle
alias replacement_judge judge
def judge
# 判斷战斗人物死亡后是否使待机人物替补出场
if $game_party.replacement_need?
# 待命成員復帰
$game_party.actors.concat($game_party.back_actors)
#--------------------------------------------------------------------------
# ● 泡沫式排序法
#--------------------------------------------------------------------------
for i in 1..$game_party.actors.size
for j in 1..$game_party.actors.size
if $game_party.actors[i-1].hp > $game_party.actors[j-1].hp
temp = $game_party.actors[i-1]
$game_party.actors[i-1] = $game_party.actors[j-1]
$game_party.actors[j-1] = temp
end
end
end
@wait_count = 2
# 待命成員退避
$game_party.actors[FRONT_MEMBER_LIMIT..-1] = nil
# 視窗刷新
@status_window.refresh
end
replacement_judge
end
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |