From ecdf44740a7ed9e45687d744ee3d1a2d0e8dae90 Mon Sep 17 00:00:00 2001 From: Arthur Kozhevnik Date: Mon, 17 Apr 2023 10:53:59 -0400 Subject: [PATCH 01/10] Created decisions to form bloodsail kingdom --- .../decisions/wc_major_pirate_decisions.txt | 78 +++++++++++++++++++ .../english/wc_decisions_l_english.yml | 7 ++ 2 files changed, 85 insertions(+) create mode 100644 common/decisions/wc_major_pirate_decisions.txt create mode 100644 localization/english/wc_decisions_l_english.yml diff --git a/common/decisions/wc_major_pirate_decisions.txt b/common/decisions/wc_major_pirate_decisions.txt new file mode 100644 index 0000000000..e481ff8ece --- /dev/null +++ b/common/decisions/wc_major_pirate_decisions.txt @@ -0,0 +1,78 @@ +#Restoring the Legit Roman Empire +create_bloodsail_kingdom_decision = { + picture = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" + + desc = create_bloodsail_kingdom_decision_desc + selection_tooltip = create_bloodsail_kingdom_decision_tooltip + major = yes + + ai_check_interval = 120 + + is_shown = { + is_ruler = yes + is_landed = yes + has_title = title:c_daer_tiras + culture = culture:pirate_culture + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_bloodsail_kingdom_created + } + } + OR = { + has_government = feudal_government + has_government = republic_government + has_government = clan_government + } + } + + is_valid = { + + custom_description = { + text = create_bloodsail_kingdom_decision_tt + culture = culture:pirate_culture + } + + completely_controls = title:c_gillijim + completely_controls = title:d_jinkalak + completely_controls = title:c_lapidis_island + completely_controls = title:d_plunder_isle + completely_controls = title:c_uncharted_island + completely_controls = title:d_whispering_reef + } + + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + is_independent_ruler = yes + } + + effect = { + custom_tooltip = create_bloodsail_kingdom_decision_effect_tooltip + show_as_tooltip = { + create_roman_empire_scripted_effect = yes + } + trigger_event = { + #id = roman_restoration.0001 + #Event should give player Kindogm Title for all Plunder Islands under Bloodsail title + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_bloodsail_kingdom_created + } + set_global_variable = { + name = flag_bloodsail_kingdom_created + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} \ No newline at end of file diff --git a/localization/english/wc_decisions_l_english.yml b/localization/english/wc_decisions_l_english.yml new file mode 100644 index 0000000000..f9496db866 --- /dev/null +++ b/localization/english/wc_decisions_l_english.yml @@ -0,0 +1,7 @@ +l_english: + create_bloodsail_kingdom_decision:1 "Form the Bloodsail Kingdom" + create_bloodsail_kingdom_decision_confirm:0 "I will unite the Buccanears" + create_bloodsail_kingdom_decision_tooltip:0 "The Bloodsail Buccanears will be united under one flag" + create_bloodsail_kingdom_decision_desc:0 "Our pirate lords have on the [d_plunder_isle|E], [d_jinkalak|E], and the surrounding islands have come together to finally create a new, unified kingdom. Free from the tyranny of the mainlanders and open to all." + create_bloodsail_kingdom_decision_tt:0 "Your Culture is Southsea" + create_bloodsail_kingdom_decision_effect_tooltip:0 "The Bloodsail Kingdom will be created and acquire the [de_jure|E] of all of [k_plunder_isle|E] and get claims on [d_booty_bay|E]." \ No newline at end of file From cceb42e56b44a253621719471ea7df9ceff66b84 Mon Sep 17 00:00:00 2001 From: Arthur Kozhevnik Date: Thu, 20 Apr 2023 12:40:49 -0400 Subject: [PATCH 02/10] Made decisions and event BK --- .../decisions/wc_major_pirate_decisions.txt | 15 +-- common/landed_titles/wc_titular_titles.txt | 37 ++++++++ .../00_major_decisions_scripted_effects.txt | 75 +++++++++++++++ .../wc_pirate_decisions_events.txt | 93 +++++++++++++++++++ .../english/wc_decisions_l_english.yml | 15 ++- 5 files changed, 225 insertions(+), 10 deletions(-) create mode 100644 events/decisions_events/wc_pirate_decisions_events.txt diff --git a/common/decisions/wc_major_pirate_decisions.txt b/common/decisions/wc_major_pirate_decisions.txt index e481ff8ece..fa41ecb30a 100644 --- a/common/decisions/wc_major_pirate_decisions.txt +++ b/common/decisions/wc_major_pirate_decisions.txt @@ -1,4 +1,4 @@ -#Restoring the Legit Roman Empire +#Create Bloodsail Kingdom create_bloodsail_kingdom_decision = { picture = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" @@ -33,12 +33,11 @@ create_bloodsail_kingdom_decision = { culture = culture:pirate_culture } - completely_controls = title:c_gillijim + completely_controls = title:d_hiji completely_controls = title:d_jinkalak - completely_controls = title:c_lapidis_island completely_controls = title:d_plunder_isle - completely_controls = title:c_uncharted_island completely_controls = title:d_whispering_reef + } is_valid_showing_failures_only = { @@ -47,13 +46,17 @@ create_bloodsail_kingdom_decision = { is_independent_ruler = yes } + cost = { + gold = 500 + } + effect = { custom_tooltip = create_bloodsail_kingdom_decision_effect_tooltip show_as_tooltip = { - create_roman_empire_scripted_effect = yes + create_bloodsail_kingdom_scripted_effect = yes } trigger_event = { - #id = roman_restoration.0001 + id = bloodsail_decisions.0001 #Event should give player Kindogm Title for all Plunder Islands under Bloodsail title } hidden_effect = { diff --git a/common/landed_titles/wc_titular_titles.txt b/common/landed_titles/wc_titular_titles.txt index 177d6e03e2..f143e2a313 100644 --- a/common/landed_titles/wc_titular_titles.txt +++ b/common/landed_titles/wc_titular_titles.txt @@ -751,4 +751,41 @@ k_fashion = { # Kingdom of Fashion from Establish a New Fashion at Court decisio no_automatic_claims = yes de_jure_drift_disabled = yes +} + +### NORTH/SOUTHSEA ### +e_pirate_empire = { + color={ 90 1 1 } + + definite_form = yes + can_be_named_after_dynasty = no + + ai_primary_priority = { + add = 1000 + } + +} +k_bloodsail_kingdom = { + color={ 201 19 19 } + + capital = c_dael_tiras + + definite_form = yes + can_be_named_after_dynasty = no + + ai_primary_priority = { + add = 1000 + } +} +k_freebooter_kingdom = { + color={ 43 113 252 } + + capital = c_sorlofs_strand + + definite_form = yes + can_be_named_after_dynasty = no + + ai_primary_priority = { + add = 1000 + } } \ No newline at end of file diff --git a/common/scripted_effects/00_major_decisions_scripted_effects.txt b/common/scripted_effects/00_major_decisions_scripted_effects.txt index 8dba7f6c19..f6f3dbbb72 100644 --- a/common/scripted_effects/00_major_decisions_scripted_effects.txt +++ b/common/scripted_effects/00_major_decisions_scripted_effects.txt @@ -126,3 +126,78 @@ declare_bloodline_holy_decision_effect = { # } # } # } +#Warcraft +create_bloodsail_kingdom_scripted_effect = { + add_trait = forder + #Create Bloodsail Kingdom, shift dejure/history/laws. + hidden_effect = { + every_held_title = { #Should shift all dejure of all Kingdoms owned at the time. + limit = { + tier = tier_kingdom + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_duchy + } + set_de_jure_liege_title = title:_bloodsail_kingdom + + } + } + } + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:k_bloodsail_kingdom = { + change_title_holder = { + holder = root + change = scope:change + } + set_variable = { + name = variable_restored_hre #Used for flavor later. + value = yes + } + copy_title_history = title:k_plunder_isle + } + resolve_title_and_vassal_change = scope:change + hidden_effect = { set_primary_title_to = title:k_bloodsail_kingdom } + + hidden_effect = { + title:k_bloodsail_kingdom = { + set_coa = e_hre_roman + set_color_from_title = title:e_hre + } + } + + if = { #Automatically move capital to Rome. + limit = { + NOT = { capital_county = { this = title:c_daer_tiras } } + exists = title:k_bloodsail_kingdom.holder + } + hidden_effect = { + if = { #Usurp if not held personally. + limit = { + NOT = { title:c_daer_tiras.holder = { this = root } } + } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_daer_tiras = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + } + title:k_bloodsail_kingdom.holder = { set_realm_capital = title:c_daer_tiras } + } + #hidden_effect = { + # create_story = restoring_roman_provinces_story + # add_character_flag = flag_restorer_of_rome #used for Eulogy. + #} +} \ No newline at end of file diff --git a/events/decisions_events/wc_pirate_decisions_events.txt b/events/decisions_events/wc_pirate_decisions_events.txt new file mode 100644 index 0000000000..dcc86c4e53 --- /dev/null +++ b/events/decisions_events/wc_pirate_decisions_events.txt @@ -0,0 +1,93 @@ +# Warcraft +################################################## +# Forming the Bloodsail Kingdom +################################################## + +bloodsail_decisions.0001 = { + type = character_event + title = bloodsail_decisions.0001.t + desc = bloodsail_decisions.0001.desc + theme = realm + left_portrait = { + character = root + animation = personality_bold + } + right_portrait = { + character = scope:scoped_emperor + animation = shock + } + + immediate = { + play_music_cue = "mx_cue_epic_sacral_moment" + create_bloodsail_kingdom_scripted_effect = yes + } + option = { + name = bloodsail_decisions.0001.a + + # Send narrative fluff to other players (if any). + every_player = { + limit = { + NOT = { this = root } + } + trigger_event = bloodsail_decisions.0002 + } + } +} + +bloodsail_decisions.0002 = { + type = character_event + title = bloodsail_decisions.0001.t + desc = { + first_valid = { + # Kul Tiran's reaction. + triggered_desc = { + trigger = { + OR = { + #Kul Tirans + has_title = title:e_kul_tiras + has_title = title:k_kul_tiras + + #Trade Coalition + has_title = title:e_trade_coalition + has_title = title:d_booty_bay + } + } + desc = bloodsail_decisions.0002.desc.challenge + } + # Everybody else's. + #triggered_desc = { + # desc = bloodsail_decisions.0002.desc.world + #} + } + } + theme = realm + left_portrait = { + character = scope:scoped_ruler + animation = personality_bold + } + right_portrait = { + character = scope:scoped_emperor + animation = shock + } + + immediate = { + #The Emperor hears the future! + if = { + limit = { + OR = { + #Kul Tirans + has_title = title:e_kul_tiras + has_title = title:k_kul_tiras + + #Trade Coalition + has_title = title:e_trade_coalition + has_title = title:d_booty_bay + } + } + play_music_cue = "mx_cue_combat_2" + } + } + option = { + name = bloodsail_decisions.0002.a + } +} \ No newline at end of file diff --git a/localization/english/wc_decisions_l_english.yml b/localization/english/wc_decisions_l_english.yml index f9496db866..4f0110ea52 100644 --- a/localization/english/wc_decisions_l_english.yml +++ b/localization/english/wc_decisions_l_english.yml @@ -1,7 +1,14 @@ l_english: create_bloodsail_kingdom_decision:1 "Form the Bloodsail Kingdom" - create_bloodsail_kingdom_decision_confirm:0 "I will unite the Buccanears" - create_bloodsail_kingdom_decision_tooltip:0 "The Bloodsail Buccanears will be united under one flag" - create_bloodsail_kingdom_decision_desc:0 "Our pirate lords have on the [d_plunder_isle|E], [d_jinkalak|E], and the surrounding islands have come together to finally create a new, unified kingdom. Free from the tyranny of the mainlanders and open to all." + create_bloodsail_kingdom_decision_confirm:0 "I will unite the Buccaneers" + create_bloodsail_kingdom_decision_tooltip:0 "The Bloodsail Buccaneers will be united under one flag" + create_bloodsail_kingdom_decision_desc:0 "Our pirate lords have on the [GetTitleByKey('d_plunder_isle').GetName], [GetTitleByKey('d_jinkalak').GetName], and [GetTitleByKey('d_hiji').GetName] have come together to finally create a new, unified kingdom. Free from the tyranny of the mainlanders and open to all." create_bloodsail_kingdom_decision_tt:0 "Your Culture is Southsea" - create_bloodsail_kingdom_decision_effect_tooltip:0 "The Bloodsail Kingdom will be created and acquire the [de_jure|E] of all of [k_plunder_isle|E] and get claims on [d_booty_bay|E]." \ No newline at end of file + create_bloodsail_kingdom_decision_effect_tooltip:0 "The Bloodsail Kingdom will be created and acquire the [de_jure|E] of all of [GetTitleByKey('k_plunder_isle').GetName] and get claims on [GetTitleByKey('d_booty_bay').GetName]." + + bloodsail_decisions.0001.t:1 "The Flag Of The Bloodsail Buccaneers Rises" + bloodsail_decisions.0001.desc:0 "In the early days of the Bloodsail Buccaneers, they were a loose confederation of pirate crews who roamed the seas, plundering merchant ships and coastal towns alike. Each crew operated independently, with their own leaders and goals, but they all shared a love of adventure, freedom, and treasure. As time passed, the Bloodsail Buccaneers grew in strength and reputation, and soon they found themselves united under [ROOT.Char.GetName]." + bloodsail_decisions.0001.a:0 "Arrr, me hearties! It's a great day to be a pirate!" + bloodsail_decisions.0002.desc.challenge:0 "By the Gods, we must take swift action to stop them!" + bloodsail_decisions.0002.desc.world:0 "An interesting, and possibly worrying development" + bloodsail_decisions.0002.a:0 "An interesting, and possibly worrying development..." \ No newline at end of file From f3099b04f3ff05055cf316dd1395e2e5a8ebb7c4 Mon Sep 17 00:00:00 2001 From: Arthur Kozhevnik Date: Thu, 20 Apr 2023 12:40:55 -0400 Subject: [PATCH 03/10] Update wc_major_pirate_decisions.txt --- common/decisions/wc_major_pirate_decisions.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/common/decisions/wc_major_pirate_decisions.txt b/common/decisions/wc_major_pirate_decisions.txt index fa41ecb30a..d0fad60131 100644 --- a/common/decisions/wc_major_pirate_decisions.txt +++ b/common/decisions/wc_major_pirate_decisions.txt @@ -11,7 +11,6 @@ create_bloodsail_kingdom_decision = { is_shown = { is_ruler = yes is_landed = yes - has_title = title:c_daer_tiras culture = culture:pirate_culture NOT = { #Can only do it once. is_target_in_global_variable_list = { From c614b51f6a261e4148794d9d040021eb17753130 Mon Sep 17 00:00:00 2001 From: ElMariuso Date: Thu, 20 Apr 2023 19:18:51 +0200 Subject: [PATCH 04/10] Scope fixing --- common/decisions/wc_major_pirate_decisions.txt | 2 ++ .../decisions_events/wc_pirate_decisions_events.txt | 13 +++++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/common/decisions/wc_major_pirate_decisions.txt b/common/decisions/wc_major_pirate_decisions.txt index d0fad60131..d3a33630da 100644 --- a/common/decisions/wc_major_pirate_decisions.txt +++ b/common/decisions/wc_major_pirate_decisions.txt @@ -51,6 +51,8 @@ create_bloodsail_kingdom_decision = { effect = { custom_tooltip = create_bloodsail_kingdom_decision_effect_tooltip + + save_scope_as = founder show_as_tooltip = { create_bloodsail_kingdom_scripted_effect = yes } diff --git a/events/decisions_events/wc_pirate_decisions_events.txt b/events/decisions_events/wc_pirate_decisions_events.txt index dcc86c4e53..df9404b926 100644 --- a/events/decisions_events/wc_pirate_decisions_events.txt +++ b/events/decisions_events/wc_pirate_decisions_events.txt @@ -9,13 +9,9 @@ bloodsail_decisions.0001 = { desc = bloodsail_decisions.0001.desc theme = realm left_portrait = { - character = root + character = scope:founder animation = personality_bold } - right_portrait = { - character = scope:scoped_emperor - animation = shock - } immediate = { play_music_cue = "mx_cue_epic_sacral_moment" @@ -27,9 +23,10 @@ bloodsail_decisions.0001 = { # Send narrative fluff to other players (if any). every_player = { limit = { - NOT = { this = root } + NOT = { this = scope:founder } } trigger_event = bloodsail_decisions.0002 + days = 1 } } } @@ -62,11 +59,11 @@ bloodsail_decisions.0002 = { } theme = realm left_portrait = { - character = scope:scoped_ruler + character = scope:founder animation = personality_bold } right_portrait = { - character = scope:scoped_emperor + character = scope:root animation = shock } From a5028e2e9ea1410d171a3930a4c74325306b43a5 Mon Sep 17 00:00:00 2001 From: ElMariuso Date: Thu, 20 Apr 2023 19:20:54 +0200 Subject: [PATCH 05/10] Fix wrong prio syntax --- common/landed_titles/wc_titular_titles.txt | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/common/landed_titles/wc_titular_titles.txt b/common/landed_titles/wc_titular_titles.txt index 142c753d1d..bff711460e 100644 --- a/common/landed_titles/wc_titular_titles.txt +++ b/common/landed_titles/wc_titular_titles.txt @@ -1,4 +1,8 @@ -### Humans ### +@correct_culture_primary_score = 100 +@better_than_the_alternatives_score = 50 +@always_primary_score = 1000 + +### Humans ### e_alliance = { color={ 0 0 255 } @@ -722,10 +726,10 @@ e_pirate_empire = { definite_form = yes can_be_named_after_dynasty = no + ignore_titularity_for_title_weighting = yes ai_primary_priority = { - add = 1000 - } - + add = @always_primary_score + } } k_bloodsail_kingdom = { color={ 201 19 19 } @@ -735,9 +739,10 @@ k_bloodsail_kingdom = { definite_form = yes can_be_named_after_dynasty = no + ignore_titularity_for_title_weighting = yes ai_primary_priority = { - add = 1000 - } + add = @always_primary_score + } } k_freebooter_kingdom = { color={ 43 113 252 } @@ -747,7 +752,8 @@ k_freebooter_kingdom = { definite_form = yes can_be_named_after_dynasty = no + ignore_titularity_for_title_weighting = yes ai_primary_priority = { - add = 1000 - } + add = @always_primary_score + } } \ No newline at end of file From 9118cc55f759e278770847d648ad4032bd6c73c7 Mon Sep 17 00:00:00 2001 From: ElMariuso Date: Thu, 20 Apr 2023 20:05:09 +0200 Subject: [PATCH 06/10] fix kingdom not created --- common/decisions/wc_major_pirate_decisions.txt | 1 - common/scripted_effects/00_major_decisions_scripted_effects.txt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/common/decisions/wc_major_pirate_decisions.txt b/common/decisions/wc_major_pirate_decisions.txt index d3a33630da..9183e14f13 100644 --- a/common/decisions/wc_major_pirate_decisions.txt +++ b/common/decisions/wc_major_pirate_decisions.txt @@ -51,7 +51,6 @@ create_bloodsail_kingdom_decision = { effect = { custom_tooltip = create_bloodsail_kingdom_decision_effect_tooltip - save_scope_as = founder show_as_tooltip = { create_bloodsail_kingdom_scripted_effect = yes diff --git a/common/scripted_effects/00_major_decisions_scripted_effects.txt b/common/scripted_effects/00_major_decisions_scripted_effects.txt index f6f3dbbb72..06b992a6f9 100644 --- a/common/scripted_effects/00_major_decisions_scripted_effects.txt +++ b/common/scripted_effects/00_major_decisions_scripted_effects.txt @@ -139,7 +139,7 @@ create_bloodsail_kingdom_scripted_effect = { limit = { tier = tier_duchy } - set_de_jure_liege_title = title:_bloodsail_kingdom + set_de_jure_liege_title = title:k_bloodsail_kingdom } } From c5dc617f5f36cf9d6d72ecc67bd250d58d917e7f Mon Sep 17 00:00:00 2001 From: Arthur Kozhevnik Date: Thu, 20 Apr 2023 17:21:09 -0400 Subject: [PATCH 07/10] Added title loc/event troops --- .../00_major_decisions_scripted_effects.txt | 77 +-------------- common/scripted_effects/wc_pirate_effects.txt | 97 +++++++++++++++++++ .../english/wc_custom_titles_l_english.yml | 2 + 3 files changed, 100 insertions(+), 76 deletions(-) create mode 100644 common/scripted_effects/wc_pirate_effects.txt diff --git a/common/scripted_effects/00_major_decisions_scripted_effects.txt b/common/scripted_effects/00_major_decisions_scripted_effects.txt index 06b992a6f9..b7c83390e9 100644 --- a/common/scripted_effects/00_major_decisions_scripted_effects.txt +++ b/common/scripted_effects/00_major_decisions_scripted_effects.txt @@ -125,79 +125,4 @@ declare_bloodline_holy_decision_effect = { # } # } # } -# } -#Warcraft -create_bloodsail_kingdom_scripted_effect = { - add_trait = forder - #Create Bloodsail Kingdom, shift dejure/history/laws. - hidden_effect = { - every_held_title = { #Should shift all dejure of all Kingdoms owned at the time. - limit = { - tier = tier_kingdom - } - every_in_de_jure_hierarchy = { - limit = { - tier = tier_duchy - } - set_de_jure_liege_title = title:k_bloodsail_kingdom - - } - } - } - create_title_and_vassal_change = { - type = created - save_scope_as = change - add_claim_on_loss = no - } - title:k_bloodsail_kingdom = { - change_title_holder = { - holder = root - change = scope:change - } - set_variable = { - name = variable_restored_hre #Used for flavor later. - value = yes - } - copy_title_history = title:k_plunder_isle - } - resolve_title_and_vassal_change = scope:change - hidden_effect = { set_primary_title_to = title:k_bloodsail_kingdom } - - hidden_effect = { - title:k_bloodsail_kingdom = { - set_coa = e_hre_roman - set_color_from_title = title:e_hre - } - } - - if = { #Automatically move capital to Rome. - limit = { - NOT = { capital_county = { this = title:c_daer_tiras } } - exists = title:k_bloodsail_kingdom.holder - } - hidden_effect = { - if = { #Usurp if not held personally. - limit = { - NOT = { title:c_daer_tiras.holder = { this = root } } - } - create_title_and_vassal_change = { - type = returned - save_scope_as = change - add_claim_on_loss = no - } - title:c_daer_tiras = { - change_title_holder = { - holder = root - change = scope:change - } - } - resolve_title_and_vassal_change = scope:change - } - } - title:k_bloodsail_kingdom.holder = { set_realm_capital = title:c_daer_tiras } - } - #hidden_effect = { - # create_story = restoring_roman_provinces_story - # add_character_flag = flag_restorer_of_rome #used for Eulogy. - #} -} \ No newline at end of file +# } \ No newline at end of file diff --git a/common/scripted_effects/wc_pirate_effects.txt b/common/scripted_effects/wc_pirate_effects.txt new file mode 100644 index 0000000000..4e08581677 --- /dev/null +++ b/common/scripted_effects/wc_pirate_effects.txt @@ -0,0 +1,97 @@ +#Warcraft +create_bloodsail_kingdom_scripted_effect = { + add_trait = forder + + spawn_pirate_troops_effect = yes + + #Create Bloodsail Kingdom, shift dejure/history/laws. + hidden_effect = { + every_held_title = { #Should shift all dejure of all Kingdoms owned at the time. + limit = { + tier = tier_kingdom + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_duchy + } + set_de_jure_liege_title = title:k_bloodsail + + } + } + } + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:k_bloodsail = { + change_title_holder = { + holder = root + change = scope:change + } + set_variable = { + name = variable_restored_hre #Used for flavor later. + value = yes + } + copy_title_history = title:k_plunder_isle + } + resolve_title_and_vassal_change = scope:change + hidden_effect = { set_primary_title_to = title:k_bloodsail } + + hidden_effect = { + title:k_bloodsail = { + set_coa = e_hre_roman + set_color_from_title = title:e_hre + } + } + + if = { #Automatically move capital to Daer Tiras. + limit = { + NOT = { capital_county = { this = title:c_daer_tiras } } + exists = title:k_bloodsail.holder + } + hidden_effect = { + if = { #Usurp if not held personally. + limit = { + NOT = { title:c_daer_tiras.holder = { this = root } } + } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_daer_tiras = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + } + title:k_bloodsail.holder = { set_realm_capital = title:c_daer_tiras } + } +} +spawn_pirate_troops_effect = { + if = { + limit = { exists = capital_province } + spawn_army = { + uses_supply = no + inheritable = yes + name = scourge_event_troops + men_at_arms = { + type = buccaneer + stacks = 3 + } + men_at_arms = { + type = blunderbuss_corsairs + stacks = 3 + } + men_at_arms = { + type = bombard + stacks = 1 + } + location = capital_province + } + } +} diff --git a/localization/english/wc_custom_titles_l_english.yml b/localization/english/wc_custom_titles_l_english.yml index 460d56febe..ad8a3c9d3e 100644 --- a/localization/english/wc_custom_titles_l_english.yml +++ b/localization/english/wc_custom_titles_l_english.yml @@ -10637,3 +10637,5 @@ k_zulfarrak:0 "Zul'farrak" k_zulfarrak_adj:0 "Zul'farrakian" + k_bloodsail:0 "Bloodsail Confederation" + k_bloodsail_adj:0 "Bloodsail Pirate" From 93cea062067890169b043fc0af151433fe928e01 Mon Sep 17 00:00:00 2001 From: Arthur Kozhevnik Date: Thu, 20 Apr 2023 20:39:37 -0400 Subject: [PATCH 08/10] Freebooters/Blackwater --- .../decisions/wc_major_pirate_decisions.txt | 174 ++++++++++++++- common/scripted_effects/wc_pirate_effects.txt | 66 +++++- .../wc_pirate_decisions_events.txt | 204 +++++++++++++++++- .../english/wc_custom_titles_l_english.yml | 5 + .../english/wc_decisions_l_english.yml | 39 +++- 5 files changed, 471 insertions(+), 17 deletions(-) diff --git a/common/decisions/wc_major_pirate_decisions.txt b/common/decisions/wc_major_pirate_decisions.txt index 9183e14f13..a4ad1973c1 100644 --- a/common/decisions/wc_major_pirate_decisions.txt +++ b/common/decisions/wc_major_pirate_decisions.txt @@ -37,6 +37,10 @@ create_bloodsail_kingdom_decision = { completely_controls = title:d_plunder_isle completely_controls = title:d_whispering_reef + has_realm_law = crown_authority_3 + + prestige_level >= 3 + } is_valid_showing_failures_only = { @@ -57,7 +61,7 @@ create_bloodsail_kingdom_decision = { } trigger_event = { id = bloodsail_decisions.0001 - #Event should give player Kindogm Title for all Plunder Islands under Bloodsail title + #Event should give player Kingdom Title for all Plunder Islands under Bloodsail title } hidden_effect = { add_to_global_variable_list = { @@ -75,6 +79,174 @@ create_bloodsail_kingdom_decision = { always = yes } + ai_will_do = { + base = 100 + } +} +#Create Freebooter Kingdom +create_freebooter_kingdom_decision = { + picture = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" + + desc = create_freebooter_kingdom_decision_desc + selection_tooltip = create_freebooter_kingdom_decision_tooltip + major = yes + + ai_check_interval = 120 + + is_shown = { + is_ruler = yes + is_landed = yes + culture = culture:northsea + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_freebooter_kingdom_created + } + } + OR = { + has_government = feudal_government + has_government = republic_government + has_government = clan_government + } + } + + is_valid = { + + custom_description = { + text = create_freebooter_kingdom_decision_tt + culture = culture:northsea + } + + completely_controls = title:d_borean_strand + completely_controls = title:d_spears_isles + completely_controls = title:d_strand_of_ancients + + has_realm_law = crown_authority_3 + + prestige_level >= 3 + + } + + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + is_independent_ruler = yes + } + + cost = { + gold = 500 + } + + effect = { + custom_tooltip = create_freebooter_kingdom_decision_effect_tooltip + save_scope_as = founder + show_as_tooltip = { + create_freebooter_kingdom_scripted_effect = yes + } + trigger_event = { + id = freebooter_decisions.0001 + #Event should give player Kingdom Title for all custom lands under Freebooters Title + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_freebooter_kingdom_created + } + set_global_variable = { + name = flag_freebooter_kingdom_created + value = root + } + } + } + + ai_potential = { + always = yes + } + + ai_will_do = { + base = 100 + } +} + +#Create Blackwater Kingdom +create_blackwater_kingdom_decision = { + picture = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds" + + desc = create_blackwater_kingdom_decision_desc + selection_tooltip = create_blackwater_kingdom_decision_tooltip + major = yes + + ai_check_interval = 120 + + is_shown = { + is_ruler = yes + is_landed = yes + culture = culture:blackwater + NOT = { #Can only do it once. + is_target_in_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_blackwater_kingdom_created + } + } + OR = { + has_government = feudal_government + has_government = republic_government + has_government = clan_government + } + } + + is_valid = { + + custom_description = { + text = create_blackwater_kingdom_decision_tt + culture = culture:blackwater + } + + completely_controls = title:d_booty_bay + completely_controls = title:d_cape_of_stranglethorn + completely_controls = title:d_ludei + + has_realm_law = crown_authority_3 + + prestige_level >= 3 + } + + is_valid_showing_failures_only = { + is_capable_adult = yes + is_imprisoned = no + is_independent_ruler = yes + } + + cost = { + gold = 500 + } + + effect = { + custom_tooltip = create_blackwater_kingdom_decision_effect_tooltip + save_scope_as = founder + show_as_tooltip = { + create_blackwater_kingdom_scripted_effect = yes + } + trigger_event = { + id = blackwater_decisions.0001 + #Event should give player Kingdom Title for Booty Bay under Blackwater + } + hidden_effect = { + add_to_global_variable_list = { + name = unavailable_unique_decisions + target = flag:flag_blackwater_kingdom_created + } + set_global_variable = { + name = flag_blackwater_kingdom_created + value = root + } + } + } + + ai_potential = { + always = yes + } + ai_will_do = { base = 100 } diff --git a/common/scripted_effects/wc_pirate_effects.txt b/common/scripted_effects/wc_pirate_effects.txt index 4e08581677..2416cb717c 100644 --- a/common/scripted_effects/wc_pirate_effects.txt +++ b/common/scripted_effects/wc_pirate_effects.txt @@ -2,8 +2,6 @@ create_bloodsail_kingdom_scripted_effect = { add_trait = forder - spawn_pirate_troops_effect = yes - #Create Bloodsail Kingdom, shift dejure/history/laws. hidden_effect = { every_held_title = { #Should shift all dejure of all Kingdoms owned at the time. @@ -29,10 +27,6 @@ create_bloodsail_kingdom_scripted_effect = { holder = root change = scope:change } - set_variable = { - name = variable_restored_hre #Used for flavor later. - value = yes - } copy_title_history = title:k_plunder_isle } resolve_title_and_vassal_change = scope:change @@ -72,6 +66,66 @@ create_bloodsail_kingdom_scripted_effect = { title:k_bloodsail.holder = { set_realm_capital = title:c_daer_tiras } } } + +create_freebooter_kingdom_scripted_effect = { + add_trait = forder + + #De jure shifts. + title:d_borean_strand = { set_de_jure_liege_title = title:k_freebooter } + title:d_spears_isles = { set_de_jure_liege_title = title:k_freebooter } + title:d_strand_of_ancients = { set_de_jure_liege_title = title:k_freebooter } + + title:k_freebooter = { set_de_jure_liege_title = root.top_liege.primary_title } + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:k_freebooter = { + change_title_holder = { + holder = root + change = scope:change + } + } + + resolve_title_and_vassal_change = scope:change + hidden_effect = { set_primary_title_to = title:k_freebooter } + + hidden_effect = { + title:k_freebooter = { + set_coa = e_hre_roman + set_color_from_title = title:e_hre + } + } + + if = { #Automatically move capital to Ancient Grounds. + limit = { + NOT = { capital_county = { this = title:c_ancient_grounds } } + exists = title:k_freebooter.holder + } + hidden_effect = { + if = { #Usurp if not held personally. + limit = { + NOT = { title:c_ancient_grounds.holder = { this = root } } + } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_ancient_grounds = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + } + title:k_freebooter.holder = { set_realm_capital = title:c_ancient_grounds } + } +} + spawn_pirate_troops_effect = { if = { limit = { exists = capital_province } diff --git a/events/decisions_events/wc_pirate_decisions_events.txt b/events/decisions_events/wc_pirate_decisions_events.txt index df9404b926..024f909cec 100644 --- a/events/decisions_events/wc_pirate_decisions_events.txt +++ b/events/decisions_events/wc_pirate_decisions_events.txt @@ -19,6 +19,7 @@ bloodsail_decisions.0001 = { } option = { name = bloodsail_decisions.0001.a + spawn_pirate_troops_effect = yes # Send narrative fluff to other players (if any). every_player = { @@ -46,7 +47,6 @@ bloodsail_decisions.0002 = { #Trade Coalition has_title = title:e_trade_coalition - has_title = title:d_booty_bay } } desc = bloodsail_decisions.0002.desc.challenge @@ -68,7 +68,6 @@ bloodsail_decisions.0002 = { } immediate = { - #The Emperor hears the future! if = { limit = { OR = { @@ -78,7 +77,6 @@ bloodsail_decisions.0002 = { #Trade Coalition has_title = title:e_trade_coalition - has_title = title:d_booty_bay } } play_music_cue = "mx_cue_combat_2" @@ -87,4 +85,204 @@ bloodsail_decisions.0002 = { option = { name = bloodsail_decisions.0002.a } +} + +################################################## +# Forming the Freebooter Kingdom +################################################## +freebooter_decisions.0001 = { + type = character_event + title = freebooter_decisions.0001.t + desc = freebooter_decisions.0001.desc + theme = realm + left_portrait = { + character = scope:founder + animation = personality_bold + } + + immediate = { + play_music_cue = "mx_cue_epic_sacral_moment" + create_freebooter_kingdom_scripted_effect = yes + } + option = { + name = freebooter_decisions.0001.a + spawn_pirate_troops_effect = yes + + # Send narrative fluff to other players (if any). + every_player = { + limit = { + NOT = { this = scope:founder } + } + trigger_event = freebooter_decisions.0002 + days = 1 + } + } +} + +freebooter_decisions.0002 = { + type = character_event + title = freebooter_decisions.0001.t + desc = { + first_valid = { + # Kul Tiran's reaction. + triggered_desc = { + trigger = { + OR = { + #Northrend Coast + has_title = title:d_indule + has_title = title:d_moonrest + has_title = title:d_enkilah + has_title = title:d_transborea + has_title = title:d_njord + has_title = title:d_moaki + has_title = title:d_emerald + has_title = title:d_eldritch + has_title = title:d_venture_bay + has_title = title:d_voldrune + has_title = title:d_gjalerbron + has_title = title:d_ember_gultch + + } + } + desc = freebooter_decisions.0002.desc.challenge + } + # Everybody else's. + #triggered_desc = { + # desc = freebooter_decisions.0002.desc.world + #} + } + } + theme = realm + left_portrait = { + character = scope:founder + animation = personality_bold + } + right_portrait = { + character = scope:root + animation = shock + } + + immediate = { + if = { + limit = { + OR = { + #Kalu'ak + has_title = title:d_indule + has_title = title:d_palea + has_title = title:d_njord + + #Surrounding Area + has_title = title:d_ember_clutch + has_title = title:d_moaki + has_title = title:d_emerald + has_title = title:d_eldritch + has_title = title:d_venture_bay + has_title = title:d_gjalerbron + has_title = title:d_ember_gultch + + } + } + play_music_cue = "mx_cue_combat_2" + } + } + option = { + name = freebooter_decisions.0002.a + } +} + +################################################## +# Forming the Blackwater Kingdom +################################################## +blackwater_decisions.0001 = { + type = character_event + title = blackwater_decisions.0001.t + desc = blackwater_decisions.0001.desc + theme = realm + left_portrait = { + character = scope:founder + animation = personality_bold + } + + immediate = { + play_music_cue = "mx_cue_epic_sacral_moment" + create_blackwater_kingdom_scripted_effect = yes + } + option = { + name = blackwater_decisions.0001.a + spawn_pirate_troops_effect = yes + + # Send narrative fluff to other players (if any). + every_player = { + limit = { + NOT = { this = scope:founder } + } + trigger_event = blackwater_decisions.0002 + days = 1 + } + } +} + +blackwater_decisions.0002 = { + type = character_event + title = blackwater_decisions.0001.t + desc = { + first_valid = { + # Kul Tiran's reaction. + triggered_desc = { + trigger = { + OR = { + #Kul Tirans + has_title = title:e_kul_tiras + has_title = title:k_kul_tiras + + #Trade Coalition + has_title = title:e_trade_coalition + + #Surrounding Area + has_title = title:d_zulkanda + has_title = title:d_zulmamwe + has_title = title:d_zulgurub + } + } + desc = blackwater_decisions.0002.desc.challenge + } + # Everybody else's. + #triggered_desc = { + # desc = blackwater_decisions.0002.desc.world + #} + } + } + theme = realm + left_portrait = { + character = scope:founder + animation = personality_bold + } + right_portrait = { + character = scope:root + animation = shock + } + + immediate = { + if = { + limit = { + OR = { + #Kul Tirans + has_title = title:e_kul_tiras + has_title = title:k_kul_tiras + + #Trade Coalition + has_title = title:e_trade_coalition + + #Surrounding Area + has_title = title:d_zulkanda + has_title = title:d_zulmamwe + has_title = title:d_zulgurub + } + } + play_music_cue = "mx_cue_combat_2" + } + } + option = { + name = blackwater_decisions.0002.a + } } \ No newline at end of file diff --git a/localization/english/wc_custom_titles_l_english.yml b/localization/english/wc_custom_titles_l_english.yml index ad8a3c9d3e..881ea14a32 100644 --- a/localization/english/wc_custom_titles_l_english.yml +++ b/localization/english/wc_custom_titles_l_english.yml @@ -10639,3 +10639,8 @@ k_bloodsail:0 "Bloodsail Confederation" k_bloodsail_adj:0 "Bloodsail Pirate" + k_freebooter:0 "Freebooter Confederation" + k_freebooter_adj:0 "Freebooter Pirate" + k_blackwater:0 "Blackwater Confederation" + k_blackwater_adj:0 "Blackwater Pirate" + diff --git a/localization/english/wc_decisions_l_english.yml b/localization/english/wc_decisions_l_english.yml index 4f0110ea52..665445db13 100644 --- a/localization/english/wc_decisions_l_english.yml +++ b/localization/english/wc_decisions_l_english.yml @@ -1,14 +1,39 @@ l_english: - create_bloodsail_kingdom_decision:1 "Form the Bloodsail Kingdom" + create_bloodsail_kingdom_decision:1 "Form the Bloodsail Confederation" create_bloodsail_kingdom_decision_confirm:0 "I will unite the Buccaneers" create_bloodsail_kingdom_decision_tooltip:0 "The Bloodsail Buccaneers will be united under one flag" - create_bloodsail_kingdom_decision_desc:0 "Our pirate lords have on the [GetTitleByKey('d_plunder_isle').GetName], [GetTitleByKey('d_jinkalak').GetName], and [GetTitleByKey('d_hiji').GetName] have come together to finally create a new, unified kingdom. Free from the tyranny of the mainlanders and open to all." + create_bloodsail_kingdom_decision_desc:0 "Our pirate lords from the [GetTitleByKey('d_hiji').GetName], [GetTitleByKey('d_jinkalak').GetName], [GetTitleByKey('d_plunder_isle').GetName], and [GetTitleByKey('d_whispering_reef').GetName] have come together to finally create a new, unified kingdom. Free from the tyranny of the mainlanders and open to all." create_bloodsail_kingdom_decision_tt:0 "Your Culture is Southsea" - create_bloodsail_kingdom_decision_effect_tooltip:0 "The Bloodsail Kingdom will be created and acquire the [de_jure|E] of all of [GetTitleByKey('k_plunder_isle').GetName] and get claims on [GetTitleByKey('d_booty_bay').GetName]." - + create_bloodsail_kingdom_decision_effect_tooltip:0 "The Bloodsail Confederation will be created and acquire the [de_jure|E] of all of [GetTitleByKey('k_plunder_isle').GetName]." bloodsail_decisions.0001.t:1 "The Flag Of The Bloodsail Buccaneers Rises" - bloodsail_decisions.0001.desc:0 "In the early days of the Bloodsail Buccaneers, they were a loose confederation of pirate crews who roamed the seas, plundering merchant ships and coastal towns alike. Each crew operated independently, with their own leaders and goals, but they all shared a love of adventure, freedom, and treasure. As time passed, the Bloodsail Buccaneers grew in strength and reputation, and soon they found themselves united under [ROOT.Char.GetName]." - bloodsail_decisions.0001.a:0 "Arrr, me hearties! It's a great day to be a pirate!" + bloodsail_decisions.0001.desc:0 "In the early days of the Bloodsail Buccaneers, they were a loose collective of pirate crews who roamed the seas, plundering merchant ships and coastal towns alike. Each crew operated independently, with their own leaders and goals, but they all shared a love of adventure, freedom, and treasure. As time passed, the Bloodsail Buccaneers grew in strength and reputation, and soon they found themselves united under [ROOT.Char.GetName]." + bloodsail_decisions.0001.a:0 "Arrr, me hearties! It's a great day to be a Bloodsail Buccaneer!" bloodsail_decisions.0002.desc.challenge:0 "By the Gods, we must take swift action to stop them!" bloodsail_decisions.0002.desc.world:0 "An interesting, and possibly worrying development" - bloodsail_decisions.0002.a:0 "An interesting, and possibly worrying development..." \ No newline at end of file + bloodsail_decisions.0002.a:0 "An interesting, and possibly worrying development..." + + create_freebooter_kingdom_decision:1 "Form the Freebooter Confederation" + create_freebooter_kingdom_decision_confirm:0 "I will unite the Freebooter Pirates" + create_freebooter_kingdom_decision_tooltip:0 "The Freebooter will be united under one flag" + create_freebooter_kingdom_decision_desc:0 "Our pirate lords from the [GetTitleByKey('d_borean_strand').GetName], [GetTitleByKey('d_ember_clutch').GetName], [GetTitleByKey('d_spears_isles').GetName], and [GetTitleByKey('d_strand_of_ancients').GetName] have come together to finally create a new, unified kingdom. Free from the tyranny of the mainlanders and open to all." + create_freebooter_kingdom_decision_tt:0 "Your Culture is Northsea" + create_freebooter_kingdom_decision_effect_tooltip:0 "The Freebooter Confederation will be created as a custom [kingdom|E] [title|E]." + freebooter_decisions.0001.t:1 "The Flag Of The Freebooters Rises" + freebooter_decisions.0001.desc:0 "In the early days of the Freebooter, they were a loose collective of pirate crews who roamed the seas, plundering merchant ships and coastal towns alike. Each crew operated independently, with their own leaders and goals, but they all shared a love of adventure, freedom, and treasure. As time passed, the freebooter Buccaneers grew in strength and reputation, and soon they found themselves united under [ROOT.Char.GetName]." + freebooter_decisions.0001.a:0 "Arrr, me hearties! It's a great day to be a Freebooter Pirate!" + freebooter_decisions.0002.desc.challenge:0 "By the Gods, we must take swift action to stop them!" + freebooter_decisions.0002.desc.world:0 "An interesting, and possibly worrying development" + freebooter_decisions.0002.a:0 "An interesting, and possibly worrying development..." + + create_blackwater_kingdom_decision:1 "Form the Blackwater Confederation" + create_blackwater_kingdom_decision_confirm:0 "I will unite the Blackwater Raiders" + create_blackwater_kingdom_decision_tooltip:0 "The Blackwater Raiders will be united under one flag" + create_blackwater_kingdom_decision_desc:0 "Our pirate lords from the [GetTitleByKey('d_booty_bay').GetName], [GetTitleByKey('d_cape_of_stranglethorn').GetName], and [GetTitleByKey('d_ludei').GetName] have come together to finally create a new, unified kingdom. Free from the rule of the Trade Coalition and open to all." + create_blackwater_kingdom_decision_tt:0 "Your Culture is Blackwater" + create_blackwater_kingdom_decision_effect_tooltip:0 "The Blackwater Confederation will be created and acquire the [de_jure|E] of all of [GetTitleByKey('k_booty_bay').GetName]." + blackwater_decisions.0001.t:1 "The Flag Of The Blackwater Raiders Rises" + blackwater_decisions.0001.desc:0 "In the early days of the Blackwater Raiders, we operated under the flag of the Trade Coalition. After our indepedence, we found strength in each other and doing what we do best, taking what belongs to us! As time passed we found ourselves united by our new pirate king, [ROOT.Char.GetName]!." + blackwater_decisions.0001.a:0 "Arrr, me hearties! It's a great day to be a Blackwater Raider!" + blackwater_decisions.0002.desc.challenge:0 "By the Gods, we must take swift action to stop them!" + blackwater_decisions.0002.desc.world:0 "An interesting, and possibly worrying development" + blackwater_decisions.0002.a:0 "An interesting, and possibly worrying development..." \ No newline at end of file From e67f6deb231a4fd72d6704512e7faa06fe090c3f Mon Sep 17 00:00:00 2001 From: Arthur Kozhevnik Date: Thu, 20 Apr 2023 20:45:38 -0400 Subject: [PATCH 09/10] Either of the three can form the title --- .../decisions/wc_major_pirate_decisions.txt | 36 +++++++++++++++---- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/common/decisions/wc_major_pirate_decisions.txt b/common/decisions/wc_major_pirate_decisions.txt index a4ad1973c1..df5a8bf828 100644 --- a/common/decisions/wc_major_pirate_decisions.txt +++ b/common/decisions/wc_major_pirate_decisions.txt @@ -11,7 +11,11 @@ create_bloodsail_kingdom_decision = { is_shown = { is_ruler = yes is_landed = yes - culture = culture:pirate_culture + OR = { + culture = culture:blackwater + culture = culture:pirate_culture + culture = culture:northsea + } NOT = { #Can only do it once. is_target_in_global_variable_list = { name = unavailable_unique_decisions @@ -29,7 +33,11 @@ create_bloodsail_kingdom_decision = { custom_description = { text = create_bloodsail_kingdom_decision_tt - culture = culture:pirate_culture + OR = { + culture = culture:blackwater + culture = culture:pirate_culture + culture = culture:northsea + } } completely_controls = title:d_hiji @@ -96,7 +104,11 @@ create_freebooter_kingdom_decision = { is_shown = { is_ruler = yes is_landed = yes - culture = culture:northsea + OR = { + culture = culture:blackwater + culture = culture:pirate_culture + culture = culture:northsea + } NOT = { #Can only do it once. is_target_in_global_variable_list = { name = unavailable_unique_decisions @@ -114,7 +126,11 @@ create_freebooter_kingdom_decision = { custom_description = { text = create_freebooter_kingdom_decision_tt - culture = culture:northsea + OR = { + culture = culture:blackwater + culture = culture:pirate_culture + culture = culture:northsea + } } completely_controls = title:d_borean_strand @@ -181,7 +197,11 @@ create_blackwater_kingdom_decision = { is_shown = { is_ruler = yes is_landed = yes - culture = culture:blackwater + OR = { + culture = culture:blackwater + culture = culture:pirate_culture + culture = culture:northsea + } NOT = { #Can only do it once. is_target_in_global_variable_list = { name = unavailable_unique_decisions @@ -199,7 +219,11 @@ create_blackwater_kingdom_decision = { custom_description = { text = create_blackwater_kingdom_decision_tt - culture = culture:blackwater + OR = { + culture = culture:blackwater + culture = culture:pirate_culture + culture = culture:northsea + } } completely_controls = title:d_booty_bay From bec2d06e60473ed260bd371f13f3b181b7530ee9 Mon Sep 17 00:00:00 2001 From: Arthur Kozhevnik Date: Fri, 21 Apr 2023 13:48:45 -0400 Subject: [PATCH 10/10] Fixed errors, lowered authority limit --- .../decisions/wc_major_pirate_decisions.txt | 6 +- common/scripted_effects/wc_pirate_effects.txt | 71 +++++ .../wc_blackwater_decisions_events.txt | 102 +++++++ .../wc_bloodsail_decisions_events.txt | 92 ++++++ .../wc_freebooter_decisions_events.txt | 108 +++++++ .../wc_pirate_decisions_events.txt | 288 ------------------ 6 files changed, 376 insertions(+), 291 deletions(-) create mode 100644 events/decisions_events/wc_blackwater_decisions_events.txt create mode 100644 events/decisions_events/wc_bloodsail_decisions_events.txt create mode 100644 events/decisions_events/wc_freebooter_decisions_events.txt delete mode 100644 events/decisions_events/wc_pirate_decisions_events.txt diff --git a/common/decisions/wc_major_pirate_decisions.txt b/common/decisions/wc_major_pirate_decisions.txt index df5a8bf828..eb9d7f6515 100644 --- a/common/decisions/wc_major_pirate_decisions.txt +++ b/common/decisions/wc_major_pirate_decisions.txt @@ -45,7 +45,7 @@ create_bloodsail_kingdom_decision = { completely_controls = title:d_plunder_isle completely_controls = title:d_whispering_reef - has_realm_law = crown_authority_3 + has_realm_law = crown_authority_1 prestige_level >= 3 @@ -137,7 +137,7 @@ create_freebooter_kingdom_decision = { completely_controls = title:d_spears_isles completely_controls = title:d_strand_of_ancients - has_realm_law = crown_authority_3 + has_realm_law = crown_authority_1 prestige_level >= 3 @@ -230,7 +230,7 @@ create_blackwater_kingdom_decision = { completely_controls = title:d_cape_of_stranglethorn completely_controls = title:d_ludei - has_realm_law = crown_authority_3 + has_realm_law = crown_authority_1 prestige_level >= 3 } diff --git a/common/scripted_effects/wc_pirate_effects.txt b/common/scripted_effects/wc_pirate_effects.txt index 2416cb717c..f2704a9fcf 100644 --- a/common/scripted_effects/wc_pirate_effects.txt +++ b/common/scripted_effects/wc_pirate_effects.txt @@ -126,6 +126,77 @@ create_freebooter_kingdom_scripted_effect = { } } +create_blackwater_kingdom_scripted_effect = { + add_trait = forder + + #Create Blackwater Kingdom, shift dejure/history/laws. + hidden_effect = { + every_held_title = { #Should shift all dejure of all Kingdoms owned at the time. + limit = { + tier = tier_kingdom + } + every_in_de_jure_hierarchy = { + limit = { + tier = tier_duchy + } + set_de_jure_liege_title = title:k_blackwater + + } + } + } + + + title:k_blackwater = { set_de_jure_liege_title = root.top_liege.primary_title } + create_title_and_vassal_change = { + type = created + save_scope_as = change + add_claim_on_loss = no + } + title:k_blackwater = { + change_title_holder = { + holder = root + change = scope:change + } + } + + resolve_title_and_vassal_change = scope:change + hidden_effect = { set_primary_title_to = title:k_blackwater } + + hidden_effect = { + title:k_blackwater = { + set_coa = e_hre_roman + set_color_from_title = title:e_hre + } + } + + if = { #Automatically move capital to Wild Cape. + limit = { + NOT = { capital_county = { this = title:c_wild_cape } } + exists = title:k_blackwater.holder + } + hidden_effect = { + if = { #Usurp if not held personally. + limit = { + NOT = { title:c_wild_cape.holder = { this = root } } + } + create_title_and_vassal_change = { + type = returned + save_scope_as = change + add_claim_on_loss = no + } + title:c_wild_cape = { + change_title_holder = { + holder = root + change = scope:change + } + } + resolve_title_and_vassal_change = scope:change + } + } + title:k_blackwater.holder = { set_realm_capital = title:c_wild_cape } + } +} + spawn_pirate_troops_effect = { if = { limit = { exists = capital_province } diff --git a/events/decisions_events/wc_blackwater_decisions_events.txt b/events/decisions_events/wc_blackwater_decisions_events.txt new file mode 100644 index 0000000000..dabdab0255 --- /dev/null +++ b/events/decisions_events/wc_blackwater_decisions_events.txt @@ -0,0 +1,102 @@ +namespace = blackwater_decisions + +# Warcraft + +################################################## +# Forming the Blackwater Kingdom +################################################## +blackwater_decisions.0001 = { + type = character_event + title = blackwater_decisions.0001.t + desc = blackwater_decisions.0001.desc + theme = realm + left_portrait = { + character = scope:founder + animation = personality_bold + } + + immediate = { + play_music_cue = "mx_cue_epic_sacral_moment" + create_blackwater_kingdom_scripted_effect = yes + } + option = { + name = blackwater_decisions.0001.a + spawn_pirate_troops_effect = yes + + # Send narrative fluff to other players (if any). + every_player = { + limit = { + NOT = { this = scope:founder } + } + trigger_event = { + id = blackwater_decisions.0002 + days = 1 + } + } + } +} + +blackwater_decisions.0002 = { + type = character_event + title = blackwater_decisions.0001.t + desc = { + first_valid = { + # Kul Tiran's reaction. + triggered_desc = { + trigger = { + OR = { + #Kul Tirans + has_title = title:e_kul_tiras + has_title = title:k_kul_tiras + + #Trade Coalition + has_title = title:e_trade_coalition + + #Surrounding Area + has_title = title:d_zulkanda + has_title = title:d_zulmamwe + has_title = title:d_zulgurub + } + } + desc = blackwater_decisions.0002.desc.challenge + } + # Everybody else's. + #triggered_desc = { + # desc = blackwater_decisions.0002.desc.world + #} + } + } + theme = realm + left_portrait = { + character = scope:founder + animation = personality_bold + } + right_portrait = { + character = scope:root + animation = shock + } + + immediate = { + if = { + limit = { + OR = { + #Kul Tirans + has_title = title:e_kul_tiras + has_title = title:k_kul_tiras + + #Trade Coalition + has_title = title:e_trade_coalition + + #Surrounding Area + has_title = title:d_zulkanda + has_title = title:d_zulmamwe + has_title = title:d_zulgurub + } + } + play_music_cue = "mx_cue_combat_2" + } + } + option = { + name = blackwater_decisions.0002.a + } +} \ No newline at end of file diff --git a/events/decisions_events/wc_bloodsail_decisions_events.txt b/events/decisions_events/wc_bloodsail_decisions_events.txt new file mode 100644 index 0000000000..6a5af1a793 --- /dev/null +++ b/events/decisions_events/wc_bloodsail_decisions_events.txt @@ -0,0 +1,92 @@ +namespace = bloodsail_decisions + +# Warcraft +################################################## +# Forming the Bloodsail Kingdom +################################################## + +bloodsail_decisions.0001 = { + type = character_event + title = bloodsail_decisions.0001.t + desc = bloodsail_decisions.0001.desc + theme = realm + left_portrait = { + character = scope:founder + animation = personality_bold + } + + immediate = { + play_music_cue = "mx_cue_epic_sacral_moment" + create_bloodsail_kingdom_scripted_effect = yes + } + option = { + name = bloodsail_decisions.0001.a + spawn_pirate_troops_effect = yes + + # Send narrative fluff to other players (if any). + every_player = { + limit = { + NOT = { this = scope:founder } + } + trigger_event = { + id = bloodsail_decisions.0002 + days = 1 + } + } + } +} + +bloodsail_decisions.0002 = { + type = character_event + title = bloodsail_decisions.0001.t + desc = { + first_valid = { + # Kul Tiran's reaction. + triggered_desc = { + trigger = { + OR = { + #Kul Tirans + has_title = title:e_kul_tiras + has_title = title:k_kul_tiras + + #Trade Coalition + has_title = title:e_trade_coalition + } + } + desc = bloodsail_decisions.0002.desc.challenge + } + # Everybody else's. + #triggered_desc = { + # desc = bloodsail_decisions.0002.desc.world + #} + } + } + theme = realm + left_portrait = { + character = scope:founder + animation = personality_bold + } + right_portrait = { + character = scope:root + animation = shock + } + + immediate = { + if = { + limit = { + OR = { + #Kul Tirans + has_title = title:e_kul_tiras + has_title = title:k_kul_tiras + + #Trade Coalition + has_title = title:e_trade_coalition + } + } + play_music_cue = "mx_cue_combat_2" + } + } + option = { + name = bloodsail_decisions.0002.a + } +} diff --git a/events/decisions_events/wc_freebooter_decisions_events.txt b/events/decisions_events/wc_freebooter_decisions_events.txt new file mode 100644 index 0000000000..79700f2c53 --- /dev/null +++ b/events/decisions_events/wc_freebooter_decisions_events.txt @@ -0,0 +1,108 @@ +namespace = freebooter_decisions + +# Warcraft +################################################## +# Forming the Freebooter Kingdom +################################################## +freebooter_decisions.0001 = { + type = character_event + title = freebooter_decisions.0001.t + desc = freebooter_decisions.0001.desc + theme = realm + left_portrait = { + character = scope:founder + animation = personality_bold + } + + immediate = { + play_music_cue = "mx_cue_epic_sacral_moment" + create_freebooter_kingdom_scripted_effect = yes + } + option = { + name = freebooter_decisions.0001.a + spawn_pirate_troops_effect = yes + + # Send narrative fluff to other players (if any). + every_player = { + limit = { + NOT = { this = scope:founder } + } + trigger_event = { + freebooter_decisions.0002 + days = 1 + } + + } + } +} + +freebooter_decisions.0002 = { + type = character_event + title = freebooter_decisions.0001.t + desc = { + first_valid = { + # Kul Tiran's reaction. + triggered_desc = { + trigger = { + OR = { + #Northrend Coast + has_title = title:d_indule + has_title = title:d_moonrest + has_title = title:d_enkilah + has_title = title:d_transborea + has_title = title:d_njord + has_title = title:d_moaki + has_title = title:d_emerald + has_title = title:d_eldritch + has_title = title:d_venture_bay + has_title = title:d_voldrune + has_title = title:d_gjalerbron + has_title = title:d_ember_gultch + + } + } + desc = freebooter_decisions.0002.desc.challenge + } + # Everybody else's. + #triggered_desc = { + # desc = freebooter_decisions.0002.desc.world + #} + } + } + theme = realm + left_portrait = { + character = scope:founder + animation = personality_bold + } + right_portrait = { + character = scope:root + animation = shock + } + + immediate = { + if = { + limit = { + OR = { + #Kalu'ak + has_title = title:d_indule + has_title = title:d_palea + has_title = title:d_njord + + #Surrounding Area + has_title = title:d_ember_clutch + has_title = title:d_moaki + has_title = title:d_emerald + has_title = title:d_eldritch + has_title = title:d_venture_bay + has_title = title:d_gjalerbron + has_title = title:d_ember_gultch + + } + } + play_music_cue = "mx_cue_combat_2" + } + } + option = { + name = freebooter_decisions.0002.a + } +} \ No newline at end of file diff --git a/events/decisions_events/wc_pirate_decisions_events.txt b/events/decisions_events/wc_pirate_decisions_events.txt deleted file mode 100644 index 024f909cec..0000000000 --- a/events/decisions_events/wc_pirate_decisions_events.txt +++ /dev/null @@ -1,288 +0,0 @@ -# Warcraft -################################################## -# Forming the Bloodsail Kingdom -################################################## - -bloodsail_decisions.0001 = { - type = character_event - title = bloodsail_decisions.0001.t - desc = bloodsail_decisions.0001.desc - theme = realm - left_portrait = { - character = scope:founder - animation = personality_bold - } - - immediate = { - play_music_cue = "mx_cue_epic_sacral_moment" - create_bloodsail_kingdom_scripted_effect = yes - } - option = { - name = bloodsail_decisions.0001.a - spawn_pirate_troops_effect = yes - - # Send narrative fluff to other players (if any). - every_player = { - limit = { - NOT = { this = scope:founder } - } - trigger_event = bloodsail_decisions.0002 - days = 1 - } - } -} - -bloodsail_decisions.0002 = { - type = character_event - title = bloodsail_decisions.0001.t - desc = { - first_valid = { - # Kul Tiran's reaction. - triggered_desc = { - trigger = { - OR = { - #Kul Tirans - has_title = title:e_kul_tiras - has_title = title:k_kul_tiras - - #Trade Coalition - has_title = title:e_trade_coalition - } - } - desc = bloodsail_decisions.0002.desc.challenge - } - # Everybody else's. - #triggered_desc = { - # desc = bloodsail_decisions.0002.desc.world - #} - } - } - theme = realm - left_portrait = { - character = scope:founder - animation = personality_bold - } - right_portrait = { - character = scope:root - animation = shock - } - - immediate = { - if = { - limit = { - OR = { - #Kul Tirans - has_title = title:e_kul_tiras - has_title = title:k_kul_tiras - - #Trade Coalition - has_title = title:e_trade_coalition - } - } - play_music_cue = "mx_cue_combat_2" - } - } - option = { - name = bloodsail_decisions.0002.a - } -} - -################################################## -# Forming the Freebooter Kingdom -################################################## -freebooter_decisions.0001 = { - type = character_event - title = freebooter_decisions.0001.t - desc = freebooter_decisions.0001.desc - theme = realm - left_portrait = { - character = scope:founder - animation = personality_bold - } - - immediate = { - play_music_cue = "mx_cue_epic_sacral_moment" - create_freebooter_kingdom_scripted_effect = yes - } - option = { - name = freebooter_decisions.0001.a - spawn_pirate_troops_effect = yes - - # Send narrative fluff to other players (if any). - every_player = { - limit = { - NOT = { this = scope:founder } - } - trigger_event = freebooter_decisions.0002 - days = 1 - } - } -} - -freebooter_decisions.0002 = { - type = character_event - title = freebooter_decisions.0001.t - desc = { - first_valid = { - # Kul Tiran's reaction. - triggered_desc = { - trigger = { - OR = { - #Northrend Coast - has_title = title:d_indule - has_title = title:d_moonrest - has_title = title:d_enkilah - has_title = title:d_transborea - has_title = title:d_njord - has_title = title:d_moaki - has_title = title:d_emerald - has_title = title:d_eldritch - has_title = title:d_venture_bay - has_title = title:d_voldrune - has_title = title:d_gjalerbron - has_title = title:d_ember_gultch - - } - } - desc = freebooter_decisions.0002.desc.challenge - } - # Everybody else's. - #triggered_desc = { - # desc = freebooter_decisions.0002.desc.world - #} - } - } - theme = realm - left_portrait = { - character = scope:founder - animation = personality_bold - } - right_portrait = { - character = scope:root - animation = shock - } - - immediate = { - if = { - limit = { - OR = { - #Kalu'ak - has_title = title:d_indule - has_title = title:d_palea - has_title = title:d_njord - - #Surrounding Area - has_title = title:d_ember_clutch - has_title = title:d_moaki - has_title = title:d_emerald - has_title = title:d_eldritch - has_title = title:d_venture_bay - has_title = title:d_gjalerbron - has_title = title:d_ember_gultch - - } - } - play_music_cue = "mx_cue_combat_2" - } - } - option = { - name = freebooter_decisions.0002.a - } -} - -################################################## -# Forming the Blackwater Kingdom -################################################## -blackwater_decisions.0001 = { - type = character_event - title = blackwater_decisions.0001.t - desc = blackwater_decisions.0001.desc - theme = realm - left_portrait = { - character = scope:founder - animation = personality_bold - } - - immediate = { - play_music_cue = "mx_cue_epic_sacral_moment" - create_blackwater_kingdom_scripted_effect = yes - } - option = { - name = blackwater_decisions.0001.a - spawn_pirate_troops_effect = yes - - # Send narrative fluff to other players (if any). - every_player = { - limit = { - NOT = { this = scope:founder } - } - trigger_event = blackwater_decisions.0002 - days = 1 - } - } -} - -blackwater_decisions.0002 = { - type = character_event - title = blackwater_decisions.0001.t - desc = { - first_valid = { - # Kul Tiran's reaction. - triggered_desc = { - trigger = { - OR = { - #Kul Tirans - has_title = title:e_kul_tiras - has_title = title:k_kul_tiras - - #Trade Coalition - has_title = title:e_trade_coalition - - #Surrounding Area - has_title = title:d_zulkanda - has_title = title:d_zulmamwe - has_title = title:d_zulgurub - } - } - desc = blackwater_decisions.0002.desc.challenge - } - # Everybody else's. - #triggered_desc = { - # desc = blackwater_decisions.0002.desc.world - #} - } - } - theme = realm - left_portrait = { - character = scope:founder - animation = personality_bold - } - right_portrait = { - character = scope:root - animation = shock - } - - immediate = { - if = { - limit = { - OR = { - #Kul Tirans - has_title = title:e_kul_tiras - has_title = title:k_kul_tiras - - #Trade Coalition - has_title = title:e_trade_coalition - - #Surrounding Area - has_title = title:d_zulkanda - has_title = title:d_zulmamwe - has_title = title:d_zulgurub - } - } - play_music_cue = "mx_cue_combat_2" - } - } - option = { - name = blackwater_decisions.0002.a - } -} \ No newline at end of file