[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info = {+x5_a4_agent_squad_dead -actor_attack_friend_squad} sr_idle@quest_control_1

[sr_idle@quest_control_1]
on_info  = {=actor_in_zone(sr_laba_komp_code) =actor_has_item(codes_flash)} sr_idle@quest_control_2 %=run_tutorial( sr_laba_komp_code_tutor )%
on_info2 = {+lab_degt_all_retr_dialog_end} sr_idle@quest_control_4

[sr_idle@quest_control_2]
on_info  = {+sr_laba_komp_code_done} sr_idle@quest_control_3 %=stop_tutorial%
on_info2 = { !actor_in_zone( sr_laba_komp_code ) =has_active_tutorial} sr_idle@quest_control_1 %=stop_tutorial%

[sr_idle@quest_control_3]
on_info  = {-sr_laba_komp_code_done} sr_idle@quest_control_1 %-go_to_bar_from_laba%

[sr_idle@quest_control_4]
