;--------------------------------------------------------------------------------------------------
; ELIMINATE MUTANTS FOR BANDITS TASK-

[val_smart_terrain_7_4_bandit_trader_stalker_task_1]
icon = ui_inGame2_Nochnaya_ohota
prior = 10
storyline = false
title = val_smart_terrain_7_4_bandit_trader_stalker_task_1_name
descr = val_smart_terrain_7_4_bandit_trader_stalker_task_1_text
job_descr = val_smart_terrain_7_4_bandit_trader_stalker_task_1_about
task_complete_descr = val_smart_terrain_7_4_bandit_trader_stalker_task_1_finish
target_functor = general_under_faction_control
status_functor = check_smart_under_faction_control_staged
status_functor_params = monster
on_init = %=find_smart_under_faction_control(val_smart_terrain_7_4_bandit_trader_stalker_task_1_id:monster)%
precondition = {=all_avail_smart_stayed_squad_count_ge_by_faction(1:nil:false:monster)} true, false
repeat_timeout = 43200
stage_complete = 1
on_complete = %=reward_random_money(4500:5500) =reward_stash(true) =inc_task_stage(val_smart_terrain_7_4_bandit_trader_stalker_task_1) =complete_task_inc_goodwill(50:bandit) =pstor_reset(val_smart_terrain_7_4_bandit_trader_stalker_task_1_id) =pstor_reset(val_smart_terrain_7_4_bandit_trader_stalker_task_1_target_id)%
on_fail = %=pstor_reset(val_smart_terrain_7_4_bandit_trader_stalker_task_1_id) =fail_task_dec_goodwill(25:bandit) =pstor_reset(val_smart_terrain_7_4_bandit_trader_stalker_task_1_target_id)%
on_cancel = %=pstor_reset(val_smart_terrain_7_4_bandit_trader_stalker_task_1_id) =pstor_reset(val_smart_terrain_7_4_bandit_trader_stalker_task_1_target_id)%


;--------------------------------------------------------------------------------------------------
; DEFEND TERRITORY FOR BANDITS TASK-

[val_smart_terrain_7_4_bandit_trader_stalker_task_2]
icon = ui_inGame2_Odin_vistrel
prior = 2
storyline = false
title = val_smart_terrain_7_4_bandit_trader_stalker_task_2_name
descr = val_smart_terrain_7_4_bandit_trader_stalker_task_2_text
job_descr = val_smart_terrain_7_4_bandit_trader_stalker_task_2_about
task_complete_descr = val_smart_terrain_7_4_bandit_trader_stalker_task_2_finish
repeat_timeout = 43200
target_functor = general_under_faction_control
status_functor = check_smart_under_faction_control_staged
status_functor_params = stalker,army,dolg,killer,csky,monolith
stage_complete = 1
on_init = %=find_smart_under_faction_control_ex(val_smart_terrain_7_4_bandit_trader_stalker_task_2_id:stalker:army:dolg:killer:csky:monolith)%
precondition = {=all_avail_smart_stayed_squad_count_ge_by_faction_ex(1:nil:false:stalker:army:dolg:killer:csky:monolith)} true, false
on_complete = %=inc_task_stage(val_smart_terrain_7_4_bandit_trader_stalker_task_2) =complete_task_inc_goodwill(50:bandit) =reward_random_money(7500:8500) =pstor_reset(val_smart_terrain_7_4_bandit_trader_stalker_task_2_id) =pstor_reset(val_smart_terrain_7_4_bandit_trader_stalker_task_2_target_id)%
on_fail = %=pstor_reset(val_smart_terrain_7_4_bandit_trader_stalker_task_2_id) =fail_task_dec_goodwill(25:bandit) =pstor_reset(val_smart_terrain_7_4_bandit_trader_stalker_task_2_target_id)%
on_cancel = %=pstor_reset(val_smart_terrain_7_4_bandit_trader_stalker_task_2_id) =pstor_reset(val_smart_terrain_7_4_bandit_trader_stalker_task_2_target_id)%


;--------------------------------------------------------------------------------------------------
; ESCORT RAIDERS FOR BANDITS TASK-

[val_smart_terrain_7_4_bandit_trader_stalker_task_3]
icon = ui_inGame2_Odin_vistrel
prior = 25
storyline = false
title = val_smart_terrain_7_4_bandit_trader_stalker_task_3_name
descr = val_smart_terrain_7_4_bandit_trader_stalker_task_3_text
job_descr = val_smart_terrain_7_4_bandit_trader_stalker_task_3_about
task_complete_descr = val_smart_terrain_7_4_bandit_trader_stalker_task_3_finish
target_functor = val_smart_terrain_7_4_bandit_trader_stalker_task_target
on_init = %=setup_companion_task(bandit_companion_task_1:val_smart_terrain_7_4) -bandit_companion_task_1_started -bandit_companion_task_1_force_started%
precondition = {!squad_exist(bandit_companion_task_1)} true, false
repeat_timeout = 43200
on_complete = %=reward_random_money(6500:7500) =complete_task_inc_goodwill(50:bandit) =reward_stash(true) =remove_special_task_squad(bandit_companion_task_1)%
on_fail = %=fail_task_dec_goodwill(25:bandit) =remove_special_task_squad(bandit_companion_task_1)%
on_cancel = %=remove_special_task_squad(bandit_companion_task_1)%
condlist_0 = {!squad_exist(bandit_companion_task_1)} fail


;--------------------------------------------------------------------------------------------------
; ASSASSINATION FOR OLIVIUS TASK-

[val_smart_terrain_7_4_bandit_trader_stalker_task_4]
icon = ui_inGame2_Odin_vistrel
prior = 35
storyline = false
title = val_smart_terrain_7_4_bandit_trader_stalker_task_4_name
descr = val_smart_terrain_7_4_bandit_trader_stalker_task_4_text
job_descr = val_smart_terrain_7_4_bandit_trader_stalker_task_4_about
task_complete_descr = val_smart_terrain_7_4_bandit_trader_stalker_task_4_finish
repeat_timeout = 86400
status_functor = bounty_task
target_functor = general_bounty_task
stage_complete = 1
on_job_descr = %=on_init_bounty_hunt(val_smart_terrain_7_4_bandit_trader_stalker_task_4:stalker:killer:dolg:csky:army)%
on_complete = %=reward_random_money(9000:11000) =reward_stash(true) =inc_task_stage(val_smart_terrain_7_4_bandit_trader_stalker_task_4) =complete_task_inc_goodwill(50:bandit)%
precondition = true


;--------------------------------------------------------------------------------------------------
; FIND LEVEL 1 TOOLKIT FOR LIMPID-

[val_smart_terrain_7_3_bandit_mechanic_stalker_task_1]
icon = ui_inGame2_Instrumenti
prior = 10
storyline = false
title = val_smart_terrain_7_3_bandit_mechanic_stalker_task_1_name
title_functor = general_fetch_task
descr = val_smart_terrain_7_3_bandit_mechanic_stalker_task_1_text
descr_functor = general_fetch_task
job_descr = val_smart_terrain_7_3_bandit_mechanic_stalker_task_1_about
fetch_descr = val_smart_terrain_7_3_bandit_mechanic_stalker_task_1_fetch_about
fetch_func = %=setup_generic_fetch_task(val_smart_terrain_7_3_bandit_mechanic_stalker_task_1_fetch:1:itm_repairkit_tier_1)%
stage_complete = 1
status_functor = actor_has_fetch_item
target_functor = general_fetch_task
task_complete_descr = val_smart_terrain_7_3_bandit_mechanic_stalker_task_1_fetch_finish
on_complete = %+val_smart_terrain_7_3_bandit_mechanic_stalker_upgrade_tier_1 =complete_task_inc_goodwill(50:bandit) =reward_item_cost_mult_and_remove(val_smart_terrain_7_3_bandit_mechanic_stalker_task_1_fetch:0.8) =inc_task_stage(val_smart_terrain_7_3_bandit_mechanic_stalker_task_1)%
precondition = {-val_smart_terrain_7_3_bandit_mechanic_stalker_upgrade_tier_1} true, false


;--------------------------------------------------------------------------------------------------
; FIND LEVEL 2 TOOLKIT FOR LIMPID-

[val_smart_terrain_7_3_bandit_mechanic_stalker_task_2]
icon = ui_inGame2_Instrumenti
prior = 10
storyline = false
title = val_smart_terrain_7_3_bandit_mechanic_stalker_task_2_name
title_functor = general_fetch_task
descr = val_smart_terrain_7_3_bandit_mechanic_stalker_task_2_text
descr_functor = general_fetch_task
job_descr = val_smart_terrain_7_3_bandit_mechanic_stalker_task_2_about
fetch_descr = val_smart_terrain_7_3_bandit_mechanic_stalker_task_2_fetch_about
fetch_func = %=setup_generic_fetch_task(val_smart_terrain_7_3_bandit_mechanic_stalker_task_2_fetch:1:itm_repairkit_tier_2)%
stage_complete = 1
status_functor = actor_has_fetch_item
target_functor = general_fetch_task
task_complete_descr = val_smart_terrain_7_3_bandit_mechanic_stalker_task_2_fetch_finish
on_complete = %+val_smart_terrain_7_3_bandit_mechanic_stalker_upgrade_tier_2 =complete_task_inc_goodwill(50:bandit) =reward_item_cost_mult_and_remove(val_smart_terrain_7_3_bandit_mechanic_stalker_task_2_fetch:0.8) =inc_task_stage(val_smart_terrain_7_3_bandit_mechanic_stalker_task_2)%
precondition = {+val_smart_terrain_7_3_bandit_mechanic_stalker_upgrade_tier_1 -val_smart_terrain_7_3_bandit_mechanic_stalker_upgrade_tier_2} true, false


;--------------------------------------------------------------------------------------------------
; FIND LEVEL 3 TOOLKIT FOR LIMPID-

[val_smart_terrain_7_3_bandit_mechanic_stalker_task_3]
icon = ui_inGame2_Instrumenti
prior = 10
storyline = false
title = val_smart_terrain_7_3_bandit_mechanic_stalker_task_3_name
title_functor = general_fetch_task
descr = val_smart_terrain_7_3_bandit_mechanic_stalker_task_3_text
descr_functor = general_fetch_task
job_descr = val_smart_terrain_7_3_bandit_mechanic_stalker_task_3_about
fetch_descr = val_smart_terrain_7_3_bandit_mechanic_stalker_task_3_fetch_about
fetch_func = %=setup_generic_fetch_task(val_smart_terrain_7_3_bandit_mechanic_stalker_task_3_fetch:1:itm_repairkit_tier_3)%
stage_complete = 1
status_functor = actor_has_fetch_item
target_functor = general_fetch_task
task_complete_descr = val_smart_terrain_7_3_bandit_mechanic_stalker_task_3_fetch_finish
on_complete = %+val_smart_terrain_7_3_bandit_mechanic_stalker_upgrade_tier_3 =complete_task_inc_goodwill(50:bandit) =reward_item_cost_mult_and_remove(val_smart_terrain_7_3_bandit_mechanic_stalker_task_3_fetch:0.8) =inc_task_stage(val_smart_terrain_7_3_bandit_mechanic_stalker_task_3)%
precondition = {+val_smart_terrain_7_3_bandit_mechanic_stalker_upgrade_tier_2 -val_smart_terrain_7_3_bandit_mechanic_stalker_upgrade_tier_3} true, false
