[logic]
active = sr_idle@wait_for_start

[sr_idle@wait_for_start]
on_info = {+zat_b14_smart_terrain_open -zat_b29_task_start !talking} %+zat_b29_task_start% 
on_info2 = {+zat_b29_task_start} sr_idle@create_random_task_af

[sr_idle@create_random_task_af]
on_info = {+zat_b29_first_rival_taken_out +zat_b29_second_rival_taken_out -zat_b29_linker_fears_actor +zat_b29_respawn} sr_idle@nil %+zat_b29_linker_fears_actor%
on_info2 = {+zat_b29_first_rival_taken_out +zat_b29_second_rival_taken_out -zat_b29_linker_fears_actor -zat_b29_exclusive_conditions} %+zat_b29_linker_fears_actor%
on_info3 = {-zat_b29_linker_fears_actor} sr_idle@give_task %=zat_b29_create_random_infop(3:zat_b29_af_16:zat_b29_af_17:zat_b29_af_18:zat_b29_af_19:zat_b29_af_20:zat_b29_af_21:zat_b29_af_22:zat_b29_af_23)%

[sr_idle@give_task]
on_info = {+zat_b29_adv_task_given} sr_idle@wait_for_adv_task %=give_task(zat_b29_adv_task)%
on_info2 = {+zat_b29_redice} sr_idle@create_random_task_af %-zat_b29_redice%
on_info3 = {+zat_b29_task_fail} sr_idle@nil
on_game_timer = 10800 | sr_idle@create_random_task_af

[sr_idle@wait_for_adv_task]
on_info = {-zat_b29_adv_task_given} sr_idle@create_random_task_af
on_info2 = {=is_squad_enemy_to_actor(zat_b29_stalker_rival_1_squad) -zat_b29_first_rival_taken_out} %+zat_b29_first_rival_taken_out%
on_info3 = {=is_squad_enemy_to_actor(zat_b29_stalker_rival_2_squad) -zat_b29_second_rival_taken_out} %+zat_b29_second_rival_taken_out%
on_info4 = {=is_squad_enemy_to_actor(zat_b29_stalker_rival_default_1_squad) -zat_b29_first_rival_taken_out} %+zat_b29_first_rival_taken_out%
on_info5 = {=is_squad_enemy_to_actor(zat_b29_stalker_rival_default_2_squad) -zat_b29_second_rival_taken_out} %+zat_b29_second_rival_taken_out%
on_game_timer = 172800 | %+zat_b29_adv_task_timeout%

[sr_idle@nil]