[logic]
active = sr_idle@idle

[sr_idle@idle]
on_info = {+bar_arena_start} sr_idle@start %+bar_arena_door_1_open%

[sr_idle@start]
on_info = {=bar_arena_actor_inside} sr_idle@introduce %-bar_arena_door_1_open =bar_arena_introduce +bar_arena_start_introduce%
on_timer = 60000 | sr_idle@idle %-bar_arena_door_1_open +bar_arena_start_introduce +bar_arena_actor_afraid =bar_arena_actor_afraid%

[sr_idle@introduce]
on_info = {-bar_arena_start_introduce} sr_idle@inside %+bar_arena_door_2_open +bar_arena_spawn_monstr +bar_arena_state_1%

[sr_idle@inside]
on_info = {+bar_arena_monstr_ready} sr_idle@wait_actor %-bar_arena_door_2_open +bar_arena_door_3_open%

[sr_idle@wait_actor]
on_info = {=bar_arena_actor_fight} sr_idle@fight %-bar_arena_door_3_open%

[sr_idle@fight]
on_info = {+bar_arena_monstr_dead} sr_idle@outer %+bar_arena_door_3_open -bar_arena_state_1%
on_info2 = {=actor_dead} nil %=bar_arena_actor_dead +bar_arena_actor_dead +bar_arena_start_introduce%

[sr_idle@outer]
on_info = {=bar_arena_actor_inside} sr_idle@outside %-bar_arena_door_3_open +bar_arena_door_1_open%

[sr_idle@outside]
on_info = {=bar_arena_actor_outside} sr_idle@pause %-bar_arena_door_1_open -bar_arena_start +bar_arena_pause%

[sr_idle@pause]
on_game_timer = 45000 | sr_idle@idle %-bar_arena_pause%
