From 9093bb9aa98f6cfbdf78d37b03d4db3a794df6de Mon Sep 17 00:00:00 2001 From: MarcoDandolo <131713273+MarcoDandolo@users.noreply.github.com> Date: Mon, 4 Sep 2023 22:04:34 +0200 Subject: [PATCH] Objectives for "Thriving Culture" --- .../mr_categories.txt | 12 + common/objective_subgoals/_subgoals.info | 17 ++ ..._subgoals_objectives_thriving_cultures.txt | 205 ++++++++++++++++++ common/objectives/mr_objectives.txt | 42 ++-- 4 files changed, 259 insertions(+), 17 deletions(-) create mode 100644 common/objective_subgoal_categories/mr_categories.txt create mode 100644 common/objective_subgoals/_subgoals.info create mode 100644 common/objective_subgoals/mr_subgoals_objectives_thriving_cultures.txt diff --git a/common/objective_subgoal_categories/mr_categories.txt b/common/objective_subgoal_categories/mr_categories.txt new file mode 100644 index 0000000000..84615711d7 --- /dev/null +++ b/common/objective_subgoal_categories/mr_categories.txt @@ -0,0 +1,12 @@ +######################### +# MORGENRÖTE OBJECTIVES # +######################### + +#by Marco Dandolo + +######################### + +sgcat_thriving_culture = { + is_exclusive = no + is_repeatable = no +} \ No newline at end of file diff --git a/common/objective_subgoals/_subgoals.info b/common/objective_subgoals/_subgoals.info new file mode 100644 index 0000000000..c46bc05e7e --- /dev/null +++ b/common/objective_subgoals/_subgoals.info @@ -0,0 +1,17 @@ +sg_key = { + category = key # The subgoal category of this subgoal + + # The four entries below check against already completed subgoals - they must all be passed for subgoal to have a chance to trigger (empty = automatic pass) + unlocking_subgoals_all = {} # all of these other subgoals must be completed (or failed/timed-out and non-repeatable) for subgoal to be able to trigger + unlocking_subgoals_any = {} # one of these other subgoals must be completed (or failed/timed-out and non-repeatable) for subgoal to be able to trigger + blocking_subgoals_none_of = {} # none of these other subgoals must be completed (or failed/timed-out and non-repeatable) for subgoal to be able to trigger + blocking_subgoals_not_all = {} # at least one of these other subgoals must NOT be completed (or failed/timed-out and non-repeatable) for subgoal to be able to trigger + + trigger = {} # scripted trigger evaluation for whether this subgoal is able to trigger + + chance = { value = X } # scripted value for the daily chance to trigger this subgoal ( unset = 1 = 100% ) + + on_start = {} # effect executed when this subgoal is triggered + + is_repeatable = yes/no # Whether this subgoal can be repeated after being completed (overrides the default set in subgoal category), if no then failure is treated as unlocking/blocking for other goals +} diff --git a/common/objective_subgoals/mr_subgoals_objectives_thriving_cultures.txt b/common/objective_subgoals/mr_subgoals_objectives_thriving_cultures.txt new file mode 100644 index 0000000000..3ef6c4ae86 --- /dev/null +++ b/common/objective_subgoals/mr_subgoals_objectives_thriving_cultures.txt @@ -0,0 +1,205 @@ + +######BASIC OBJECTIVES###### + +sg_promote_an_academic = { + category = sgcat_thriving_culture + + trigger = { + any_scope_building = { + is_building_type = building_university + } + } + + on_start = { + add_journal_entry = { + type = je_objective_promote_an_academic + objective_subgoal = sg_promote_an_academic + } + } +} + +sg_a_great_step_forward = { + category = sgcat_thriving_culture + + trigger = { + any_scope_building = { + is_building_type = building_university + } + } + + on_start = { + add_journal_entry = { + type = je_objective_a_great_step_forward + objective_subgoal = sg_a_great_step_forward + } + } +} + +sg_major_discovery = { + category = sgcat_thriving_culture + + trigger = { + any_scope_building = { + is_building_type = building_university + } + } + + on_start = { + add_journal_entry = { + type = je_objective_major_discovery + objective_subgoal = sg_major_discovery + } + } +} + +######SECOND OBJECTIVES###### + +sg_go_on_scientifical_expedition = { + category = sgcat_thriving_culture + is_repeatable = no + + unlocking_subgoals_all = { + sg_promote_an_academic + } + + trigger = { + } + + on_start = { + add_journal_entry = { + type = je_objective_go_on_scientifical_expedition + objective_subgoal = sg_go_on_scientifical_expedition + } + } +} + +sg_dawn_of_a_new_era = { + category = sgcat_thriving_culture + is_repeatable = no + + unlocking_subgoals_all = { + sg_go_on_scientifical_expedition + } + + trigger = { + } + + on_start = { + add_journal_entry = { + type = je_objective_dawn_of_a_new_era + objective_subgoal = sg_dawn_of_a_new_era + } + } +} + +sg_more_than_politics = { + category = sgcat_thriving_culture + is_repeatable = no + + unlocking_subgoals_all = { + sg_go_on_scientifical_expedition + } + + trigger = { + } + + on_start = { + add_journal_entry = { + type = je_objective_more_than_politics + objective_subgoal = sg_more_than_politics + } + } +} + +sg_assemble_dinosaur_skeleton = { + category = sgcat_thriving_culture + is_repeatable = no + + unlocking_subgoals_all = { + sg_go_on_scientifical_expedition + } + + trigger = { + } + + on_start = { + add_journal_entry = { + type = je_objective_assemble_dinosaur_skeleton + objective_subgoal = sg_assemble_dinosaur_skeleton + } + } +} + +######LATE OBJECTIVES###### + +sg_relevant_culture = { + category = sgcat_thriving_culture + is_repeatable = no + + unlocking_subgoals_all = { + sg_more_than_politics + sg_dawn_of_a_new_era + } + + unlocking_subgoals_any = { + sg_a_great_step_forward + sg_major_discovery + } + + trigger = { + } + + on_start = { + add_journal_entry = { + type = je_objective_relevant_culture + objective_subgoal = sg_relevant_culture + } + } +} + +sg_cradle_of_culture = { + category = sgcat_thriving_culture + is_repeatable = no + + unlocking_subgoals_all = { + sg_more_than_politics + sg_dawn_of_a_new_era + } + + unlocking_subgoals_any = { + sg_a_great_step_forward + sg_major_discovery + } + + trigger = { + } + + on_start = { + add_journal_entry = { + type = je_objective_cradle_of_culture + objective_subgoal = sg_cradle_of_culture + } + } +} + +######FINAL OBJECTIVES###### + +sg_thriving_culture = { + category = sgcat_thriving_culture + is_repeatable = no + + unlocking_subgoals_all = { + sg_relevant_culture + sg_cradle_of_culture + } + + trigger = { + } + + on_start = { + add_journal_entry = { + type = je_objective_thriving_culture + objective_subgoal = sg_thriving_culture + } + } +} \ No newline at end of file diff --git a/common/objectives/mr_objectives.txt b/common/objectives/mr_objectives.txt index a75203d839..295414d221 100644 --- a/common/objectives/mr_objectives.txt +++ b/common/objectives/mr_objectives.txt @@ -1,28 +1,36 @@ -objective_morgenroete = { - background = "gfx/interface/icons/objectives/morgenroete_illu.dds" - icon = "gfx/interface/icons/objectives/morgenroete_icon.dds" +######################### +# MORGENRÖTE OBJECTIVES # +######################### + +#by Marco Dandolo + +######################### + +objective_thriving_culture = { + background = "gfx/interface/icons/objectives/thriving_culture_illu.dds" + icon = "gfx/interface/icons/objectives/thriving_culture_icon.dds" recommended_tags = { AUS BEL SAR SWI } objective_subgoals = { - #sg_expand_goods_production #rework + sg_promote_an_academic #have a character with an academic trait + sg_a_great_step_forward #Be the first nation to discover Theory of Evolution, Early Archaeology, Steel-framed buildings or Modern Astronomy + sg_major_discovery #Discover a major artifact, discover a new planet or discover Challenger Deep - #sg_refining_goods #rework, make X number in single, state loc for status - #sg_specialized_goods #rework, make X number in single state, state loc for status - #sg_expanding_the_market #rework, add subjects and customs union + sg_go_on_scientifical_expedition #do an archaeological, paleontological, botanical or pacific expedition + sg_dawn_of_a_new_era #Gather Specimen, Fossils, Astronomical Objects, Artifacts or Musical Tradition + sg_more_than_politics #build an observatory and an opera house; build museum or zoo + sg_assemble_dinosaur_skeleton #Paleontology, Paleontologist, Dinosaur Skeleton - #sg_specialized_inputs #missing: LOC - #sg_exporting_profits #missing: LOC - #sg_utilizing_our_strength #missing: LOC - #sg_raise_exports_value #missing: LOC - #sg_lower_production_costs #missing: LOC + sg_relevant_culture #Large Zoo, Large Collection, Astronomical Congress or regionally important music culture + sg_cradle_of_culture #Gain cradle of Impressionism, Expressionism or Art Nouveau - #sg_strong_market #Keep + sg_thriving_culture #End challenge } - #final_subgoal = sg_strong_market + final_subgoal = sg_thriving_culture - #on_start = { - # start_tutorial_lesson = { tutorial_lesson = economic_dominance } - #} + on_start = { + start_tutorial_lesson = { tutorial_lesson = thriving_culture } + } } \ No newline at end of file