[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info = {+pri_b35_actor_rest} sr_idle@start

[sr_idle@start]
on_info = {+pri_b35_merc_leader_sighted} sr_idle@wait_for_envoy %=play_sound(pri_b35_merc_leader_sighted)%
on_info2 = {+pri_b35_attack_started} sr_idle@hunt_started
on_info3 = {!actor_in_zone(pri_b35_sr_actor_position)} sr_idle@wait_for_envoy

[sr_idle@wait_for_envoy]
on_info = {+pri_b35_envoy_sighted} sr_idle@rendevous %=play_sound(pri_b35_envoy_sighted)%
on_info2 = {+pri_b35_attack_started} sr_idle@hunt_started
on_info3 = {!actor_in_zone(pri_b35_sr_actor_position)} sr_idle@rendevous

[sr_idle@rendevous]
on_info = {+pri_b35_rendevous_in_process} sr_idle@rendevous_done %=play_sound(pri_b35_rendevous_in_process)% 
on_info2 = {+pri_b35_attack_started} sr_idle@hunt_started
on_info3 = {!actor_in_zone(pri_b35_sr_actor_position)} sr_idle@rendevous_done

[sr_idle@rendevous_done]
on_info = {+pri_b35_attack_started} sr_idle@hunt_started
on_info2 = {+pri_b35_rendevous_done} sr_idle@hunt_started %=play_sound(pri_b35_rendevous_done)%

[sr_idle@hunt_started] 
on_info = {+pri_b35_envoy_out +pri_b35_target_envoy} %=play_sound(pri_b35_primary_target_down)%, {+pri_b35_envoy_out -pri_b35_target_envoy} %=play_sound(pri_b35_secondary_target_down)%
on_info2 = {+pri_b35_merc_leader_out +pri_b35_target_merc} %=play_sound(pri_b35_primary_target_down)%, {+pri_b35_merc_leader_out -pri_b35_target_merc} %=play_sound(pri_b35_secondary_target_down)%
on_info3 = {+pri_b35_envoy_escape +pri_b35_target_envoy -pri_b35_merc_leader_escape} sr_idle@nil %=play_sound(pri_b35_primary_target_lost_end)%
on_info4 = {+pri_b35_envoy_escape -pri_b35_target_envoy +pri_b35_merc_leader_out} sr_idle@nil %=play_sound(pri_b35_secondary_target_lost_end)%
on_info5 = {+pri_b35_merc_leader_escape +pri_b35_target_merc -pri_b35_envoy_escape} sr_idle@nil %=play_sound(pri_b35_primary_target_lost_end)%
on_info6 = {+pri_b35_merc_leader_escape -pri_b35_target_merc +pri_b35_envoy_out} sr_idle@nil %=play_sound(pri_b35_secondary_target_lost_end)%
on_info7 = {+pri_b35_envoy_out +pri_b35_merc_leader_out} sr_idle@nil %=play_sound(pri_b35_both_done_end)%
on_info8 = {+pri_b35_merc_leader_escape +pri_b35_envoy_escape} sr_idle@nil %=play_sound(pri_b35_targets_lost_end)%
on_info9 = {+pri_b35_merc_leader_out +pri_b35_envoy_out} sr_idle@nil

[sr_idle@nil]
