#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
# This class performs battle screen processing.
#==============================================================================
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# * Constant Variables
#--------------------------------------------------------------------------
KNOCKOUTLOSS_SWITCH = 1 # The ID of the switch that enables loss by any
# party member fainting.
#--------------------------------------------------------------------------
# * Alias Methods
#--------------------------------------------------------------------------
alias_method :krop_knockoutloss_scene_battle_update_basic, :update_basic
#--------------------------------------------------------------------------
# * Basic Update Processing !ALIAS!
# main : Call from main update method
#--------------------------------------------------------------------------
def update_basic(main = false)
# Call the old code.
krop_knockoutloss_scene_battle_update_basic(main)
# If we are checking for any knockout.
if $game_switches[KNOCKOUTLOSS_SWITCH]
for actor in $game_party.members
if actor.hp <= 0
$scene = Scene_Gameover.new
break
end
end
end
end
end