def judge
# 全灭判定是真、并且同伴人数为 0 的情况下
if $game_party.all_dead? or $game_party.actors.size == 0
# 允许失败的情况下
if $game_temp.battle_can_lose
# 还原为战斗开始前的 BGM
$game_system.bgm_play($game_temp.map_bgm)
# 战斗结束
battle_end(2)
# 返回 true
return true
end
# 设置游戏结束标志
$game_temp.gameover = true
# 返回 true
return true
end
for actor in $game_party.actors
if actor.state?(46) and actor.dead? #这里注意“战斗不能”状态不要减去46号状态
$game_temp.gameover = true
end
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |