[logic]
active = sr_idle@wait

[sr_idle@wait]
on_info = {+red_leschi_relic_dialog_end} sr_idle@quest_control_1 %=spawn_ids_objects(redlim_leshiy_treasure) =remove_squads(lim_a13_lena_squad)%

[sr_idle@quest_control_1]
on_info = {=actor_has_item(leschi_pda)} sr_idle@quest_control_2 %=remove_leschi_pda +actor_has_leschi_pda =actor_is_thinking( thoughts_in_my_head_12 )%

[sr_idle@quest_control_2]
on_info  = {+red_leschi_relic_dialog_1_no}     sr_idle@quest_control_12 %=give_task( leshiy_quest_1 ) =spawn_object_in(lim_bridge_access_card_up:redlim_treasure_20)%
on_info2 = {+red_leschi_relic_dialog_1_yes}    sr_idle@quest_control_3  %=give_task( leshiy_quest_2 ) =spawn_object_in(red_leschi_key:redlim_treasure_20)%
on_info3 = {+red_leschi_relic_dialog_1_no_no}  sr_idle@quest_control_12 %=give_task( leshiy_quest_3 ) =spawn_object(lim_bridge_access_card_up:lim_bridge_access_card_up_way)%

[sr_idle@quest_control_3]
on_info = {=actor_has_item(red_leschi_key)} sr_idle@quest_control_4 %+actor_has_leschi_key =spawn_object(af_werewolf:af_werewolf_way)%

[sr_idle@quest_control_4]
on_info  = {=actor_has_item(af_werewolf)} sr_idle@quest_control_5 %+actor_has_af_werewolf +start_update_artefact%
on_info2 = {+leshiy_monolith_friend_fail} sr_idle@nil

[sr_idle@quest_control_5]
on_game_timer = 10 | sr_idle@quest_control_6 %=start_artefact_callback%
on_info = {+leshiy_monolith_friend_fail} sr_idle@nil

[sr_idle@quest_control_6]
on_info  = {+change_visual_werewolf} sr_idle@quest_control_7 %=disable_ui%
on_info2 = {+leshiy_monolith_friend_fail} sr_idle@nil

[sr_idle@quest_control_7]
on_game_timer = 80 | {=npc_is_standing(werewolf)} sr_idle@quest_control_8 %=actor_look_obj(werewolf)%

[sr_idle@quest_control_8]
on_game_timer  = 20 | {-start_werewolf_particle_1} %+start_werewolf_particle_1 =start_particle_npc_bone(werewolf:static\zharka_static_steam:bip01_spine1)%
on_game_timer2 = 50 | {-start_werewolf_particle_2} %+start_werewolf_particle_2 =start_particle_npc_bone(werewolf:anomaly2\anomaly_shift:bip01_spine1)%
on_game_timer3 = 70 | sr_idle@quest_control_9 %=run_postprocess(fade_to_black_9_sec)%

[sr_idle@quest_control_9]
on_game_timer = 72 | sr_idle@quest_control_9_1 %=run_postprocess(black:3009:true)%

[sr_idle@quest_control_9_1]
on_game_timer = 10 | sr_idle@quest_control_10 %=clear_smart_terrain(lim_a14) =kill_werewolf%

[sr_idle@quest_control_10]
on_game_timer = 30 | sr_idle@quest_control_11 %=clear_smart_terrain(lim_a17) =clear_smart_terrain(lim_a18)%

[sr_idle@quest_control_11]
on_game_timer = 10 | sr_idle@actor_think %=enable_ui =stop_postprocess(3009) +leshiy_monolith_friend%

[sr_idle@quest_control_12]
on_info = {=actor_has_item(lim_bridge_access_card_up)} sr_idle@quest_control_13 %+actor_has_lim_bridge_access_card_up%

[sr_idle@quest_control_13]
on_info = {=actor_has_item(lim_bridge_access_card_down)} sr_idle@nil %+actor_has_lim_bridge_access_card_down%

[sr_idle@actor_think]
on_info = sr_idle@nil %=actor_is_thinking( thoughts_in_my_head_13 )%

[sr_idle@nil]
