From 77a6987aff2997f98d09dd7c751f1c517f5c48d9 Mon Sep 17 00:00:00 2001 From: trashmasteruni Date: Tue, 28 Apr 2026 11:48:34 +0200 Subject: [PATCH] cosmetic titles pt II --- common/on_action/religion_on_actions.txt | 24 ++++- common/on_action/title_on_actions.txt | 97 +++++++++++++++++++ events/NEOW_dynamic_titles_events.txt | 33 +++++++ .../NEOW_cosmetic_titles_l_english.yml | 5 + 4 files changed, 155 insertions(+), 4 deletions(-) create mode 100644 localization/english/replace/NEOW_cosmetic_titles_l_english.yml diff --git a/common/on_action/religion_on_actions.txt b/common/on_action/religion_on_actions.txt index bf006cc4..2ceade6b 100644 --- a/common/on_action/religion_on_actions.txt +++ b/common/on_action/religion_on_actions.txt @@ -322,11 +322,27 @@ on_faith_conversion = { has_title = title:e_france faith = faith:carolingian } - title:e_france = { - set_title_name_dynamic = Carolingia - set_title_color = { 255 216 0 } + trigger_event = NEOW_dynamic_titles.0013 + } + + if = { + limit = { + has_title = title:e_france + faith = faith:romanticist + } + trigger_event = NEOW_dynamic_titles.0015 + } + + if = { + limit = { + has_title = title:e_france + NOR = { + faith = faith:carolingian + faith = faith:romanticist + } + } + trigger_event = NEOW_dynamic_titles.0014 } - } ###################################################### diff --git a/common/on_action/title_on_actions.txt b/common/on_action/title_on_actions.txt index a19cc445..c8c509b0 100644 --- a/common/on_action/title_on_actions.txt +++ b/common/on_action/title_on_actions.txt @@ -167,6 +167,39 @@ on_title_destroyed = { # scope:previous_holder = previous holder. Might be dead on_title_gain = { effect = { + + ################ N3OW Dynamic Titles ################## + + if = { + limit = { + has_title = title:e_france + faith = faith:carolingian + } + trigger_event = NEOW_dynamic_titles.0013 + } + + if = { + limit = { + has_title = title:e_france + faith = faith:romanticist + } + trigger_event = NEOW_dynamic_titles.0015 + } + + if = { + limit = { + has_title = title:e_france + NOR = { + faith = faith:carolingian + faith = faith:romanticist + } + } + trigger_event = NEOW_dynamic_titles.0014 + } + + ###################################################### + + ###################### # COUNTY-TIER TITLES # ###################### @@ -2826,6 +2859,38 @@ on_title_gain_inheritance = { diarchy.0113 } effect = { + + ################ N3OW Dynamic Titles ################## + + if = { + limit = { + has_title = title:e_france + faith = faith:carolingian + } + trigger_event = NEOW_dynamic_titles.0013 + } + + if = { + limit = { + has_title = title:e_france + faith = faith:romanticist + } + trigger_event = NEOW_dynamic_titles.0015 + } + + if = { + limit = { + has_title = title:e_france + NOR = { + faith = faith:carolingian + faith = faith:romanticist + } + } + trigger_event = NEOW_dynamic_titles.0014 + } + + ###################################################### + if = { limit = { OR = { @@ -2983,6 +3048,38 @@ on_title_gain_usurpation = { events = { } effect = { + + ################ N3OW Dynamic Titles ################## + + if = { + limit = { + has_title = title:e_france + faith = faith:carolingian + } + trigger_event = NEOW_dynamic_titles.0013 + } + + if = { + limit = { + has_title = title:e_france + faith = faith:romanticist + } + trigger_event = NEOW_dynamic_titles.0015 + } + + if = { + limit = { + has_title = title:e_france + NOR = { + faith = faith:carolingian + faith = faith:romanticist + } + } + trigger_event = NEOW_dynamic_titles.0014 + } + + ###################################################### + if = { limit = { OR = { diff --git a/events/NEOW_dynamic_titles_events.txt b/events/NEOW_dynamic_titles_events.txt index ad78e65d..28f0650c 100644 --- a/events/NEOW_dynamic_titles_events.txt +++ b/events/NEOW_dynamic_titles_events.txt @@ -121,6 +121,39 @@ NEOW_dynamic_titles.0012 = { } } +NEOW_dynamic_titles.0013 = { #Carolingia + hidden = yes + + immediate = { + title:e_france = { + set_title_name = e_carolingia_cosmetic + set_title_color = { 255 216 0 } + } + } +} + +NEOW_dynamic_titles.0014 = { # Default France + hidden = yes + + immediate = { + title:e_france = { + set_title_name = e_france + set_title_color = { 20 17 114 } + } + } +} + +NEOW_dynamic_titles.0015 = { # Gallia + hidden = yes + + immediate = { + title:e_france = { + set_title_name_dynamic = e_gallia_cosmetic + set_title_color = { 8 165 126 } + } + } +} + #Holder for various dynamic titles in the future, this is for " Union"s #NEOW_dynamic_titles.0013 = { # hidden = yes diff --git a/localization/english/replace/NEOW_cosmetic_titles_l_english.yml b/localization/english/replace/NEOW_cosmetic_titles_l_english.yml new file mode 100644 index 00000000..f6818037 --- /dev/null +++ b/localization/english/replace/NEOW_cosmetic_titles_l_english.yml @@ -0,0 +1,5 @@ +e_carolingia_cosmetic:0 "Carolingia" +e_carolingia_cosmetic_adj:0 "Carolingian" + +e_gallia_cosmetic:0 "Gallia" +e_gallia_cosmetic_adj:0 "Gallian" \ No newline at end of file