[list_tm_escape]
esc_reach_stalker_base
esc_talk2_leader
esc_talk2_comm
esc_talk2_leader_2
esc_eliminate_smart_military_5_9
esc_eliminate_smart_military_7_11
esc_dopros
esc_take_habar_1
esc_take_habar_2
esc_take_habar_3
esc_bring_habar
esc_defend_stalkers_bus_station
esc_defend_stalkers_tonnel
esc_defend_stalkers_base
esc_take_weapon
esc_stalker_enemy

esc_additional_quest_4a
esc_additional_quest_4b
esc_additional_quest_4c
esc_additional_quest_5a
esc_additional_quest_5b
esc_additional_quest_5c
esc_additional_quest_6a
esc_additional_quest_6b
esc_eliminate_smart_military_6_6
esc_eliminate_smart_military_6_6_reward

;esc_bring_item_1
;esc_bring_item_2
;esc_bring_item_3
;esc_bring_item_4
;esc_bring_item_5

esc_recover_item
esc_recover_item_1
esc_recover_item_2
esc_recover_item_3

[esc_stalker_enemy]
type = storyline
task_type = storyline
target_story_ids = 442
icon = ui_mt_image_attack_tower
name = esc_stalker_enemy_name
text = esc_stalker_enemy_text
prior = 100
condlist_0 = {+esc_stalker_neutral} complete
auto_faction = true

[esc_reach_stalker_base]
prior = 2
type = storyline
task_type = storyline
icon = ui_mt_image_attack_tower
name = esc_reach_stalker_base
text = esc_reach_stalker_base_text
target_story_ids = 402
condlist_0 = {+esc_actor_inside_stalkerbase} complete
on_complete = %+esc_reach_stalker_base_complete%
auto_faction = true

[esc_talk2_leader]
prior = 5
type = storyline
task_type = storyline
icon = ui_mt_image_attack_tower
name = esc_talk2_leader
text = esc_talk2_leader_text
target_story_ids = 408
condlist_0 = {+esc_stalker_leader_meet} complete
auto_faction = true

[esc_talk2_comm]
type = storyline
task_type = storyline
icon = ui_mt_image_attack_tower
name = esc_talk2_comm
text = esc_talk2_comm_text
target_story_ids = 409
condlist_0 = {+esc_military_comm_talked} complete
auto_faction = true

[esc_talk2_leader_2]
type = storyline
task_type = storyline
icon = ui_mt_image_attack_tower
name = esc_talk2_leader_2
text = esc_talk2_leader_2_text
target_story_ids = 408
condlist_0 = {+esc_leader_talked2} complete
auto_faction = true

[esc_eliminate_smart_military_5_9]
type = eliminate_smart
task_type = storyline
auto_name = false
icon = ui_mt_image_defend_tower
name = esc_eliminate_smart_military_5_9
text = esc_eliminate_smart_military_5_9_text
prior = 10
target_cond = {-esc_mission_stalker_leader_complete +esc_actor_mission_stalker_leader =target_smart_name(esc_smart_terrain_5_9)} true
wait_time = -1
on_complete = %+esc_mission_stalker_leader_complete%
on_reversed = %+esc_mission_stalker_leader_complete%
community_relation_delta_fail=-200
community_relation_delta_complete=+200
play_regard = nil
auto_faction = true

[esc_eliminate_smart_military_7_11]
type = eliminate_smart
task_type = storyline
auto_name = false
icon = ui_mt_image_defend_tower
name = esc_eliminate_smart_military_7_11
text = esc_eliminate_smart_military_7_11_text
prior = 10
target_cond = {-esc_mission_2_stalker_leader_complete +esc_mission_stalker_leader_complete =target_smart_name(esc_smart_terrain_7_11)} true
wait_time = -1
on_complete = %+esc_mission_2_stalker_leader_complete%
on_reversed = %+esc_mission_2_stalker_leader_complete%
community_relation_delta_fail=-300
community_relation_delta_complete=+300
play_regard = nil
auto_faction = true

[esc_dopros]
type = storyline
task_type = storyline
icon = ui_mt_image_attack_factory
name = esc_dopros
text = esc_dopros_text
target_story_ids = 408
condlist_0 = {+esc_com_tell_about_habar} complete
auto_faction = true

[esc_take_habar_1]
type = storyline
task_type = storyline
icon = ui_mt_image_attack_factory
name = esc_take_habar
text = esc_take_habar_text
target_story_ids = 403
condlist_0 = {+esc_actor_inside_habar} complete
on_complete = %+esc_take_habar_complete%
auto_faction = true

[esc_take_habar_2]
type = storyline
task_type = storyline
icon = ui_mt_image_attack_factory
name = esc_take_habar
text = esc_take_habar_text
target_story_ids = 413
condlist_0 = {+esc_actor_inside_habar} complete
on_complete = %+esc_take_habar_complete%
auto_faction = true

[esc_take_habar_3]
type = storyline
task_type = storyline
icon = ui_mt_image_attack_factory
name = esc_take_habar
text = esc_take_habar_text
target_story_ids = 423
condlist_0 = {+esc_actor_inside_habar} complete
on_complete = %+esc_take_habar_complete%
auto_faction = true

[esc_bring_habar]
type = storyline
task_type = storyline
icon = ui_mt_image_attack_factory
name = esc_bring_habar
text = esc_bring_habar_text
target_story_ids = 401
condlist_0 = {+esc_bring_habar_complete} complete
auto_faction = true

[esc_defend_stalkers_bus_station]
type = defend_smart
task_type = additional
icon = ui_mt_image_attack_factory
name = esc_defend_stalkers_bus_station_name
text = esc_defend_stalkers_bus_station_text
target_cond = {=target_smart_name(esc_smart_terrain_5_10)} true
reward_money = 1000
reward_item = ammo_9x18_fmj:ammo_9x18_fmj:ammo_5.45x39_fmj:ammo_5.45x39_fmj
community_relation_delta_fail=-100
community_relation_delta_complete=+100
wait_time = 30
prior = 10
auto_faction = true

[esc_defend_stalkers_tonnel]
type = defend_smart
task_type = additional
target_cond = {=target_smart_name(esc_smart_terrain_4_8)} true
name = esc_defend_stalkers_tonnel_name
text = esc_defend_stalkers_tonnel_text
reward_money = 1000
reward_item = ammo_9x18_fmj:ammo_9x18_fmj:ammo_5.45x39_fmj:ammo_5.45x39_fmj
community_relation_delta_fail=-100
community_relation_delta_complete=+100
wait_time = 0
prior = 10
auto_faction = true

[esc_defend_stalkers_base]
type = defend_smart
task_type = additional
target_cond = {=target_smart_name(esc_smart_terrain_5_7)} true
name = esc_defend_stalkers_base_name
text = esc_defend_stalkers_base_text
reward_money = 2000
reward_item = ammo_12x70_buck:ammo_12x70_buck:ammo_5.45x39_fmj:ammo_5.45x39_fmj
community_relation_delta_fail=-200
community_relation_delta_complete=+200
wait_time = 0
prior = 10
auto_faction = true

[esc_take_weapon]
type = storyline
task_type = additional
icon = ui_mt_image_attack_factory
name = esc_take_weapon_name
text = esc_take_weapon_text
target_story_ids = 427
condlist_0 = {+esc_take_weapon_complete} complete
prior = 7
auto_faction = true

; additioan

[esc_additional_quest_4a] ;Брат Волка 1
type = storyline
task_type = additional
icon = ui_mt_image_attack_factory
name = esc_wolf_brother_1_name
text = esc_wolf_brother_1_text
target_story_ids = 429
condlist_0 = {+esc_wolf_brother_2} complete
condlist_1 = {+esc_wolf_brother_fail} fail, {=gulag_enemy_actor(esc_smart_terrain_2_12)} fail
prior = 8
wait_time = -1
community_relation_delta_fail=-100
community_relation_delta_complete=+100

[esc_additional_quest_4b] ;Брат Волка 2
type = storyline
task_type = additional
icon = ui_mt_image_attack_factory
name = esc_wolf_brother_2_name
text = esc_wolf_brother_2_text
target_story_ids = 429
condlist_0 = {+esc_wolf_brother_3} complete
condlist_1 = {+esc_wolf_brother_fail} fail, {=gulag_enemy_actor(esc_smart_terrain_2_12)} fail
prior = 8
wait_time = -1
community_relation_delta_fail=-50
community_relation_delta_complete=+50

[esc_additional_quest_4c] ;Брат Волка 3
type = storyline
task_type = additional
icon = ui_mt_image_attack_factory
name = esc_wolf_brother_3_name
text = esc_wolf_brother_3_text
target_story_ids = 431
condlist_0 = {+esc_wolf_brother_4} complete
condlist_1 = {+esc_wolf_brother_fail} fail, {=gulag_enemy_actor(esc_smart_terrain_2_12)} fail
immediate_reward = true
prior = 8
wait_time = -1
reward_money = 1500


[esc_additional_quest_5a] ;Собаки и новичок: спасение
type = storyline
task_type = additional
icon = ui_mt_image_attack_factory
name = esc_novice_stalker_1_name
text = esc_novice_stalker_1_text
target_story_ids = 433
condlist_0 = {+esc_wolf_novice_2} complete
condlist_1 = {+esc_stalker_novice_fail} fail, {=gulag_enemy_actor(esc_smart_terrain_2_12)} fail
prior = 8
wait_time = -1
community_relation_delta_fail=-100
community_relation_delta_complete=+100

[esc_additional_quest_5b] ;Собаки и новичок: бегство
type = storyline
task_type = additional
icon = ui_mt_image_attack_factory
name = esc_novice_stalker_2_name
text = esc_novice_stalker_2_text
target_story_ids = 433
condlist_0 = {+esc_wolf_novice_3} complete
condlist_1 = {+esc_stalker_novice_fail} fail, {=gulag_enemy_actor(esc_smart_terrain_2_12)} fail
prior = 8
wait_time = -1
community_relation_delta_fail=-50
community_relation_delta_complete=+50

[esc_additional_quest_5c] ;Награда волка
type = storyline
task_type = additional
icon = ui_mt_image_attack_factory
name = esc_novice_stalker_3_name
text = esc_novice_stalker_3_text
target_story_ids = 431
condlist_0 = {+esc_wolf_novice_4} complete
condlist_1 = {+esc_stalker_novice_fail} fail, {=gulag_enemy_actor(esc_smart_terrain_2_12)} fail
prior = 8
wait_time = -1
community_relation_delta_fail=-50
community_relation_delta_complete=+50
immediate_reward = true
reward_money = {+esc_stalker_novice_hit} 500, 750


[esc_additional_quest_6a] ;Друг водителя - найти труп
type = storyline
task_type = additional
icon = ui_mt_image_attack_factory
name = esc_driver_friend_1_name
text = esc_driver_friend_1_text
target_story_ids = 434
condlist_0 = {+esc_driver_friend_2} complete
condlist_1 = {+esc_driver_dead} fail
prior = 8
wait_time = -1

[esc_additional_quest_6b] ;Друг водителя - принести предмет
type = storyline
task_type = additional
icon = ui_mt_image_attack_factory
name = esc_driver_friend_2_name
text = esc_driver_friend_2_text
target_story_ids = 435
condlist_0 = {+esc_driver_friend_3} complete
condlist_1 = {+esc_driver_dead} fail
immediate_reward = true
prior = 8
wait_time = -1
reward_item = medkit_army

[esc_eliminate_smart_military_6_6] ;Уничтожить бандитов для торговца
type = eliminate_smart
task_type = additional
icon = ui_mt_image_defend_tower
name = esc_eliminate_smart_military_6_6_name
text = esc_eliminate_smart_military_6_6_text
prior = 9
target_cond = {+esc_trader_bandits_1 -esc_trader_bandits_2 =target_smart_name(esc_smart_terrain_6_6)} true
wait_time = -1
condlist_0 = {+esc_trader_bandits_2} complete
condlist_1 = {=gulag_enemy_actor(esc_smart_terrain_5_7)} fail
;{=quest_npc_enemy_actor(438)} fail, {!is_alive_one(438)} fail
on_complete = %+esc_trader_bandits_2%
community_relation_delta_fail=-100
community_relation_delta_complete=+100
play_regard = nil

[esc_eliminate_smart_military_6_6_reward] ;Забрать награду у торговца
type = storyline
task_type = additional
icon = ui_mt_image_attack_factory
name = esc_eliminate_smart_military_6_6_reward_name
text = esc_eliminate_smart_military_6_6_reward_name
target_story_ids = 438
condlist_0 = {+esc_trader_bandits_3} complete
condlist_1 = {=gulag_enemy_actor(esc_smart_terrain_5_7)} fail
;{=quest_npc_enemy_actor(438)} fail, {!is_alive_one(438)} fail
reward_money = 1000
immediate_reward = true
prior = 2


;Bring Items

[esc_bring_item_1]
auto_name = false
type = bring_item
task_type = additional
name = esc_bring_item_1_name
text = esc_bring_item_1_text
target_cond = {~20 =actor_on_level(escape)} true
prior = 5
faction = stalker
requested_items = medkit_army
community_relation_delta_complete = 100
reward_money = {~50} 500, {~50}, 750, 500

[esc_bring_item_2]
auto_name = false
type = bring_item
task_type = additional
name = esc_bring_item_2_name
text = esc_bring_item_2_text
target_cond = {~20 =actor_on_level(escape)} true
prior = 5
faction = stalker
requested_items = wpn_lr300
community_relation_delta_complete = 100
reward_money = {~50} 500, {~50}, 800, 1200

[esc_bring_item_3]
auto_name = false
type = bring_item
task_type = additional
name = esc_bring_item_3_name
text = esc_bring_item_3_text
target_cond = {~20 =actor_on_level(escape)} true
prior = 5
faction = stalker
requested_items = wpn_vintorez
community_relation_delta_complete = 100
reward_money = {~50} 1000, {~50}, 1500, 2000

[esc_bring_item_4]
auto_name = false
type = bring_item
task_type = additional
name = esc_bring_item_4_name
text = esc_bring_item_4_text
target_cond = {~20 =actor_on_level(escape)} true
prior = 5
faction = stalker
requested_items = wpn_spas12, ammo_12x76_zhekan, ammo_12x76_zhekan
community_relation_delta_complete = 100
reward_money = {~50} 500, {~50}, 750, 1000

[esc_bring_item_5]
auto_name = false
type = bring_item
task_type = additional
name = esc_bring_item_5_name
text = esc_bring_item_5_text
target_cond = {~20 =actor_on_level(escape)} true
prior = 5
faction = stalker
requested_items = wpn_ak74, ammo_5.45x39_fmj, ammo_5.45x39_fmj
community_relation_delta_complete = 100
reward_money = {~50} 500, {~50}, 750, 1000


;Recover Items

[esc_recover_item_1]   ;Принести «волшебную водку»
type = recover_item
task_type = additional
name = esc_recover_item_1_name
text = esc_recover_item_1_text
target_npc_or_box_name = esc_treasure_6
distanse = 100
prior = 2
faction = stalker
target_cond = {=actor_on_level(escape) -esc_recover_item_1_done} true, false
on_init = %+esc_recover_item_1_done%
requested_items = esc_quest_magic_vodka
community_relation_delta_complete = 100
reward_money = 200
auto_faction = true

[esc_recover_item_2]   ;Принести трофейный АКМ-47/2
type = recover_item
task_type = additional
name = esc_recover_item_2_name
text = esc_recover_item_2_text
target_npc_or_box_name = esc_recover_item_2_corpse
distanse = 100
prior = 2
faction = stalker
target_cond = {=actor_on_level(escape) -esc_recover_item_2_done} true, false
on_init = %+esc_recover_item_2_done%
requested_items = esc_quest_akm47
community_relation_delta_complete = 100
reward_money = 1200
auto_faction = true

[esc_recover_item_3]   ;Вернуть «счастливый» детектор
type = recover_item
task_type = additional
name = esc_recover_item_3_name
text = esc_recover_item_3_text
target_npc_or_box_name = esc_recover_item_3_corpse
distanse = 100
prior = 2
faction = stalker
target_cond = {=actor_on_level(escape) -esc_recover_item_3_done} true, false
on_init = %+esc_recover_item_3_done%
requested_items = esc_quest_luky_detector
community_relation_delta_complete = 100
reward_money = 550
auto_faction = true

[esc_recover_item]   ;Принести спецаптечку
type = recover_item
task_type = additional
name = esc_recover_item_4_name
text = esc_recover_item_4_text
target_npc_or_box_name = esc_recover_item_4_corpse
distanse = 100
prior = 2
faction = stalker
target_cond = {=actor_on_level(escape) -esc_recover_item_4_done} true, false
on_init = %+esc_recover_item_4_done%
requested_items = esc_quest_spec_medkit
community_relation_delta_complete = 100
reward_money = 2500
auto_faction = true