[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info = {!black_screen +fplay_vadim_dialog_end} sr_idle@quest_control_1 %=create_squad(lim_a6_valera_squad:lim_a6)%

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

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

[sr_idle@quest_control_3]
on_game_timer = 30 | sr_idle@quest_control_4 %=clear_smart_terrain(jup_a24)%

[sr_idle@quest_control_4]
on_game_timer = 30 | sr_idle@quest_control_5 %=create_squad(jup_a24_kiborg_squad:jup_a24)%

[sr_idle@quest_control_5]
on_info = {+jup_a24_fp_kiborg_squad_dead +lim_a4_fp_kiborg_squad_dead} sr_idle@quest_control_6

[sr_idle@quest_control_6]
on_info = {!black_screen =dist_between_actor_and_smart_ge(lim_a4:200)} sr_idle@quest_control_7 %=create_squad(lim_a4_brodiaga_squad:lim_a4) +fplay_monolith_quest_done%

[sr_idle@quest_control_7]
on_game_timer = 30 | {+fplay_lider_monolit_dialog_money} sr_idle@quest_control_8 %=send_message( lim_a4_lider_monolit_message:lim_a4_lider_monolit:lim_a4_lider_monolit_name:30000 ) =give_money_to_actor(10000)%
on_info = {+fplay_lider_monolit_dialog_habar} sr_idle@quest_control_7_1 %=spawn_ids_objects(lider_monolit_treasure)%

[sr_idle@quest_control_7_1]
on_game_timer = 30 | sr_idle@quest_control_8 %=send_message( lim_a4_lider_monolit_message1:lim_a4_lider_monolit:lim_a4_lider_monolit_name:30000 ) =set_treasure_spot(lider_monolit_treasure)%

[sr_idle@quest_control_8]
on_game_timer = 30 | sr_idle@quest_control_9 %=give_task( fplay_brodiaga_quest )%

[sr_idle@quest_control_9]
on_game_timer = 30 | sr_idle@quest_control_10 %=give_task( fplay_leshiy_quest )%

[sr_idle@quest_control_10]
on_game_timer  = 30 | {+leshiy_monolith_friend} sr_idle@quest_control_11 %=give_task( fplay_wolf_quest )%
on_game_timer2 = 30 | {-leshiy_monolith_friend} sr_idle@quest_control_11

[sr_idle@quest_control_11]
on_info = {+lim_a5_fp_agent_squad_dead +lim_b2_fp_agent_squad_dead +lim_a16_fp_agent_squad_dead +lim_a18_fp_agent_squad_dead} sr_idle@quest_control_12 %+quest_brodiaga_is_done%

[sr_idle@quest_control_12]
on_game_timer = 30 | sr_idle@quest_control_13 %=send_message( lim_a4_brodiaga_monolit_message:lim_a4_brodiaga_monolit:jup_b4_monolith_squad_leader_name:30000 ) =give_money_to_actor(10000)%

[sr_idle@quest_control_13]
on_info = sr_idle@quest_control_14 %=create_squad(lim_a8_fp_monolith_squad:lim_a8) =create_squad(lim_a12_fp_monolith_squad:lim_a12) =create_squad(lim_a20_fp_monolith_squad:lim_a20)%

[sr_idle@quest_control_14]
on_info = {=dist_between_actor_and_smart_ge(lim_a14:200)} sr_idle@nil %=create_squad(lim_a14_fp_monolith_squad:lim_a14)%

[sr_idle@nil]
