Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework Pirates #1129

Closed
wants to merge 12 commits into from
277 changes: 277 additions & 0 deletions common/decisions/wc_major_pirate_decisions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,277 @@
#Create Bloodsail Kingdom
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
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
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
OR = {
culture = culture:blackwater
culture = culture:pirate_culture
culture = culture:northsea
}
}

completely_controls = title:d_hiji
completely_controls = title:d_jinkalak
completely_controls = title:d_plunder_isle
completely_controls = title:d_whispering_reef

has_realm_law = crown_authority_1

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_bloodsail_kingdom_decision_effect_tooltip
save_scope_as = founder
show_as_tooltip = {
create_bloodsail_kingdom_scripted_effect = yes
}
trigger_event = {
id = bloodsail_decisions.0001
#Event should give player Kingdom 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
}
}
#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
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
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
OR = {
culture = culture:blackwater
culture = culture:pirate_culture
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_1

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
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
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
OR = {
culture = culture:blackwater
culture = culture:pirate_culture
culture = culture:northsea
}
}

completely_controls = title:d_booty_bay
completely_controls = title:d_cape_of_stranglethorn
completely_controls = title:d_ludei

has_realm_law = crown_authority_1

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
}
}
39 changes: 39 additions & 0 deletions common/landed_titles/wc_titular_titles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -933,4 +933,43 @@ 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

ignore_titularity_for_title_weighting = yes
ai_primary_priority = {
add = @always_primary_score
}
}
k_bloodsail_kingdom = {
color={ 201 19 19 }

capital = c_dael_tiras

definite_form = yes
can_be_named_after_dynasty = no

ignore_titularity_for_title_weighting = yes
ai_primary_priority = {
add = @always_primary_score
}
}
k_freebooter_kingdom = {
color={ 43 113 252 }

capital = c_sorlofs_strand

definite_form = yes
can_be_named_after_dynasty = no

ignore_titularity_for_title_weighting = yes
ai_primary_priority = {
add = @always_primary_score
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ declare_bloodline_holy_decision_effect = {
# }
# }
# }
# }
# }
Loading
Loading