Poland-Lithuania basics

This commit is contained in:
Heidesommer 2026-06-07 10:42:52 -04:00
parent beddbc5407
commit d706620272
5 changed files with 430 additions and 28 deletions

View file

@ -0,0 +1,323 @@
#european_union
#rhineland
#restore_austria_hungary_decision = {
# picture = {
# reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds"
# }
# desc = restore_austria_hungary_decision_desc
# selection_tooltip = restore_austria_hungary_decision_tooltip
# decision_group_type = major
#
# ai_check_interval_by_tier = {
# barony = 0
# county = 0
# duchy = 0
# kingdom = 120
# empire = 120
# hegemony = 0
# }
#
# is_shown = {
# is_ruler = yes
# is_playable_character = yes
# NOT = {
# is_target_in_global_variable_list = {
# name = unavailable_unique_decisions
# target = flag:flag_restored_austria_hungary
# }
# }
# OR = {
# }
# }
#
# is_valid = {
# NOT = { has_title = title:e_europa }
# has_title = title:k_austria
# has_title = title:k_hungary
# completely_controls_region = custom_alpine_france
# }
#
# is_valid_showing_failures_only = {
# is_landed = yes
# is_capable_adult = yes
# is_imprisoned = no
# top_liege = this
# is_at_war = no
# }
#
# effect = {
# custom_tooltip = restore_austria_hungary_decision_effect_tooltip
# show_as_tooltip = {
# restore_austria_hungary_decision_effect = yes
# }
# hidden_effect = {
# restore_austria_hungary_decision_effect
# add_to_global_variable_list = {
# name = unavailable_unique_decisions
# target = flag:flag_restored_austria_hungary
# }
# set_global_variable = {
# name = flag_restored_austria_hungary
# value = root
# }
# }
# }
#
# ai_potential = {
# always = yes
# }
#
# ai_will_do = {
# base = 100
# }
#}
restore_poland_lithuania_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds"
}
desc = restore_poland_lithuania_decision_desc
selection_tooltip = restore_poland_lithuania_tooltip
decision_group_type = major
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 120
empire = 120
hegemony = 0
}
is_shown = {
is_ruler = yes
is_playable_character = yes
OR = {
has_title = title:k_poland
has_title = title:k_lithuania
}
NOT = {
is_target_in_global_variable_list = {
name = unavailable_unique_decisions
target = flag:flag_restored_poland_lithuania
}
}
NEOW_religion_is_broadly_christian_trigger = yes
}
is_valid = {
has_title = title:k_poland
has_title = title:k_lithuania
prestige_level >= 3
}
is_valid_showing_failures_only = {
is_landed = yes
is_capable_adult = yes
is_imprisoned = no
top_liege = this
is_at_war = no
}
effect = {
custom_tooltip = restore_poland_lithuania_decision_effect_tooltip
show_as_tooltip = {
restore_poland_lithuania_decision_effect = yes
}
hidden_effect = {
restore_poland_lithuania_decision_effect = yes
add_to_global_variable_list = {
name = unavailable_unique_decisions
target = flag:flag_restored_poland_lithuania
}
set_global_variable = {
name = flag_restored_poland_lithuania
value = root
}
}
}
ai_potential = {
always = yes
}
ai_will_do = {
base = 100
}
}
restore_poland_lithuania_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds"
}
desc = restore_poland_lithuania_decision_desc
selection_tooltip = restore_poland_lithuania_tooltip
decision_group_type = major
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 120
empire = 120
hegemony = 0
}
is_shown = {
is_ruler = yes
is_playable_character = yes
OR = {
has_title = title:k_poland
has_title = title:k_lithuania
}
NOT = {
is_target_in_global_variable_list = {
name = unavailable_unique_decisions
target = flag:flag_restored_poland_lithuania
}
}
NEOW_religion_is_broadly_christian_trigger = yes
}
is_valid = {
has_title = title:k_poland
has_title = title:k_lithuania
prestige_level >= 3
}
is_valid_showing_failures_only = {
is_landed = yes
is_capable_adult = yes
is_imprisoned = no
top_liege = this
is_at_war = no
}
effect = {
custom_tooltip = restore_poland_lithuania_decision_effect_tooltip
show_as_tooltip = {
restore_poland_lithuania_decision_effect = yes
}
hidden_effect = {
restore_poland_lithuania_decision_effect = yes
add_to_global_variable_list = {
name = unavailable_unique_decisions
target = flag:flag_restored_poland_lithuania
}
set_global_variable = {
name = flag_restored_poland_lithuania
value = root
}
}
}
ai_potential = {
always = yes
}
ai_will_do = {
base = 100
}
}
restore_polish_borders_decision = {
decision_group_type = major
is_shown = {
has_title = title:k_poland
is_ruler = yes
is_playable_character = yes
NOR = {
title:k_poland = { OR = { is_de_jure_liege_or_above_target = title:d_lower_silesia is_de_jure_liege_or_above_target = title:d_upper_silesia } }
title:k_poland = { is_de_jure_liege_or_above_target = title:d_lesser_poland }
title:k_poland = { is_de_jure_liege_or_above_target = title:d_podkarpackie }
title:k_poland = { is_de_jure_liege_or_above_target = title:d_masuria }
}
}
is_valid = {
custom_tooltip = {
text = restore_polish_borders_decision_tt
OR = {
AND = { OR = { has_title = title:k_silesia completely_controls = title:k_silesia } NOT = { title:k_poland = { OR = { is_de_jure_liege_or_above_target = title:d_lower_silesia is_de_jure_liege_or_above_target = title:d_upper_silesia } } } }
AND = { OR = { has_title = title:d_lesser_poland completely_controls = title:d_lesser_poland } NOT = { title:k_poland = { is_de_jure_liege_or_above_target = title:d_lesser_poland } } }
AND = { OR = { has_title = title:d_podkarpackie completely_controls = title:d_podkarpackie } NOT = { title:k_poland = { is_de_jure_liege_or_above_target = title:d_podkarpackie} } }
AND = { OR = { has_title = title:d_masuria completely_controls = title:d_masuria } NOT = { title:k_poland = { is_de_jure_liege_or_above_target = title:d_masuria } } }
}
}
}
is_valid_showing_failures_only = {
is_landed = yes
is_capable_adult = yes
is_imprisoned = no
top_liege = this
is_at_war = no
}
picture = {
reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
}
widget = {
gui = "decision_view_widget_option_list_generic"
controller = decision_option_list_controller
decision_to_second_step_button = "restore_polish_borders_decision_confirm"
show_from_start = yes
item = {
value = restore_polish_borders_silesia
is_valid = { custom_tooltip = { text = restore_polish_borders_silesia_custom OR = { has_title = title:k_silesia completely_controls = title:k_silesia } NOT = { title:k_poland = { OR = { is_de_jure_liege_or_above_target = title:d_lower_silesia is_de_jure_liege_or_above_target = title:d_upper_silesia } } } } }
localization = restore_polish_borders_silesia
icon = "gfx/interface/icons/message_feed/activity.dds"
ai_chance = { value = 100 }
}
item = {
value = restore_polish_borders_lesser_poland
is_valid = { custom_tooltip = { text = restore_polish_borders_lesser_poland_custom OR = { has_title = title:d_lesser_poland completely_controls = title:d_lesser_poland } NOT = { title:k_poland = { is_de_jure_liege_or_above_target = title:d_lesser_poland } } } }
localization = restore_polish_borders_lesser_poland
icon = "gfx/interface/icons/message_feed/activity.dds"
ai_chance = { value = 100 }
}
item = {
value = restore_polish_borders_podkarpackie
is_valid = { custom_tooltip = { text = restore_polish_borders_podkarpackie_custom OR = { has_title = title:d_podkarpackie completely_controls = title:d_podkarpackie } NOT = { title:k_poland = { is_de_jure_liege_or_above_target = title:d_podkarpackie} } } }
localization = restore_polish_borders_podkarpackie
icon = "gfx/interface/icons/message_feed/activity.dds"
ai_chance = { value = 100 }
}
item = {
value = restore_polish_borders_masuria
is_valid = { custom_tooltip = { text = restore_polish_borders_masuria_custom OR = { has_title = title:d_masuria completely_controls = title:d_masuria } NOT = { title:k_poland = { is_de_jure_liege_or_above_target = title:d_masuria } } } }
localization = restore_polish_borders_masuria
icon = "gfx/interface/icons/message_feed/activity.dds"
ai_chance = { value = 100 }
}
}
effect = {
if = {
limit = { scope:restore_polish_borders_silesia = yes }
if = {
limit = { exists = title:k_silesia }
destroy_title = title:k_silesia
}
title:d_lower_silesia = { set_de_jure_liege_title = title:k_poland }
title:d_upper_silesia = { set_de_jure_liege_title = title:k_poland }
}
if = {
limit = { scope:restore_polish_borders_lesser_poland = yes }
title:d_lesser_poland = { set_de_jure_liege_title = title:k_poland }
}
if = {
limit = { scope:restore_polish_borders_podkarpackie = yes }
title:d_podkarpackie = { set_de_jure_liege_title = title:k_poland }
}
if = {
limit = { scope:restore_polish_borders_masuria = yes }
title:d_masuria = { set_de_jure_liege_title = title:k_poland }
}
}
ai_check_interval = 0
}

View file

@ -34,34 +34,44 @@ e_sweden = {
# capital = c_brabant # Brussels
#}
d_wisentland = {
color = { 127 255 255 }
}
d_bundesreich = {
color = { 209 5 20 }
}
d_luthermannien = {
color = { 46 142 243 }
}
d_tauben = {
color = { 255 255 255 }
}
d_toterpapsten = {
color = { 95 206 204 }
}
d_arminien = {
color = { 127 106 0 }
}
d_neddersassen = {
color = { 156 18 16 }
}
#d_wisentland = {
# color = { 127 255 255 }
#}
#
#d_bundesreich = {
# color = { 209 5 20 }
#}
#
#d_luthermannien = {
# color = { 46 142 243 }
#}
#
#d_tauben = {
# color = { 255 255 255 }
#}
#
#d_toterpapsten = {
# color = { 95 206 204 }
#}
#
#d_arminien = {
# color = { 127 106 0 }
#}
#
#d_neddersassen = {
# color = { 156 18 16 }
#}
k_gwynedd = {
color = { 1 146 1 }
}
e_poland_lithuania = {
color = { 180 30 110 }
capital = c_warsaw
ai_primary_priority = {
add = @always_primary_score
}
}

View file

@ -0,0 +1,22 @@
restore_poland_lithuania_decision_effect = {
add_prestige = massive_prestige_gain
add_piety = massive_piety_gain
save_scope_as = scoped_ruler
create_title_and_vassal_change = {
type = created
save_scope_as = change
add_claim_on_loss = no
}
title:e_poland_lithuania = {
change_title_holder = {
holder = scope:scoped_ruler
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
hidden_effect = {
set_primary_title_to = title:e_poland_lithuania
title:k_poland = { set_de_jure_liege_title = title:e_poland_lithuania }
title:k_lithuania = { set_de_jure_liege_title = title:e_poland_lithuania }
}
}