diff --git a/common/on_action/game_start.txt b/common/on_action/game_start.txt index 01264568..6effdd63 100644 --- a/common/on_action/game_start.txt +++ b/common/on_action/game_start.txt @@ -97,6 +97,9 @@ on_game_start = { add_confederation_member = title:d_northumberland.holder } } + title:d_volgograd.holder = { + trigger_event = { id = NEOW_dynamic_titles.1000 } + } #title:k_ireland.holder = { # create_confederation = { # name = sinn_fein diff --git a/common/on_action/religion_on_actions.txt b/common/on_action/religion_on_actions.txt index 91f5e86a..610231aa 100644 --- a/common/on_action/religion_on_actions.txt +++ b/common/on_action/religion_on_actions.txt @@ -316,7 +316,17 @@ on_faith_conversion = { effect = { ################ N3OW Dynamic Titles ################## - + if = { + limit = { + OR = { + has_title = title:k_kuban + has_title = title:d_volgorad + has_title = title:c_volgograd + has_title = title:b_volgograd + } + } + trigger_event = NEOW_dynamic_titles.1000 + } if = { limit = { has_title = title:e_france diff --git a/common/on_action/title_on_actions.txt b/common/on_action/title_on_actions.txt index bd025b41..5f903d59 100644 --- a/common/on_action/title_on_actions.txt +++ b/common/on_action/title_on_actions.txt @@ -168,6 +168,18 @@ on_title_destroyed = { on_title_gain = { effect = { + if = { + limit = { + OR = { + scope:title = title:k_kuban + scope:title = title:d_volgorad + scope:title = title:c_volgograd + scope:title = title:b_volgograd + } + } + trigger_event = NEOW_dynamic_titles.1000 + } + ################ N3OW Dynamic Titles ################## if = { @@ -2849,7 +2861,17 @@ on_title_gain_inheritance = { effect = { ################ N3OW Dynamic Titles ################## - + if = { + limit = { + OR = { + has_title = title:k_kuban + has_title = title:d_volgorad + has_title = title:c_volgograd + has_title = title:b_volgograd + } + } + trigger_event = NEOW_dynamic_titles.1000 + } if = { limit = { has_title = title:e_france @@ -3032,7 +3054,17 @@ on_title_gain_usurpation = { effect = { ################ N3OW Dynamic Titles ################## - + if = { + limit = { + OR = { + scope:title = title:k_kuban + scope:title = title:d_volgorad + scope:title = title:c_volgograd + scope:title = title:b_volgograd + } + } + trigger_event = NEOW_dynamic_titles.1000 + } if = { limit = { has_title = title:e_france diff --git a/events/NEOW_dynamic_titles_events.txt b/events/NEOW_dynamic_titles_events.txt index 28f0650c..faf45b4e 100644 --- a/events/NEOW_dynamic_titles_events.txt +++ b/events/NEOW_dynamic_titles_events.txt @@ -163,4 +163,91 @@ NEOW_dynamic_titles.0015 = { # Gallia # set_title_name_dynamic = capital_union_key # } # } -#} \ No newline at end of file +#} + +NEOW_dynamic_titles.1000 = { # Gallia + hidden = yes + + immediate = { + if = { + limit = { + has_title = title:k_kuban + } + if = { + limit = { + faith = faith:stalinist + } + title:k_kuban = { + set_title_name = cn_stalingrad + set_title_color = { 230 20 50 } + } + } + else = { + title:k_kuban = { + set_title_name = k_kuban + set_title_color = { 111 45 80 } + } + } + } + if = { + limit = { + has_title = title:d_volgograd + } + if = { + limit = { + faith = faith:stalinist + } + title:d_volgograd = { + set_title_name = cn_stalingrad + set_title_color = { 230 20 50 } + } + } + else = { + title:d_volgograd = { + set_title_name = d_volgograd + set_title_color = { 143 92 21 } + } + } + } + if = { + limit = { + has_title = title:c_volgograd + } + if = { + limit = { + faith = faith:stalinist + } + title:c_volgograd = { + set_title_name = cn_stalingrad + set_title_color = { 230 20 50 } + } + } + else = { + title:c_volgograd = { + set_title_name = c_volgograd + set_title_color = { 91 95 25 } + } + } + } + if = { + limit = { + has_title = title:b_volgograd + } + if = { + limit = { + faith = faith:stalinist + } + title:b_volgograd = { + set_title_name = cn_stalingrad + set_title_color = { 91 95 25 } + } + } + else = { + title:b_volgograd = { + set_title_name = b_volgograd + set_title_color = { 91 95 25 } + } + } + } + } +} \ No newline at end of file diff --git a/localization/english/replace/titles_cultural_names_l_english.yml b/localization/english/replace/titles_cultural_names_l_english.yml index 399b9068..e8354ab6 100644 --- a/localization/english/replace/titles_cultural_names_l_english.yml +++ b/localization/english/replace/titles_cultural_names_l_english.yml @@ -7042,4 +7042,7 @@ cn_zilah:0 "Zilah" cn_schomlenmarkt:0 "Schomlenmarkt" cn_szilagysomlyo:0 "Szilágysomlyó" + + cn_stalingrad:0 "Stalingrad" + cn_stalingrad_adj: "Stalingrader" \ No newline at end of file