[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info = {+dark_a17_killer_squad_dead +dark_a8_sim_contr_dead} sr_idle@quest_control_1 %=create_squad(dark_a7_northern_zastava_squad:dark_a7)%

[sr_idle@quest_control_1]
on_game_timer = 30 | sr_idle@quest_control_2 %=give_task( fplay_vadim_quest )%

[sr_idle@quest_control_2]
on_game_timer = 30 | sr_idle@quest_control_3 %=give_task( fplay_victor_quest )%

[sr_idle@quest_control_3]
on_info = {+fplay_vadim_dialog_end} sr_idle@quest_control_4 %=create_squad_member(dark_a1_freedom:dark_a1_freedom_squad)%

[sr_idle@quest_control_4]
on_info = {=actor_has_item(flash_bar_military) =dist_between_actor_and_smart_ge(dark_a1:200)} sr_idle@quest_control_5 %+level_bar_to_military_ok =set_neutral_actor_faction(freedom)%

[sr_idle@quest_control_5]
on_info = sr_idle@quest_control_6 %=clear_smart_terrain(dark_a1) =create_squad(mil_a9_ruslan_squad:mil_a9) =create_squad(mil_a2_dolg_squad:mil_a2)%

[sr_idle@quest_control_6]
on_info = sr_idle@quest_control_7 %=create_squad(mil_a10_killer_squad:mil_a10) =create_squad(mil_a14_killer_squad:mil_a14)%

[sr_idle@quest_control_7]
on_info = sr_idle@quest_control_8 %=give_task( fplay_denis_quest )%

[sr_idle@quest_control_8]
on_info = {+fplay_scan_anom_quest_done +fplay_scan_art_quest_done} sr_idle@quest_control_9 %=spawn_ids_objects(den_treasure)%

[sr_idle@quest_control_9]
on_game_timer = 30 | sr_idle@nil %=send_message( denis_message:radar_a6_botanic:radar_a6_botanic_name:15000 ) =set_treasure_spot(den_treasure)%

[sr_idle@nil]
