This commit is contained in:
Heidesommer 2026-05-26 20:19:17 -04:00
parent 182a9f6a50
commit 807eea6477
11 changed files with 1803 additions and 1792 deletions

View file

@ -1268,313 +1268,313 @@
# }
#}
#
###################################
# Build Pilgrim Roads
# By Hugo Cortell
###################################
### Build Pilgrim Roads ###
build_holy_pilgrim_roads_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/fp2_decision_struggle_opening.dds"
}
sort_order = 300
decision_group_type = struggle
is_shown = {
faith = {
any_holy_site = {
holder.top_liege = root
count > 0
}
}
any_character_struggle = {
involvement = involved
has_struggle_phase_parameter = unlocks_build_pilgrim_roads_decision
}
}
is_valid = {
custom_tooltip = {
text = build_holy_pilgrim_roads_decision_hardcoded_trigger_text.a
faith = {
any_holy_site = {
holder.top_liege = root
NOT = { county = { has_county_modifier = fp2_pilgrim_roads_modifier } }
count > 0
}
}
}
}
effect = {
hidden_effect = {
faith = {
random_holy_site = {
limit = {
holder.top_liege = root
NOT = { county = { has_county_modifier = fp2_pilgrim_roads_modifier } }
}
save_scope_as = chosen_holy_site_for_pilgrim_roads
county = {
save_scope_as = chosen_location_for_pilgrim_roads
add_county_modifier = {
modifier = fp2_pilgrim_roads_modifier
years = 50
}
}
}
}
}
send_interface_toast = {
type = event_toast_effect_good
title = build_holy_pilgrim_roads_decision_construction_notif.t
desc = build_holy_pilgrim_roads_decision_construction_notif.desc
add_piety = major_piety_gain
show_as_tooltip = {
scope:chosen_location_for_pilgrim_roads = {
add_county_modifier = {
modifier = fp2_pilgrim_roads_modifier
years = 50
}
}
}
}
if = { # QA QoL
limit = { debug_only = yes }
custom_tooltip = debug_generic_option_shortened_trigger_can_disable
hidden_effect = {
random_list = {
1 = {
trigger_event = {
id = iberia_north_africa.2011
days = 4
}
}
1 = {
trigger_event = {
id = iberia_north_africa.2012
days = 4
}
}
1 = {
trigger_event = {
id = iberia_north_africa.2013
days = 4
}
}
}
}
}
else = {
hidden_effect = {
random_list = {
1 = {
trigger_event = {
id = iberia_north_africa.2011
days = { 32 2048 }
}
}
1 = {
trigger_event = {
id = iberia_north_africa.2012
days = { 32 2048 }
}
}
1 = {
trigger_event = {
id = iberia_north_africa.2013
days = { 32 2048 }
}
}
}
}
}
}
cost = {
gold = {
value = 0
if = {
limit = {
has_treasury = no
}
add = massive_gold_value
}
}
treasury = {
value = 0
if = {
limit = {
has_treasury = yes
}
add = massive_gold_value
}
}
}
ai_check_interval_by_tier = {
barony = 0
county = 730
duchy = 730
kingdom = 730
empire = 730
hegemony = 730
}
ai_potential = {}
ai_will_do = {
base = 50
modifier = {
add = learning
always = yes
}
modifier = {
add = -50
has_trait = cynical
}
modifier = {
add = 10
has_trait = zealous
}
modifier = {
add = -40
short_term_gold < massive_gold_value
}
}
}
#############################################
# Found Kingdom of Toledo
# by Joe Parkin
#############################################
### Found Kingdom Toledo Decision ###
found_kingdom_toledo_decision = {
title = found_kingdom_toledo_decision_title
picture = {
reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds"
}
desc = found_kingdom_toledo_decision_desc
selection_tooltip = found_kingdom_toledo_decision_tooltip
sort_order = 80
decision_group_type = major
is_shown = {
# DLC check
has_fp2_dlc_trigger = yes
culture = { has_cultural_pillar = heritage_iberian }
faith = {
portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church }
}
NOT = {
is_target_in_global_variable_list = {
name = unavailable_unique_decisions
target = flag:form_toledo_decision
}
}
title:e_spain = {
any_in_de_jure_hierarchy = {
any_title_to_title_neighboring_and_across_water_duchy = { this = title:d_toledo }
de_jure_liege = {
any_in_de_jure_hierarchy = {
count > 2
tier = tier_duchy
}
}
}
}
}
is_valid = {
top_liege = this
custom_tooltip = {
text = found_kingdom_toledo_capital_tt
capital_county = title:c_toledo
}
custom_tooltip = {
text = found_kingdom_toledo_culture_tt
culture = { has_cultural_pillar = heritage_iberian }
}
custom_tooltip = {
text = found_kingdom_toledo_faith_tt
faith = {
portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church }
}
}
completely_controls = title:d_toledo
custom_tooltip = {
text = found_kingdom_toledo_duchy_tt
any_held_title = {
title_tier = duchy
is_titular = no
NOT = { this = title:d_toledo }
root = { completely_controls = prev }
any_title_to_title_neighboring_and_across_water_duchy = { this = title:d_toledo }
}
}
}
is_valid_showing_failures_only = {
is_landed = yes
}
cost = {
gold = {
value = 0
if = {
limit = {
has_treasury = no
}
add = 250
}
}
treasury = {
value = 0
if = {
limit = {
has_treasury = yes
}
add = 250
}
}
}
effect = {
save_scope_as = toledo_former
gain_heroic_legend_seed_tooltip_effect = yes
fp2_struggle_found_kingdom_toledo_empire_effect = yes
save_scope_value_as = {
name = has_kingdom_toledo_absorb_list_been_created
value = yes
}
trigger_event = fp2_other_decisions.1100
#Can only happen once
add_to_global_variable_list = {
name = unavailable_unique_decisions
target = flag:form_toledo_decision
}
set_global_variable = {
name = form_toledo_decision
value = scope:toledo_former
}
}
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 120
kingdom = 120
empire = 120
hegemony = 120
}
ai_potential = {}
ai_will_do = {
base = 100
}
}
####################################
## Build Pilgrim Roads
## By Hugo Cortell
####################################
#### Build Pilgrim Roads ###
#build_holy_pilgrim_roads_decision = {
# picture = {
# reference = "gfx/interface/illustrations/decisions/fp2_decision_struggle_opening.dds"
# }
# sort_order = 300
# decision_group_type = struggle
#
# is_shown = {
# faith = {
# any_holy_site = {
# holder.top_liege = root
# count > 0
# }
# }
# any_character_struggle = {
# involvement = involved
# has_struggle_phase_parameter = unlocks_build_pilgrim_roads_decision
# }
# }
#
# is_valid = {
# custom_tooltip = {
# text = build_holy_pilgrim_roads_decision_hardcoded_trigger_text.a
# faith = {
# any_holy_site = {
# holder.top_liege = root
# NOT = { county = { has_county_modifier = fp2_pilgrim_roads_modifier } }
# count > 0
# }
# }
# }
# }
#
# effect = {
# hidden_effect = {
# faith = {
# random_holy_site = {
# limit = {
# holder.top_liege = root
# NOT = { county = { has_county_modifier = fp2_pilgrim_roads_modifier } }
# }
# save_scope_as = chosen_holy_site_for_pilgrim_roads
# county = {
# save_scope_as = chosen_location_for_pilgrim_roads
# add_county_modifier = {
# modifier = fp2_pilgrim_roads_modifier
# years = 50
# }
# }
# }
# }
# }
# send_interface_toast = {
# type = event_toast_effect_good
# title = build_holy_pilgrim_roads_decision_construction_notif.t
# desc = build_holy_pilgrim_roads_decision_construction_notif.desc
#
# add_piety = major_piety_gain
# show_as_tooltip = {
# scope:chosen_location_for_pilgrim_roads = {
# add_county_modifier = {
# modifier = fp2_pilgrim_roads_modifier
# years = 50
# }
# }
# }
# }
#
# if = { # QA QoL
# limit = { debug_only = yes }
# custom_tooltip = debug_generic_option_shortened_trigger_can_disable
# hidden_effect = {
# random_list = {
# 1 = {
# trigger_event = {
# id = iberia_north_africa.2011
# days = 4
# }
# }
# 1 = {
# trigger_event = {
# id = iberia_north_africa.2012
# days = 4
# }
# }
# 1 = {
# trigger_event = {
# id = iberia_north_africa.2013
# days = 4
# }
# }
# }
# }
# }
# else = {
# hidden_effect = {
# random_list = {
# 1 = {
# trigger_event = {
# id = iberia_north_africa.2011
# days = { 32 2048 }
# }
# }
# 1 = {
# trigger_event = {
# id = iberia_north_africa.2012
# days = { 32 2048 }
# }
# }
# 1 = {
# trigger_event = {
# id = iberia_north_africa.2013
# days = { 32 2048 }
# }
# }
# }
# }
# }
# }
#
# cost = {
# gold = {
# value = 0
# if = {
# limit = {
# has_treasury = no
# }
# add = massive_gold_value
# }
# }
# treasury = {
# value = 0
# if = {
# limit = {
# has_treasury = yes
# }
# add = massive_gold_value
# }
# }
# }
#
# ai_check_interval_by_tier = {
# barony = 0
# county = 730
# duchy = 730
# kingdom = 730
# empire = 730
# hegemony = 730
# }
# ai_potential = {}
# ai_will_do = {
# base = 50
# modifier = {
# add = learning
# always = yes
# }
# modifier = {
# add = -50
# has_trait = cynical
# }
# modifier = {
# add = 10
# has_trait = zealous
# }
# modifier = {
# add = -40
# short_term_gold < massive_gold_value
# }
# }
#}
#
##############################################
## Found Kingdom of Toledo
## by Joe Parkin
##############################################
#### Found Kingdom Toledo Decision ###
#found_kingdom_toledo_decision = {
# title = found_kingdom_toledo_decision_title
# picture = {
# reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds"
# }
# desc = found_kingdom_toledo_decision_desc
# selection_tooltip = found_kingdom_toledo_decision_tooltip
# sort_order = 80
#
# decision_group_type = major
#
# is_shown = {
# # DLC check
# has_fp2_dlc_trigger = yes
# culture = { has_cultural_pillar = heritage_iberian }
# faith = {
# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church }
# }
# NOT = {
# is_target_in_global_variable_list = {
# name = unavailable_unique_decisions
# target = flag:form_toledo_decision
# }
# }
# title:e_spain = {
# any_in_de_jure_hierarchy = {
# any_title_to_title_neighboring_and_across_water_duchy = { this = title:d_toledo }
# de_jure_liege = {
# any_in_de_jure_hierarchy = {
# count > 2
# tier = tier_duchy
# }
# }
# }
# }
# }
#
# is_valid = {
# top_liege = this
# custom_tooltip = {
# text = found_kingdom_toledo_capital_tt
# capital_county = title:c_toledo
# }
# custom_tooltip = {
# text = found_kingdom_toledo_culture_tt
# culture = { has_cultural_pillar = heritage_iberian }
# }
# custom_tooltip = {
# text = found_kingdom_toledo_faith_tt
# faith = {
# portrait_religious_faith_or_foundational_trigger = { FAITH = faith:mozarabic_church }
# }
# }
# completely_controls = title:d_toledo
# custom_tooltip = {
# text = found_kingdom_toledo_duchy_tt
# any_held_title = {
# title_tier = duchy
# is_titular = no
# NOT = { this = title:d_toledo }
# root = { completely_controls = prev }
# any_title_to_title_neighboring_and_across_water_duchy = { this = title:d_toledo }
# }
# }
# }
#
# is_valid_showing_failures_only = {
# is_landed = yes
# }
#
# cost = {
# gold = {
# value = 0
# if = {
# limit = {
# has_treasury = no
# }
# add = 250
# }
# }
# treasury = {
# value = 0
# if = {
# limit = {
# has_treasury = yes
# }
# add = 250
# }
# }
# }
#
# effect = {
# save_scope_as = toledo_former
# gain_heroic_legend_seed_tooltip_effect = yes
# fp2_struggle_found_kingdom_toledo_empire_effect = yes
# save_scope_value_as = {
# name = has_kingdom_toledo_absorb_list_been_created
# value = yes
# }
# trigger_event = fp2_other_decisions.1100
# #Can only happen once
# add_to_global_variable_list = {
# name = unavailable_unique_decisions
# target = flag:form_toledo_decision
# }
# set_global_variable = {
# name = form_toledo_decision
# value = scope:toledo_former
# }
# }
# ai_check_interval_by_tier = {
# barony = 0
# county = 0
# duchy = 120
# kingdom = 120
# empire = 120
# hegemony = 120
# }
#
# ai_potential = {}
#
# ai_will_do = {
# base = 100
# }
#}
#
#############################################
# Develop a city
# by Maxence Voleau