class Game_Party
attr_accessor :battle_count
alias seph_battlecount_gmprty_init initialize
def initialize
seph_battlecount_gmprty_init
@battle_count = 0
end
end
class Scene_Battle
alias seph_battlecount_scnbtl_main main
def main
$game_party.battle_count += 1
seph_battlecount_scnbtl_main
end
end