;==============================================================
;
; Tasks Provided By Monolith (drx_ql_tasks_monolith.ltx)
;	CoC 1.5b r4 - DoctorX Questlines 2.0
;
;		- Strings file: configs\text\eng\drx_ql_strings_monolith.xml
;		- Status functor file: scripts\task_status_functor.script  (functions for status_functor field)
;		- Target functor file: scripts\task_functor.script  (functions for target_functor field)
;		- Preconditions file: scripts\xr_conditions.script  (functions for precondition and condlist_* fields)
;		- Task scripts file: scripts\xr_effects.script  (functions for on_* fields)
;
;	Created by: DoctorX
;	Last revised: October 03, 2019
;
;==============================================================


;//////////////////////////////////////////////////////////////////////////////////////////////////
;
; Monolith Storyline Tasks
;
;	Created by DoctorX
;	for DoctorX Questlines 2.0
;	October 03, 2019
;
;--------------------------------------------------------------------------------------------------

;------------------------------------------------
; Monolith Big Mutant Hunt Storyline Task-

[drx_ql_monolith_sl_task_1]

icon = ui_inGame2_PD_Ohotnik_na_mutantov
storyline = true
prior = 155
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(100) =actor_on_level(l11_pripyat) =drx_ql_actor_faction() -drx_ql_big_mutant_task_started =drx_ql_find_unoccupied_lair_local(drx_ql_monolith_sl_task_1)} true, false

title = drx_ql_monolith_sl_task_1_name
descr = drx_ql_monolith_sl_task_1_text
descr_functor = drx_ql_big_mutant_task_target
job_descr = drx_ql_monolith_sl_task_1_about
task_complete_descr = drx_ql_monolith_sl_task_1_finish

stage_complete = 1
target_functor = drx_ql_big_mutant_task_target
status_functor = drx_ql_big_mutant_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_monolith_sl_task_1)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_monolith_sl_task_1)} fail

on_job_descr = %=moon_cotz_show_stored_smart_target_location(drx_ql_monolith_sl_task_1)%
on_init = %=drx_ql_give_assault_target(drx_ql_monolith_sl_task_1) =drx_ql_create_big_mutant_squad(drx_ql_monolith_sl_task_1) +drx_ql_big_mutant_task_started%
on_complete = %=drx_ql_reward_random(1500:2500) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =inc_task_stage(drx_ql_monolith_sl_task_1) -drx_ql_big_mutant_task_started =drx_ql_reset_task(drx_ql_monolith_sl_task_1)%
on_fail = %=fail_task_dec_goodwill(50:monolith) -drx_ql_big_mutant_task_started =drx_ql_fail_task(drx_ql_monolith_sl_task_1) =drx_ql_reset_task(drx_ql_monolith_sl_task_1)%
on_cancel = %=fail_task_dec_goodwill(50:monolith) -drx_ql_big_mutant_task_started =drx_ql_fail_task(drx_ql_monolith_sl_task_1) =drx_ql_reset_task(drx_ql_monolith_sl_task_1)%

;------------------------------------------------
; Monolith Raid Enemy Camp Storyline Task-

[drx_ql_monolith_sl_task_2]

icon = ui_inGame2_PD_Lider
storyline = true
prior = 175
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(100) =drx_ql_is_npc(pri_monolith_monolith_trader_stalker) =drx_ql_actor_faction() =drx_ql_find_occupied_smart_ext(monolith:drx_ql_monolith_sl_task_2) !squad_exist(drx_ql_raid_companion_squad_monolith_2)} true, false

title = drx_ql_monolith_sl_task_2_name
descr = drx_ql_monolith_sl_task_2_text
descr_functor = drx_ql_assault_task_target
job_descr = drx_ql_monolith_sl_task_2_about
task_complete_descr = drx_ql_monolith_sl_task_2_finish

stage_complete = 1
target_functor = drx_ql_assault_task_target
status_functor = drx_ql_assault_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_monolith_sl_task_2)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_monolith_sl_task_2)} fail

on_job_descr = %=moon_cotz_show_stored_smart_target_location(drx_ql_monolith_sl_task_2)%
on_init = %=drx_ql_give_assault_target(drx_ql_monolith_sl_task_2) =drx_ql_give_escort_task_companions(drx_ql_raid_companion_squad_monolith_2)%
on_complete = %=drx_ql_reward_random(3000:5000) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =drx_ql_remove_story_squad(drx_ql_raid_companion_squad_monolith_2) =inc_task_stage(drx_ql_monolith_sl_task_2) =drx_ql_reset_task(drx_ql_monolith_sl_task_2)%
on_fail = %=fail_task_dec_goodwill(50:monolith) =drx_ql_remove_story_squad(drx_ql_raid_companion_squad_monolith_2) =drx_ql_fail_task(drx_ql_monolith_sl_task_2) =drx_ql_reset_task(drx_ql_monolith_sl_task_2)%
on_cancel = %=fail_task_dec_goodwill(50:monolith) =drx_ql_remove_story_squad(drx_ql_raid_companion_squad_monolith_2) =drx_ql_fail_task(drx_ql_monolith_sl_task_2) =drx_ql_reset_task(drx_ql_monolith_sl_task_2)%

;------------------------------------------------
; Monolith Hunt for Food Storyline Task-

[drx_ql_monolith_sl_task_3]

icon = ui_inGame2_PD_Ohotnik_na_mutantov
storyline = true
prior = 158
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(100) =drx_ql_actor_faction() =drx_ql_find_occupied_smart_local(monolith:drx_ql_monolith_sl_task_3:monster) !squad_exist(drx_ql_raid_companion_squad_monolith_1)} true, false

title = drx_ql_monolith_sl_task_3_name
descr = drx_ql_monolith_sl_task_3_text
descr_functor = drx_ql_assault_task_target
job_descr = drx_ql_monolith_sl_task_3_about
task_complete_descr = drx_ql_monolith_sl_task_3_finish

stage_complete = 1
target_functor = drx_ql_assault_task_target
status_functor = drx_ql_assault_task_status
status_functor_params = monster
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_monolith_sl_task_3)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_monolith_sl_task_3)} fail

on_job_descr = %=moon_cotz_show_stored_smart_target_location(drx_ql_monolith_sl_task_3)%
on_init = %=drx_ql_give_assault_target(drx_ql_monolith_sl_task_3) =drx_ql_give_escort_task_companions(drx_ql_raid_companion_squad_monolith_1)%
on_complete = %=drx_ql_reward_random(2000:3000) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =drx_ql_remove_story_squad(drx_ql_raid_companion_squad_monolith_1) =inc_task_stage(drx_ql_monolith_sl_task_3) =drx_ql_reset_task(drx_ql_monolith_sl_task_3)%
on_fail = %=fail_task_dec_goodwill(50:monolith) =drx_ql_remove_story_squad(drx_ql_raid_companion_squad_monolith_10) =drx_ql_fail_task(drx_ql_stalker_sl_task_1) =drx_ql_reset_task(drx_ql_monolith_sl_task_3)%
on_cancel = %=fail_task_dec_goodwill(50:monolith) =drx_ql_remove_story_squad(drx_ql_raid_companion_squad_monolith_10) =drx_ql_fail_task(drx_ql_stalker_sl_task_1) =drx_ql_reset_task(drx_ql_monolith_sl_task_3)%

; -----------------------------------------------
; Monolith Search Agroprom Underground Storyline Task-

[drx_ql_monolith_sl_task_4]

icon = ui_inGame2_Laboratoriya_X8
storyline = true
prior = 165
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(25) =drx_ql_actor_faction() -drx_ql_info_main_task_agr_u_done} true, false

title = drx_ql_monolith_sl_task_4_name
descr = drx_ql_monolith_sl_task_4_text
descr_functor = drx_ql_ug_fetch_task_target
job_descr = drx_ql_monolith_sl_task_4_about
task_complete_descr = drx_ql_monolith_sl_task_4_finish

stage_complete = 2
target_functor = drx_ql_ug_fetch_task_target
target_functor_params = agr_space_restrictor_to_agr_ug_2
status_functor = drx_ql_fetch_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_monolith_sl_task_4)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_monolith_sl_task_4)} fail

on_job_descr = %=moon_cotz_show_stored_smart_target_location(drx_ql_monolith_sl_task_4:drx_ql_location_main_story_1_quest_case_1:main_story_1_quest_case)%
on_init = %=drx_ql_setup_story_item_task(drx_ql_monolith_sl_task_4:main_story_1_quest_case) =drx_ql_activate_teleport(agr_space_restrictor_to_agr_ug_1:agr_space_restrictor_to_agr_ug_2:agr_space_restrictor_to_agr_ug_4)%
on_complete = %=drx_ql_reward_item(6000:8000) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =drx_ql_release_story_item(main_story_1_quest_case) =inc_task_stage(drx_ql_monolith_sl_task_4) +drx_ql_info_main_task_agr_u_done =drx_ql_reset_task(drx_ql_monolith_sl_task_4)%
on_fail = %=fail_task_dec_goodwill(50:monolith) =drx_ql_release_story_item(main_story_1_quest_case) =drx_ql_fail_task(drx_ql_monolith_sl_task_4) =drx_ql_reset_task(drx_ql_monolith_sl_task_4)%
on_cancel = %=fail_task_dec_goodwill(50:monolith) =drx_ql_release_story_item(main_story_1_quest_case) =drx_ql_fail_task(drx_ql_monolith_sl_task_4) =drx_ql_reset_task(drx_ql_monolith_sl_task_4)%

;------------------------------------------------
; Monolith Dynamic Brawl Storyline Task-

[drx_ql_monolith_sl_task_5]

icon = ui_inGame2_Issledovanie_anomaliy
storyline = true
prior = 194
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(100) =drx_ql_actor_faction() =drx_ql_find_brawl_terrain(monolith:drx_ql_monolith_sl_task_5)} true, false

title = drx_ql_monolith_sl_task_5_name
descr = drx_ql_monolith_sl_task_5_text
descr_1 = drx_ql_monolith_sl_task_5_text_1
descr_functor = drx_ql_brawl_task_target
job_descr = drx_ql_monolith_sl_task_5_about
message = drx_ql_monolith_sl_task_5_message
goodbye = drx_ql_monolith_sl_task_5_goodbye
task_complete_descr = drx_ql_monolith_sl_task_5_finish

stage_complete = 3
target_functor = drx_ql_brawl_task_target
status_functor = drx_ql_brawl_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_monolith_sl_task_5)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_monolith_sl_task_5)} fail

on_job_descr = %=moon_cotz_show_brawl_task_info(drx_ql_monolith_sl_task_5)%
on_init = %=drx_ql_setup_brawl_task(drx_ql_monolith_sl_task_5:4:2)%
on_complete = %=drx_ql_reward_random(5000:9000) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =inc_task_stage(drx_ql_monolith_sl_task_5) =drx_ql_end_brawl_task(drx_ql_monolith_sl_task_5) =drx_ql_reset_task(drx_ql_monolith_sl_task_5)%
on_fail = %=fail_task_dec_goodwill(50:monolith) =drx_ql_end_brawl_task(drx_ql_monolith_sl_task_5) =drx_ql_fail_task(drx_ql_monolith_sl_task_5) =drx_ql_reset_task(drx_ql_monolith_sl_task_5)%
on_cancel = %=fail_task_dec_goodwill(50:monolith) =drx_ql_end_brawl_task(drx_ql_monolith_sl_task_5) =drx_ql_fail_task(drx_ql_monolith_sl_task_5) =drx_ql_reset_task(drx_ql_monolith_sl_task_5)%

;------------------------------------------------
; Monolith Destroy the Non-Believers Storyline Task-

[drx_ql_monolith_sl_task_6]

icon = ui_inGame2_PD_Lider
storyline = true
prior = 175
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(100) =drx_ql_actor_faction() =drx_ql_find_occupied_smart_ext(monolith:drx_ql_monolith_sl_task_6) !squad_exist(drx_ql_raid_companion_squad_monolith_1)} true, false

title = drx_ql_monolith_sl_task_6_name
descr = drx_ql_monolith_sl_task_6_text
descr_functor = drx_ql_assault_task_target
job_descr = drx_ql_monolith_sl_task_6_about
task_complete_descr = drx_ql_monolith_sl_task_6_finish

stage_complete = 1
target_functor = drx_ql_assault_task_target
status_functor = drx_ql_assault_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_monolith_sl_task_6)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_monolith_sl_task_6)} fail

on_job_descr = %=moon_cotz_show_stored_smart_target_location(drx_ql_monolith_sl_task_6)%
on_init = %=drx_ql_give_assault_target(drx_ql_monolith_sl_task_6) =drx_ql_give_escort_task_companions(drx_ql_raid_companion_squad_monolith_1)%
on_complete = %=drx_ql_reward_random(3000:5000) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =drx_ql_remove_story_squad(drx_ql_raid_companion_squad_monolith_1) =inc_task_stage(drx_ql_monolith_sl_task_6) =drx_ql_reset_task(drx_ql_monolith_sl_task_6)%
on_fail = %=fail_task_dec_goodwill(50:monolith) =drx_ql_remove_story_squad(drx_ql_raid_companion_squad_monolith_1) =drx_ql_fail_task(drx_ql_monolith_sl_task_6) =drx_ql_reset_task(drx_ql_monolith_sl_task_6)%
on_cancel = %=fail_task_dec_goodwill(50:monolith) =drx_ql_remove_story_squad(drx_ql_raid_companion_squad_monolith_1) =drx_ql_fail_task(drx_ql_monolith_sl_task_6) =drx_ql_reset_task(drx_ql_monolith_sl_task_6)%

;------------------------------------------------
; Monolith Venture into the Zone Storyline Task-

[drx_ql_monolith_sl_task_7]

icon = ui_inGame2_Karti_mestnosti
storyline = true
prior = 165
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(100) =drx_ql_actor_faction() =drx_ql_find_occupied_smart_ext(monolith:drx_ql_monolith_sl_task_7)} true, false

title = drx_ql_monolith_sl_task_7_name
descr = drx_ql_monolith_sl_task_7_text
descr_functor = drx_ql_assault_task_target
job_descr = drx_ql_monolith_sl_task_7_about
task_complete_descr = drx_ql_monolith_sl_task_7_finish

stage_complete = 1
target_functor = drx_ql_assault_task_target
status_functor = drx_ql_assault_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_monolith_sl_task_7)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_monolith_sl_task_7)} fail

on_job_descr = %=moon_cotz_show_stored_smart_target_location(drx_ql_monolith_sl_task_7)%
on_init = %=drx_ql_give_assault_target(drx_ql_monolith_sl_task_7)%
on_complete = %=drx_ql_reward_random(3500:7000) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =inc_task_stage(drx_ql_monolith_sl_task_7) =drx_ql_reset_task(drx_ql_monolith_sl_task_7)%
on_fail = %=fail_task_dec_goodwill(50:monolith) =drx_ql_fail_task(drx_ql_monolith_sl_task_7) =drx_ql_reset_task(drx_ql_monolith_sl_task_7)%
on_cancel = %=fail_task_dec_goodwill(50:monolith) =drx_ql_fail_task(drx_ql_monolith_sl_task_7) =drx_ql_reset_task(drx_ql_monolith_sl_task_7)%

;------------------------------------------------
; Monolith Recover Stolen Equipment Task-

[drx_ql_monolith_sl_task_8]

icon = ui_inGame2_Osobiy_zakaz
storyline = true
prior = 180
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(100) =drx_ql_actor_faction() -drx_ql_quest_item_case_task_started =drx_ql_is_enemy(stalker) =is_factions_enemies(monolith:stalker) !squad_exist(drx_ql_designated_target_squad_stalker) =drx_ql_find_unoccupied_smart_terrain(drx_ql_monolith_sl_task_8)} true, false

title = drx_ql_monolith_sl_task_8_name
descr = drx_ql_monolith_sl_task_8_text
descr_functor = drx_ql_interceptor_task_target
job_descr = drx_ql_monolith_sl_task_8_about
task_complete_descr = drx_ql_monolith_sl_task_8_finish

stage_complete = 1
target_functor = drx_ql_interceptor_task_target
status_functor = drx_ql_interceptor_task_status
status_functor_params = drx_ql_quest_item_case
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_monolith_sl_task_8)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_monolith_sl_task_8)} fail

on_job_descr = %=moon_cotz_show_stored_smart_target_location(drx_ql_monolith_sl_task_8:nil:drx_ql_quest_item_case)%
on_init = %=drx_ql_give_stored_smart_target(drx_ql_monolith_sl_task_8) =drx_ql_create_interceptor_squad(drx_ql_monolith_sl_task_8:drx_ql_designated_target_squad_stalker) +drx_ql_quest_item_case_task_started%
on_complete = %=drx_ql_reward_money(3000:4500) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =remove_item(drx_ql_quest_item_case) =drx_ql_remove_story_squad(drx_ql_designated_target_squad_stalker) =inc_task_stage(drx_ql_monolith_sl_task_8) -drx_ql_quest_item_case_task_started =drx_ql_reset_task(drx_ql_monolith_sl_task_8)%
on_fail = %=fail_task_dec_goodwill(50:monolith) =remove_item(drx_ql_quest_item_case) =drx_ql_remove_story_squad(drx_ql_designated_target_squad_stalker) -drx_ql_quest_item_case_task_started =drx_ql_fail_task(drx_ql_monolith_sl_task_8) =drx_ql_reset_task(drx_ql_monolith_sl_task_8)%
on_cancel = %=fail_task_dec_goodwill(50:monolith) =remove_item(drx_ql_quest_item_case) =drx_ql_remove_story_squad(drx_ql_designated_target_squad_stalker) -drx_ql_quest_item_case_task_started =drx_ql_fail_task(drx_ql_monolith_sl_task_8) =drx_ql_reset_task(drx_ql_monolith_sl_task_8)%

; \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\


;//////////////////////////////////////////////////////////////////////////////////////////////////
;
; Monolith Simulation Tasks
;
;	Created by DoctorX
;	for DoctorX Questlines 2.0
;	September 10, 2019
;
;--------------------------------------------------------------------------------------------------

;------------------------------------------------
; Bring Supplies for Monolith Simulation Task-

[drx_ql_simulation_task_monolith_1]

icon = ui_inGame2_D_Sisshik
storyline = false
prior = 20
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction()} true, false

title = drx_ql_simulation_task_monolith_1_name
title_functor = drx_ql_fetch_task_target
descr = drx_ql_simulation_task_monolith_1_text
descr_functor = drx_ql_fetch_task_target
job_descr = drx_ql_simulation_task_monolith_1_about
fetch_descr = drx_ql_simulation_task_monolith_1_fetch_about
task_complete_descr = drx_ql_simulation_task_monolith_1_fetch_finish

stage_complete = 2
target_functor = drx_ql_fetch_task_target
status_functor = drx_ql_fetch_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_1)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_1)} fail

on_job_descr = %=moon_cotz_show_fetch_task_info(drx_ql_simulation_task_monolith_1)%
fetch_func = %=drx_ql_setup_fetch_task(drx_ql_simulation_task_monolith_1:500:900:1:4:0:items_supplies_list)%
on_complete = %=drx_ql_fetch_reward_random(drx_ql_simulation_task_monolith_1:1.5) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_1) =drx_ql_reset_task(drx_ql_simulation_task_monolith_1)%
on_fail = %=fail_task_dec_goodwill(50:monolith) =drx_ql_fail_task(drx_ql_simulation_task_monolith_1) =drx_ql_reset_task(drx_ql_simulation_task_monolith_1)%
on_cancel = %=fail_task_dec_goodwill(50:monolith) =drx_ql_fail_task(drx_ql_simulation_task_monolith_1) =drx_ql_reset_task(drx_ql_simulation_task_monolith_1)%

;------------------------------------------------
; Redemption for Monolith Simulation Task-

[drx_ql_simulation_task_monolith_2]

icon = ui_inGame2_Odin_vistrel
storyline = false
prior = 45
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction() =drx_ql_find_assassination_target(monolith:drx_ql_simulation_task_monolith_2)} true, false

title = drx_ql_simulation_task_monolith_2_name
descr = drx_ql_simulation_task_monolith_2_text
descr_functor = drx_ql_assassination_task_target
job_descr = drx_ql_simulation_task_monolith_2_about
task_complete_descr = drx_ql_simulation_task_monolith_2_finish

stage_complete = 1
target_functor = drx_ql_assassination_task_target
status_functor = drx_ql_assassination_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_2)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_2)} fail
on_job_descr = %=drx_ql_show_assassination_target(drx_ql_simulation_task_monolith_2:false)%
on_init = %=drx_ql_give_assassination_target(drx_ql_simulation_task_monolith_2)%

on_complete = %=drx_ql_reward_random(2500:3500) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_2) =drx_ql_reset_task(drx_ql_simulation_task_monolith_2)%
on_fail = %=fail_task_dec_goodwill(50:monolith) =drx_ql_fail_task(drx_ql_simulation_task_monolith_2) =drx_ql_reset_task(drx_ql_simulation_task_monolith_2)%
on_cancel = %=fail_task_dec_goodwill(50:monolith) =drx_ql_fail_task(drx_ql_simulation_task_monolith_2) =drx_ql_reset_task(drx_ql_simulation_task_monolith_2)%

;------------------------------------------------
; Eliminate Dangerous Mutants for Monolith Simulation Task -

[drx_ql_simulation_task_monolith_3]

icon = ui_inGame2_Nochnaya_ohota
storyline = false
prior = 55
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction() =drx_ql_find_occupied_smart_local(stalker:drx_ql_simulation_task_monolith_3:monster)} true, false

title = drx_ql_simulation_task_monolith_3_name
descr = drx_ql_simulation_task_monolith_3_text
descr_functor = drx_ql_assault_task_target
job_descr = drx_ql_simulation_task_monolith_3_about
task_complete_descr = drx_ql_simulation_task_monolith_3_finish

stage_complete = 1
target_functor = drx_ql_assault_task_target
status_functor = drx_ql_assault_task_status
status_functor_params = monster
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_3)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_3)} fail

on_job_descr = %=moon_cotz_show_stored_smart_target_location(drx_ql_simulation_task_monolith_3)%
on_init = %=drx_ql_give_assault_target(drx_ql_simulation_task_monolith_3)%
on_complete = %=drx_ql_reward_random(1500:3000) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_3) =drx_ql_reset_task(drx_ql_simulation_task_monolith_3)%
on_fail = %=fail_task_dec_goodwill(50:monolith) =drx_ql_fail_task(drx_ql_simulation_task_monolith_3) =drx_ql_reset_task(drx_ql_simulation_task_monolith_3)%
on_cancel = %=fail_task_dec_goodwill(50:monolith) =drx_ql_fail_task(drx_ql_simulation_task_monolith_3) =drx_ql_reset_task(drx_ql_simulation_task_monolith_3)%

;------------------------------------------------
; Item Swap with Monolith Simulation Task-

[drx_ql_simulation_task_monolith_4]

icon = ui_iconsTotal_bar_hunter_rifle
storyline = false
prior = 28
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction()} true, false

title = drx_ql_simulation_task_monolith_4_name
title_functor = drx_ql_fetch_task_target
descr = drx_ql_simulation_task_monolith_4_text
descr_functor = drx_ql_fetch_task_target
job_descr = drx_ql_simulation_task_monolith_4_about
fetch_descr = drx_ql_simulation_task_monolith_4_fetch_about
task_complete_descr = drx_ql_simulation_task_monolith_4_fetch_finish

stage_complete = 2
target_functor = drx_ql_fetch_task_target
status_functor = drx_ql_fetch_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_4)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_4)} fail

on_job_descr = %=moon_cotz_show_fetch_task_info(drx_ql_simulation_task_monolith_4)%
fetch_func = %=drx_ql_setup_swap_task(drx_ql_simulation_task_monolith_4:1000:6000:0.8)%
on_init = %=drx_ql_add_havfetch_task(drx_ql_simulation_task_monolith_4)%
on_complete = %=drx_ql_give_stored_reward(drx_ql_simulation_task_monolith_4) =remove_fetch_item(drx_ql_simulation_task_monolith_4_fetch) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_4) =drx_ql_reset_task(drx_ql_simulation_task_monolith_4)%
on_fail = %=fail_task_dec_goodwill(50:monolith) =drx_ql_fail_task(drx_ql_simulation_task_monolith_4) =drx_ql_reset_task(drx_ql_simulation_task_monolith_4)%
on_cancel = %=fail_task_dec_goodwill(50:monolith) =drx_ql_fail_task(drx_ql_simulation_task_monolith_4) =drx_ql_reset_task(drx_ql_simulation_task_monolith_4)%

;------------------------------------------------
; Monolith Guide Simulation Task-

[drx_ql_simulation_task_monolith_5]

icon = ui_inGame2_Karti_mestnosti
storyline = false
prior = 50
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction() -drx_ql_guide_task_started =drx_ql_find_guide_target(drx_ql_simulation_task_monolith_5)} true, false
guide_task = true

title = drx_ql_simulation_task_monolith_5_name
descr = drx_ql_simulation_task_monolith_5_text
descr_functor = drx_ql_guide_task_target
job_descr = drx_ql_simulation_task_monolith_5_about
message = drx_ql_simulation_task_monolith_5_message
task_complete_descr = drx_ql_simulation_task_monolith_5_finish

stage_complete = 1
target_functor = drx_ql_guide_task_target
status_functor = drx_ql_guide_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_5)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_5)} fail

on_job_descr = %=moon_cotz_show_stored_smart_target_location(drx_ql_simulation_task_monolith_5)%
on_init = %=drx_ql_give_stored_smart_target(drx_ql_simulation_task_monolith_5) =drx_ql_add_task_giver_companion(drx_ql_simulation_task_monolith_5) +drx_ql_guide_task_started%
on_complete = %=drx_ql_give_stored_reward(drx_ql_simulation_task_monolith_5) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_5) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_5) -drx_ql_guide_task_started =drx_ql_reset_task(drx_ql_simulation_task_monolith_5)%
on_fail = %=fail_task_dec_goodwill(50:monolith) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_5) -drx_ql_guide_task_started =drx_ql_fail_task(drx_ql_simulation_task_monolith_5) =drx_ql_reset_task(drx_ql_simulation_task_monolith_5)%
on_cancel = %=fail_task_dec_goodwill(50:monolith) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_5) -drx_ql_guide_task_started =drx_ql_fail_task(drx_ql_simulation_task_monolith_5) =drx_ql_reset_task(drx_ql_simulation_task_monolith_5)%

; -----------------------------------------------
; Find Lost PDA for Monolith Simulation Task-

[drx_ql_simulation_task_monolith_6]

icon = ui_inGame2_PD_Torgovets_informatsiey
storyline = false
prior = 39
repeat_timeout = 259200
weight = 1
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction() -drx_ql_quest_item_pda_task_started =drx_ql_find_unoccupied_smart_terrain(drx_ql_simulation_task_monolith_6)} true, false

title = drx_ql_simulation_task_monolith_6_name
descr = drx_ql_simulation_task_monolith_6_text
descr_functor = drx_ql_float_item_task_target
job_descr = drx_ql_simulation_task_monolith_6_about
task_complete_descr = drx_ql_simulation_task_monolith_6_finish

stage_complete = 1
target_functor = drx_ql_float_item_task_target
status_functor = drx_ql_float_item_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_6)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_6)} fail

on_job_descr = %=moon_cotz_show_stored_smart_target_location(drx_ql_simulation_task_monolith_6:nil:drx_ql_quest_item_pda)%
on_init = %=drx_ql_setup_float_task(drx_ql_simulation_task_monolith_6:drx_ql_quest_item_pda:50) +drx_ql_quest_item_pda_task_started%
on_complete = %=drx_ql_reward_random(2500:4000) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =remove_item(drx_ql_quest_item_pda) =inc_task_stage(drx_ql_simulation_task_monolith_6) -drx_ql_quest_item_pda_task_started =drx_ql_reset_task(drx_ql_simulation_task_monolith_6)%
on_fail = %=fail_task_dec_goodwill(50:monolith) =drx_ql_release_float_item(drx_ql_simulation_task_monolith_6) -drx_ql_quest_item_pda_task_started =drx_ql_fail_task(drx_ql_simulation_task_monolith_6) =drx_ql_reset_task(drx_ql_simulation_task_monolith_6)%
on_cancel = %=fail_task_dec_goodwill(50:monolith) =drx_ql_release_float_item(drx_ql_simulation_task_monolith_6) -drx_ql_quest_item_pda_task_started =drx_ql_fail_task(drx_ql_simulation_task_monolith_6) =drx_ql_reset_task(drx_ql_simulation_task_monolith_6)%



; ¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯
; ¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯
; ¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯¯`·.¸¸.·´¯`·.¸¸.·´¯



; //||\\||//||\\||//||\\||//||\\||//||\\
;
; Rhons' Quest Expansion
;
; //||\\||//||\\||//||\\||//||\\||//||\\

;------------------------------------------------
; Monolith Crusade Task-

[drx_ql_simulation_task_monolith_7]

icon = ui_inGame2_PD_Lider
storyline = false
prior = 85
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction() =drx_ql_find_occupied_smart_local(monolith:drx_ql_simulation_task_monolith_7)} true, false

title = drx_ql_simulation_task_monolith_7_name
descr = drx_ql_simulation_task_monolith_7_text
descr_functor = drx_ql_assault_task_target
job_descr = drx_ql_simulation_task_monolith_7_about
task_complete_descr = drx_ql_simulation_task_monolith_7_finish

stage_complete = 1
target_functor = drx_ql_assault_task_target
status_functor = drx_ql_assault_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_7)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_7)} fail

on_job_descr = %=moon_cotz_show_stored_smart_target_location(drx_ql_simulation_task_monolith_7)%

on_init = %=drx_ql_give_assault_target(drx_ql_simulation_task_monolith_7) =drx_ql_add_task_giver_companion(drx_ql_simulation_task_monolith_7)%

on_complete = %=drx_ql_reward_item(4000:7500) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_7) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_7) =drx_ql_reset_task(drx_ql_simulation_task_monolith_7)%

on_fail = %=fail_task_dec_goodwill(25:monolith) =drx_ql_fail_task(drx_ql_simulation_task_monolith_7) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_7) =drx_ql_reset_task(drx_ql_simulation_task_monolith_7)%

on_cancel = %=fail_task_dec_goodwill(25:monolith) =drx_ql_fail_task(drx_ql_simulation_task_monolith_7) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_7) =drx_ql_reset_task(drx_ql_simulation_task_monolith_7)%

;------------------------------------------------
; Monolith Weapon Summoning Simulation Task-

[drx_ql_simulation_task_monolith_8]

icon = ui_inGame2_Neizvestnoe_oruzhie
storyline = false
prior = 28
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction()} true, false

title = drx_ql_simulation_task_monolith_8_name
title_functor = drx_ql_fetch_task_target
descr = drx_ql_simulation_task_monolith_8_text
descr_functor = drx_ql_fetch_task_target
job_descr = drx_ql_simulation_task_monolith_8_about
fetch_descr = drx_ql_simulation_task_monolith_8_fetch_about
task_complete_descr = drx_ql_simulation_task_monolith_8_fetch_finish

stage_complete = 2
status_functor = drx_ql_fetch_task_status
target_functor = drx_ql_fetch_task_target
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_8)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_8)} fail
fetch_func = %=drx_ql_setup_fetch_task(drx_ql_simulation_task_monolith_8:1000:4500:1:1:0.5:items_rifles_list)%

on_job_descr = %=moon_cotz_show_fetch_task_info(drx_ql_simulation_task_monolith_8)%

on_init = %=drx_ql_add_havfetch_task(drx_ql_simulation_task_monolith_8)%

on_complete = %=drx_ql_fetch_reward_money(drx_ql_simulation_task_monolith_8:1.5) =drx_ql_reward_stash() =complete_task_inc_goodwill(25:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_8) =drx_ql_reset_task(drx_ql_simulation_task_monolith_8)%

on_fail = %=drx_ql_fail_task(drx_ql_simulation_task_monolith_8) =drx_ql_reset_task(drx_ql_simulation_task_monolith_8)%

on_cancel = %=drx_ql_fail_task(drx_ql_simulation_task_monolith_8) =drx_ql_reset_task(drx_ql_simulation_task_monolith_8)%

;------------------------------------------------
; Monolith Traitor Simulation Task-

[drx_ql_simulation_task_monolith_9]

icon = ui_inGame2_Odin_vistrel
storyline = false
prior = 45
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction() =drx_ql_find_assassination_target(monolith:drx_ql_simulation_task_monolith_9:monolith)} true, false

title = drx_ql_simulation_task_monolith_9_name
descr = drx_ql_simulation_task_monolith_9_text
descr_functor = drx_ql_assassination_task_target
job_descr = drx_ql_simulation_task_monolith_9_about
task_complete_descr = drx_ql_simulation_task_monolith_9_finish

stage_complete = 1
target_functor = drx_ql_assassination_task_target
status_functor = drx_ql_assassination_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_9)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_9)} fail
on_job_descr = %=drx_ql_show_assassination_target(drx_ql_simulation_task_monolith_9:true)%
on_init = %=drx_ql_give_assassination_target(drx_ql_simulation_task_monolith_9) =drx_ql_add_hidden_target(drx_ql_simulation_task_monolith_9)%

on_complete = %=drx_ql_reward_random(4500:7000) =drx_ql_reward_stash() =complete_task_inc_goodwill(25:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_9) =drx_ql_reset_task(drx_ql_simulation_task_monolith_9)%

on_fail = %=drx_ql_fail_task(drx_ql_simulation_task_monolith_9) =drx_ql_reset_task(drx_ql_simulation_task_monolith_9)%

on_cancel = %=drx_ql_fail_task(drx_ql_simulation_task_monolith_9) =drx_ql_reset_task(drx_ql_simulation_task_monolith_9)%

;------------------------------------------------
; Monolith Meat Ritual Simulation Task-

[drx_ql_simulation_task_monolith_10]

icon = ui_inGame2_Pripasi
storyline = false
prior = 30
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction()} true, false

title = drx_ql_simulation_task_monolith_10_name
title_functor = drx_ql_fetch_task_target
descr = drx_ql_simulation_task_monolith_10_text
descr_functor = drx_ql_fetch_task_target
job_descr = drx_ql_simulation_task_monolith_10_about
fetch_descr = drx_ql_simulation_task_monolith_10_fetch_about
task_complete_descr = drx_ql_simulation_task_monolith_10_fetch_finish

stage_complete = 2
target_functor = drx_ql_fetch_task_target
status_functor = drx_ql_fetch_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_10)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_10)} fail
fetch_func = %=drx_ql_setup_fetch_task(drx_ql_simulation_task_monolith_10:120:300:1:6:0:items_mutant_meat_list)%

on_job_descr = %=moon_cotz_show_fetch_task_info(drx_ql_simulation_task_monolith_10)%

on_complete = %=drx_ql_fetch_reward_random(drx_ql_simulation_task_monolith_10:7) =drx_ql_reward_stash() =complete_task_inc_goodwill(25:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_10) =drx_ql_reset_task(drx_ql_simulation_task_monolith_10)%

on_fail = %=drx_ql_fail_task(drx_ql_simulation_task_monolith_10) =drx_ql_reset_task(drx_ql_simulation_task_monolith_10)%

on_cancel = %=drx_ql_fail_task(drx_ql_simulation_task_monolith_10) =drx_ql_reset_task(drx_ql_simulation_task_monolith_10)%

;------------------------------------------------
; A Familiar Memory for Monolith Simulation Task-

[drx_ql_simulation_task_monolith_11]

icon = ui_inGame2_PD_Torgovets_informatsiey
storyline = false
prior = 29
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction() -drx_ql_quest_item_notebook_task_started} true, false

title = drx_ql_simulation_task_monolith_11_name
descr = drx_ql_simulation_task_monolith_11_text
descr_functor = drx_ql_quest_stash_task_target
job_descr = drx_ql_simulation_task_monolith_11_about
task_complete_descr = drx_ql_simulation_task_monolith_11_finish

stage_complete = 1
target_functor = drx_ql_quest_stash_task_target
target_functor_params = drx_ql_quest_item_notebook
status_functor = drx_ql_quest_stash_task_status
status_functor_params = drx_ql_quest_item_notebook
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_11)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_11)} fail

on_job_descr = %=drx_ql_create_quest_stash(drx_ql_quest_item_notebook:drx_ql_simulation_task_monolith_11)%

on_init = %=moon_cotz_reenable_quest_stash() +drx_ql_quest_item_notebook_task_started%

on_complete = %=drx_ql_reward_random(5500:8000) =drx_ql_reward_stash() =complete_task_inc_goodwill(25:monolith) =remove_item(drx_ql_quest_item_notebook) =inc_task_stage(drx_ql_simulation_task_monolith_11) -drx_ql_quest_item_notebook_task_started =pstor_reset(drx_ql_quest_item_notebook_stash_id) =drx_ql_reset_task(drx_ql_simulation_task_monolith_11)%

on_fail = %=drx_ql_remove_quest_stash(drx_ql_quest_item_notebook) -drx_ql_quest_item_notebook_task_started =pstor_reset(drx_ql_quest_item_notebook_stash_id) =drx_ql_fail_task(drx_ql_simulation_task_monolith_11) =drx_ql_reset_task(drx_ql_simulation_task_monolith_11)%

on_cancel = %=drx_ql_remove_quest_stash(drx_ql_quest_item_notebook) -drx_ql_quest_item_notebook_task_started =pstor_reset(drx_ql_quest_item_notebook_stash_id) =drx_ql_fail_task(drx_ql_simulation_task_monolith_11) =drx_ql_reset_task(drx_ql_simulation_task_monolith_11)%

;------------------------------------------------
; Monolith Dynamic Brawl Task

[drx_ql_simulation_task_monolith_12]

icon = ui_inGame2_Issledovanie_anomaliy
storyline = false
prior = 94
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(50) =drx_ql_actor_faction() =drx_ql_find_brawl_terrain(monolith:drx_ql_simulation_task_monolith_12)} true, false

title = drx_ql_simulation_task_monolith_12_name
descr = drx_ql_simulation_task_monolith_12_text
descr_1 = drx_ql_simulation_task_monolith_12_text_1
descr_functor = drx_ql_brawl_task_target
job_descr = drx_ql_simulation_task_monolith_12_about
message = drx_ql_simulation_task_monolith_12_message
goodbye = drx_ql_simulation_task_monolith_12_goodbye
task_complete_descr = drx_ql_simulation_task_monolith_12_finish

stage_complete = 3
target_functor = drx_ql_brawl_task_target
status_functor = drx_ql_brawl_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_12)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_12)} fail

on_job_descr = %=moon_cotz_show_brawl_task_info(drx_ql_simulation_task_monolith_12)%

on_init = %=drx_ql_setup_brawl_task(drx_ql_simulation_task_monolith_12:4:2) =drx_ql_add_task_giver_companion(drx_ql_simulation_task_monolith_12)%

on_complete = %=drx_ql_reward_random(5000:9000) =drx_ql_reward_stash() =complete_task_inc_goodwill(75:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_12) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_12) =drx_ql_end_brawl_task(drx_ql_simulation_task_monolith_12) =drx_ql_reset_task(drx_ql_simulation_task_monolith_12)%

on_fail = %=fail_task_dec_goodwill(25:monolith) =drx_ql_end_brawl_task(drx_ql_simulation_task_monolith_12) =drx_ql_fail_task(drx_ql_simulation_task_monolith_12) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_12) =drx_ql_reset_task(drx_ql_simulation_task_monolith_12)%

on_cancel = %=fail_task_dec_goodwill(25:monolith) =drx_ql_end_brawl_task(drx_ql_simulation_task_monolith_12) =drx_ql_fail_task(drx_ql_simulation_task_monolith_12) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_12) =drx_ql_reset_task(drx_ql_simulation_task_monolith_12)%

;------------------------------------------------
; Monolith Kill and Recover Task-

[drx_ql_simulation_task_monolith_13]

icon = ui_inGame2_Osobiy_zakaz
storyline = false
prior = 40
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction() -drx_ql_quest_item_case_task_started =drx_ql_is_enemy(stalker) =is_factions_enemies(monolith:stalker) !squad_exist(drx_ql_designated_target_squad_stalker) =drx_ql_find_unoccupied_smart_terrain(drx_ql_simulation_task_monolith_13)} true, false

title = drx_ql_simulation_task_monolith_13_name
descr = drx_ql_simulation_task_monolith_13_text
descr_functor = drx_ql_interceptor_task_target
job_descr = drx_ql_simulation_task_monolith_13_about
task_complete_descr = drx_ql_simulation_task_monolith_13_finish

stage_complete = 1
target_functor = drx_ql_interceptor_task_target
status_functor = drx_ql_interceptor_task_status
status_functor_params = drx_ql_quest_item_case
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_13)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_13)} fail

on_job_descr = %=moon_cotz_show_stored_smart_target_location(drx_ql_simulation_task_monolith_13:nil:drx_ql_quest_item_case)%

on_init = %=drx_ql_give_stored_smart_target(drx_ql_simulation_task_monolith_13) =drx_ql_create_interceptor_squad(drx_ql_simulation_task_monolith_13:drx_ql_designated_target_squad_stalker) +drx_ql_quest_item_case_task_started%

on_complete = %=drx_ql_reward_money(5000:6500) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =remove_item(drx_ql_quest_item_case) =drx_ql_remove_story_squad(drx_ql_designated_target_squad_stalker) =inc_task_stage(drx_ql_simulation_task_monolith_13) -drx_ql_quest_item_case_task_started =drx_ql_reset_task(drx_ql_simulation_task_monolith_13)%

on_fail = %=fail_task_dec_goodwill(25:monolith) =remove_item(drx_ql_quest_item_case) =drx_ql_remove_story_squad(drx_ql_designated_target_squad_stalker) -drx_ql_quest_item_case_task_started =drx_ql_fail_task(drx_ql_simulation_task_monolith_13) =drx_ql_reset_task(drx_ql_simulation_task_monolith_13)%

on_cancel = %=fail_task_dec_goodwill(25:monolith) =remove_item(drx_ql_quest_item_case) =drx_ql_remove_story_squad(drx_ql_designated_target_squad_stalker) -drx_ql_quest_item_case_task_started =drx_ql_fail_task(drx_ql_simulation_task_monolith_13) =drx_ql_reset_task(drx_ql_simulation_task_monolith_13)%

;------------------------------------------------
; Collect Mutant Tissue Sample for Monolith Simulation Task-

[drx_ql_simulation_task_monolith_14]

icon = ui_inGame2_Logovo_krovososov
storyline = false
prior = 35
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction()} true, false

title = drx_ql_simulation_task_monolith_14_name
title_functor = drx_ql_fetch_task_target
descr = drx_ql_simulation_task_monolith_14_text
descr_functor = drx_ql_fetch_task_target
job_descr = drx_ql_simulation_task_monolith_14_about
fetch_descr = drx_ql_simulation_task_monolith_14_fetch_about
task_complete_descr = drx_ql_simulation_task_monolith_14_finish

stage_complete = 2
target_functor = drx_ql_fetch_task_target
status_functor = drx_ql_fetch_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_14)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_14)} fail
fetch_func = %=drx_ql_setup_fetch_task(drx_ql_simulation_task_monolith_14:500:1250:1:1:0:items_mutant_parts_list)%

on_job_descr = %=moon_cotz_show_fetch_task_info(drx_ql_simulation_task_monolith_14)%

on_complete = %=drx_ql_fetch_reward_money(drx_ql_simulation_task_monolith_14:1.2) =drx_ql_reward_stash() =complete_task_inc_goodwill(25:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_14) =drx_ql_reset_task(drx_ql_simulation_task_monolith_14)%

on_fail = %=drx_ql_fail_task(drx_ql_simulation_task_monolith_14) =drx_ql_reset_task(drx_ql_simulation_task_monolith_14)%

on_cancel = %=drx_ql_fail_task(drx_ql_simulation_task_monolith_14) =drx_ql_reset_task(drx_ql_simulation_task_monolith_14)%

;------------------------------------------------
; Rifle for an Artefact for Monolith Simulation Task-

[drx_ql_simulation_task_monolith_15]

icon = ui_inGame2_Kontrakt_s_uchenimi
storyline = false
prior = 20
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction()} true, false

title = drx_ql_simulation_task_monolith_15_name
title_functor = drx_ql_fetch_task_target
descr = drx_ql_simulation_task_monolith_15_text
descr_functor = drx_ql_fetch_task_target
job_descr = drx_ql_simulation_task_monolith_15_about
fetch_descr = drx_ql_simulation_task_monolith_15_fetch_about
task_complete_descr = drx_ql_simulation_task_monolith_15_finish

stage_complete = 2
target_functor = drx_ql_fetch_task_target
status_functor = drx_ql_fetch_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_15)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_15)} fail
fetch_func = %=drx_ql_setup_fetch_task(drx_ql_simulation_task_monolith_15:2500:10000:1:1:0:items_artefacts_list)%

on_job_descr = %=moon_cotz_show_fetch_task_info(drx_ql_simulation_task_monolith_15)%

on_init = %=drx_ql_add_havfetch_task(drx_ql_simulation_task_monolith_15)%

on_complete = %=drx_ql_fetch_reward_item(drx_ql_simulation_task_monolith_15:1:items_rifles_list) =drx_ql_reward_stash() =complete_task_inc_goodwill(25:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_15) =drx_ql_reset_task(drx_ql_simulation_task_monolith_15)%

on_fail = %=drx_ql_fail_task(drx_ql_simulation_task_monolith_15) =drx_ql_reset_task(drx_ql_simulation_task_monolith_15)%

on_cancel = %=drx_ql_fail_task(drx_ql_simulation_task_monolith_15) =drx_ql_reset_task(drx_ql_simulation_task_monolith_15)%

;------------------------------------------------
; Zombied Bounty for Monolith Simulation Task-

[drx_ql_simulation_task_monolith_16]

icon = ui_inGame2_Odin_vistrel
storyline = false
prior = 45
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction() =drx_ql_find_assassination_target(monolith:drx_ql_simulation_task_monolith_16:zombied)} true, false

title = drx_ql_simulation_task_monolith_16_name
descr = drx_ql_simulation_task_monolith_16_text
descr_functor = drx_ql_assassination_task_target
job_descr = drx_ql_simulation_task_monolith_16_about
task_complete_descr = drx_ql_simulation_task_monolith_16_finish

stage_complete = 1
target_functor = drx_ql_assassination_task_target
status_functor = drx_ql_assassination_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_16)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_16)} fail
on_job_descr = %=drx_ql_show_assassination_target(drx_ql_simulation_task_monolith_16:false)%
on_init = %=drx_ql_give_assassination_target(drx_ql_simulation_task_monolith_16)%

on_complete = %=drx_ql_reward_random(2500:3500) =drx_ql_reward_stash() =complete_task_inc_goodwill(25:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_16) =drx_ql_reset_task(drx_ql_simulation_task_monolith_16)%

on_fail = %=drx_ql_fail_task(drx_ql_simulation_task_monolith_16) =drx_ql_reset_task(drx_ql_simulation_task_monolith_16)%

on_cancel = %=drx_ql_fail_task(drx_ql_simulation_task_monolith_16) =drx_ql_reset_task(drx_ql_simulation_task_monolith_16)%

;------------------------------------------------
; Monolith Stash Transfer Simulation Task-

[drx_ql_simulation_task_monolith_17]

icon = ui_inGame2_PD_Torgovets_informatsiey
storyline = false
prior = 29
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction() -drx_ql_quest_item_pda_task_started} true, false

title = drx_ql_simulation_task_monolith_17_name
descr = drx_ql_simulation_task_monolith_17_text
descr_functor = drx_ql_quest_stash_task_target
job_descr = drx_ql_simulation_task_monolith_17_about
task_complete_descr = drx_ql_simulation_task_monolith_17_finish

stage_complete = 1
target_functor = drx_ql_quest_stash_task_target
target_functor_params = drx_ql_quest_item_pda
status_functor = drx_ql_quest_stash_task_status
status_functor_params = drx_ql_quest_item_pda
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_17)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_17)} fail

on_job_descr = %=drx_ql_create_quest_stash(drx_ql_quest_item_pda:drx_ql_simulation_task_monolith_17)%

on_init = %=moon_cotz_reenable_quest_stash() +drx_ql_quest_item_pda_task_started =give_actor(drx_ql_quest_item_stash_case) =drx_ql_add_task_giver_companion(drx_ql_simulation_task_monolith_17)%

on_complete = %=drx_ql_reward_random(9500:14000) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_17) =remove_item(drx_ql_quest_item_pda) =remove_item(drx_ql_quest_item_stash_case) =inc_task_stage(drx_ql_simulation_task_monolith_17) -drx_ql_quest_item_pda_task_started =pstor_reset(drx_ql_quest_item_pda_stash_id) =drx_ql_reset_task(drx_ql_simulation_task_monolith_17)%

on_fail = %=drx_ql_remove_quest_stash(drx_ql_quest_item_pda) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_17) =remove_item(drx_ql_quest_item_stash_case) -drx_ql_quest_item_pda_task_started =pstor_reset(drx_ql_quest_item_pda_stash_id) =drx_ql_fail_task(drx_ql_simulation_task_monolith_17) =drx_ql_reset_task(drx_ql_simulation_task_monolith_17)%

on_cancel = %=drx_ql_remove_quest_stash(drx_ql_quest_item_pda) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_17) =remove_item(drx_ql_quest_item_stash_case) -drx_ql_quest_item_pda_task_started =pstor_reset(drx_ql_quest_item_pda_stash_id) =drx_ql_fail_task(drx_ql_simulation_task_monolith_17) =drx_ql_reset_task(drx_ql_simulation_task_monolith_17)%

;------------------------------------------------
; Capture for Monolith Task-

[drx_ql_simulation_task_monolith_18]

icon = ui_inGame2_Vizhivshiy_monolit
storyline = false
prior = 60
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(75) =drx_ql_actor_faction() =drx_ql_is_enemy(stalker:csky:dolg:freedom:killer) =is_factions_enemies(monolith:stalker:csky:dolg:freedom:killer) =drx_ql_find_assassination_target(monolith:drx_ql_simulation_task_monolith_18:stalker:csky:dolg:freedom:killer)} true, false
prisoner_task = true

title = drx_ql_simulation_task_monolith_18_name
descr = drx_ql_simulation_task_monolith_18_text
descr_functor = drx_ql_prisoner_task_target
job_descr = drx_ql_simulation_task_monolith_18_about
task_complete_descr = drx_ql_simulation_task_monolith_18_finish

stage_complete = 2
target_functor = drx_ql_prisoner_task_target
status_functor = drx_ql_prisoner_task_status
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_18)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_18)} fail
on_job_descr = %=drx_ql_show_assassination_target(drx_ql_simulation_task_monolith_18:false)%
on_init = %=drx_ql_give_prisoner_target(drx_ql_simulation_task_monolith_18)%

on_complete = %=drx_ql_reward_random(9500:14000) =drx_ql_reward_stash() =complete_task_inc_goodwill(50:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_18) =drx_ql_reset_prisoner_task(drx_ql_simulation_task_monolith_18) =drx_ql_remove_prisoner(drx_ql_simulation_task_monolith_18) =drx_ql_reset_task(drx_ql_simulation_task_monolith_18)%

on_fail = %=drx_ql_fail_task(drx_ql_simulation_task_monolith_18) =drx_ql_reset_prisoner_task(drx_ql_simulation_task_monolith_18) =drx_ql_reset_task(drx_ql_simulation_task_monolith_18)%

on_cancel = %=drx_ql_fail_task(drx_ql_simulation_task_monolith_18) =drx_ql_reset_prisoner_task(drx_ql_simulation_task_monolith_18) =drx_ql_reset_task(drx_ql_simulation_task_monolith_18)%

;------------------------------------------------
; Monolith Dynamic Ambush Task-

[drx_ql_simulation_task_monolith_19]

icon = ui_inGame2_Issledovanie_anomaliy
storyline = false
prior = 64
weight = 1
repeat_timeout = 259200
precondition = {=drx_ql_random_chance(50) =drx_ql_actor_faction() =drx_ql_is_enemy(stalker:csky:dolg:freedom:killer) =drx_ql_find_brawl_terrain_ambush(monolith:drx_ql_simulation_task_monolith_19:stalker:csky:dolg:freedom:killer)} true, false

title = drx_ql_simulation_task_monolith_19_name
descr = drx_ql_simulation_task_monolith_19_text
descr_1 = drx_ql_simulation_task_monolith_19_text_1
descr_functor = drx_ql_brawl_task_target_ambush
job_descr = drx_ql_simulation_task_monolith_19_about
message = drx_ql_simulation_task_monolith_19_message
task_complete_descr = drx_ql_simulation_task_monolith_19_finish

stage_complete = 2
target_functor = drx_ql_brawl_task_target_ambush
status_functor = drx_ql_brawl_task_status_ambush
condlist_0 = {!drx_ql_task_giver_alive(drx_ql_simulation_task_monolith_19)} fail
condlist_1 = {=drx_ql_is_enemy(monolith)} fail
condlist_2 = {=drx_ql_wg_fail(drx_ql_simulation_task_monolith_19)} fail

on_job_descr = %=moon_cotz_show_brawl_task_info(drx_ql_simulation_task_monolith_19)%

on_init = %=drx_ql_setup_brawl_task_ambush(drx_ql_simulation_task_monolith_19:4:4) =drx_ql_add_task_giver_companion(drx_ql_simulation_task_monolith_19) =reward_random_item(wpn_rpg7) =drx_ql_give_escort_task_companions(drx_ql_raid_companion_squad_monolith_2)%

on_complete = %=drx_ql_reward_random(14500:24000) =drx_ql_reward_stash() =reward_random_item(drug_anabiotic) =reward_random_item(medkit_army) =reward_random_item(medkit_scientic) =reward_random_item(antirad) =reward_random_item(drug_booster) =reward_random_item(drug_booster) =complete_task_inc_goodwill(100:monolith) =inc_task_stage(drx_ql_simulation_task_monolith_19) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_19) =drx_ql_remove_story_squad(drx_ql_raid_companion_squad_monolith_2) =drx_ql_end_brawl_task_ambush(drx_ql_simulation_task_monolith_19) =drx_ql_reset_task(drx_ql_simulation_task_monolith_19)%

on_fail = %=fail_task_dec_goodwill(25:monolith) =drx_ql_end_brawl_task_ambush(drx_ql_simulation_task_monolith_19) =drx_ql_fail_task(drx_ql_simulation_task_monolith_19) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_19) =drx_ql_remove_story_squad(drx_ql_raid_companion_squad_monolith_2) =drx_ql_reset_task(drx_ql_simulation_task_monolith_19)%

on_cancel = %=fail_task_dec_goodwill(75:monolith) =drx_ql_end_brawl_task_ambush(drx_ql_simulation_task_monolith_19) =drx_ql_fail_task(drx_ql_simulation_task_monolith_19) =drx_ql_remove_task_giver_companion(drx_ql_simulation_task_monolith_19) =drx_ql_remove_story_squad(drx_ql_raid_companion_squad_monolith_2) =drx_ql_reset_task(drx_ql_simulation_task_monolith_19)%


; \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
