[logic]
active = sr_idle@idle

[sr_idle@idle]
on_info = {+bar_arena_fight_1 -bar_arena_fight_1_done} sr_idle@wait, {+bar_arena_fight_2 -bar_arena_fight_2_done} sr_idle@wait, {+bar_arena_fight_3 -bar_arena_fight_3_done} sr_idle@wait, {+bar_arena_fight_4 -bar_arena_fight_4_done} sr_idle@wait, {+bar_arena_fight_5 -bar_arena_fight_5_done} sr_idle@wait, {+bar_arena_fight_6 -bar_arena_fight_6_done} sr_idle@wait, {+bar_arena_fight_7 -bar_arena_fight_7_done} sr_idle@wait, {+bar_arena_fight_8 -bar_arena_fight_8_done} sr_idle@wait
on_info2 = {+bar_arena_fight_addition -bar_arena_fight_addition_done} sr_idle@wait_addition

[sr_idle@wait]
on_timer = 1 | sr_cutscene@fight %=m_arena.bar_arena_teleport% 

[sr_idle@wait_addition]
on_timer = 1 | {=m_arena.is_actor_fight} sr_cutscene@actor_fight_addition %=m_arena.bar_arena_teleport%, {!m_arena.is_actor_fight} sr_cutscene@npc_fight_addition %=m_arena.bar_arena_teleport%

[sr_cutscene@fight]
point = t_way
look = t_look
on_inside = false
cam_effector = arena
cam_effector_speed = 1.25
cam_effector_fov = 70
on_signal = cameff_end | sr_idle@fight %+bar_arena_fight_begin =m_arena.fight_begin%

[sr_cutscene@actor_fight_addition]
point = t_way
look = t_look
on_inside = false
cam_effector = arena
on_signal = cameff_end | sr_idle@fight %+bar_arena_fight_begin =m_arena.fight_begin%
can_break = true

[sr_cutscene@npc_fight_addition]
point = t_way_spectator
look = t_look_spectator
on_inside = false
cam_effector = arena
on_signal = cameff_end | sr_idle@fight %+bar_arena_fight_begin =m_arena.fight_begin%
can_break = true

[sr_idle@fight]
on_info = sr_idle@wait_finish

[sr_idle@wait_finish]
on_info = {+bar_arena_fight_1 +bar_arena_fight_1_done} sr_idle@pause %+bar_arena_fight_1_reward%,{+bar_arena_fight_2 +bar_arena_fight_2_done} sr_idle@pause %+bar_arena_fight_2_reward%,{+bar_arena_fight_3 =bar_arena_fight_3_end} sr_idle@pause %+bar_arena_fight_3_done +bar_arena_fight_3_reward%,{+bar_arena_fight_4 =bar_arena_fight_4_end} sr_idle@pause %+bar_arena_fight_4_done +bar_arena_fight_4_reward%
on_info2 = {+bar_arena_fight_5 =bar_arena_fight_5_end} sr_idle@pause %+bar_arena_fight_5_done +bar_arena_fight_5_reward%, {+bar_arena_fight_6 =bar_arena_fight_6_end} sr_idle@pause %+bar_arena_fight_6_done +bar_arena_fight_6_reward%, {+bar_arena_fight_7 +bar_arena_fight_7_done} sr_idle@pause %+bar_arena_fight_7_reward%,{+bar_arena_fight_8 =bar_arena_fight_8_end} sr_idle@pause %+bar_arena_fight_8_done +bar_arena_fight_8_reward%
on_info3 = {+bar_arena_fight_addition =m_arena.bar_arena_fight_addition_end_condition} sr_idle@pause %+bar_arena_fight_addition_done%

[sr_idle@pause]
on_info = sr_idle@wait_pause %+bar_arena_pause%

[sr_idle@wait_pause]
on_game_timer = 5400 | sr_idle@idle %-bar_arena_pause%