more file updating

This commit is contained in:
Thakia 2026-10-09 20:41:46 -03:00
parent 4afc9466f5
commit fde59745b8
99 changed files with 5706 additions and 2115 deletions

View file

@ -15,4 +15,12 @@ key = {
#
# use add_to_list = provinces to return which provinces are valid
build_province_list = {}
# Optional, effect run when this POI is added to / removed from a province.
# keep effects local to the province and do NOT make changes to global gamestate
# scopes:
# root: the province. Use to cache data for localization so it survives later state changes
#
on_added = {}
on_removed = {}
}

View file

@ -175,96 +175,7 @@ poi_capitals = {
}
every_courtier = {
hidden_effect = {
scope:province.barony.holder = {
if = {
limit = {
has_royal_court = yes
has_court_type = court_diplomatic
}
prev = {
add_diplomacy_skill = 1
force_character_skill_recalculation = yes
}
}
else_if = {
limit = {
has_royal_court = yes
has_court_type = court_warlike
}
prev = {
add_martial_skill = 1
force_character_skill_recalculation = yes
}
}
else_if = {
limit = {
has_royal_court = yes
has_court_type = court_administrative
}
prev = {
add_stewardship_skill = 1
force_character_skill_recalculation = yes
}
}
else_if = {
limit = {
has_royal_court = yes
has_court_type = court_intrigue
}
prev = {
add_intrigue_skill = 1
force_character_skill_recalculation = yes
}
}
else_if = {
limit = {
has_royal_court = yes
has_court_type = court_scholarly
}
prev = {
add_learning_skill = 1
force_character_skill_recalculation = yes
}
}
else_if = {
limit = {
has_royal_court = yes
OR = {
has_court_type = court_tribal
has_court_type = court_nomadic
}
}
prev = {
add_prowess_skill = 1
force_character_skill_recalculation = yes
}
}
else = {
prev = {
random_list = {
1 = {
add_prowess_skill = 1
}
1 = {
add_learning_skill = 1
}
1 = {
add_intrigue_skill = 1
}
1 = {
add_stewardship_skill = 1
}
1 = {
add_martial_skill = 1
}
1 = {
add_diplomacy_skill = 1
}
}
force_character_skill_recalculation = yes
}
}
}
local_court_type_skill_point_effect = { PROVINCE = scope:province }
}
}
}
@ -437,6 +348,15 @@ poi_special_buildings_religious = {
}
}
add_piety = point_of_interest_piety_value
if = { # Bonuses from Zeal Phases
limit = {
top_participant_group:the_christian_church ?= {
has_participant_group_parameter = the_christian_church_holy_site_poi_bonus
}
}
add_poi_learning_experience_effect = yes
add_scholar_trait_or_xp_effect = { VALUE = 10 }
}
}
# Prestige for Wanderers
@ -468,7 +388,167 @@ poi_special_buildings_religious = {
has_perk = church_and_state_perk
has_government = landless_adventurer_government
}
add_piety = major_piety_gain
add_piety = adventurer_church_and_state_perk_value
}
}
visiting_poi_effect = yes
}
}
# Holy sites with an enshrined artifact but no religious POI building
poi_standalone_holy_site = {
build_province_list = {
every_religion_global = {
every_faith = {
limit = {
num_county_followers > 0
}
every_holy_site = {
limit = {
holy_site_has_artifact = yes
holy_site_barony.title_province ?= {
NOT = { has_building_with_flag = { flag = travel_point_of_interest_religious } }
}
}
holy_site_barony.title_province ?= { add_to_list = provinces }
}
}
}
}
# Remember which holy site caused this POI to be generated, so localization does not break if that site later goes inactive
on_added = {
barony ?= {
random_barony_holy_site = {
limit = {
holy_site_has_artifact = yes
any_holy_site_faith = { num_county_followers > 0 }
}
save_scope_as = poi_holy_site
random_holy_site_faith = {
limit = {
num_county_followers > 0
}
save_scope_as = poi_holy_site_faith
}
}
}
if = {
limit = {
exists = scope:poi_holy_site
exists = scope:poi_holy_site_faith
}
set_variable = {
name = poi_standalone_holy_site
value = scope:poi_holy_site
}
set_variable = {
name = poi_standalone_holy_site_faith
value = scope:poi_holy_site_faith
}
}
}
on_removed = {
if = {
limit = {
has_variable = poi_standalone_holy_site
has_variable = poi_standalone_holy_site_faith
}
remove_variable = poi_standalone_holy_site
remove_variable = poi_standalone_holy_site_faith
}
}
on_visit = {
send_interface_toast = {
title = poi_standalone_holy_site.visit
left_icon = root
add_poi_learning_experience_effect_minor = yes
if = {
limit = {
scope:province.barony ?= {
is_holy_site_of = root.faith
}
}
scope:province.barony = {
random_barony_holy_site = {
limit = { any_holy_site_faith = { this = root.faith } }
save_scope_as = holy_site
}
}
if = { # Regular Holy Site
limit = {
exists = scope:holy_site
root.faith = {
is_faith_holy_site = scope:holy_site
NOT = { is_faith_eminent_holy_site = scope:holy_site }
}
}
add_piety = point_of_interest_minor_piety_value
if = { # Bonuses from Zeal Phases
limit = {
top_participant_group:the_christian_church ?= {
has_participant_group_parameter = the_christian_church_holy_site_poi_bonus
}
}
add_poi_learning_experience_effect_minor = yes
add_scholar_trait_or_xp_effect = { VALUE = 5 }
}
}
if = { # Eminent Holy Site
limit = {
exists = scope:holy_site
root.faith = {
is_faith_eminent_holy_site = scope:holy_site
}
}
add_piety = point_of_interest_piety_value
if = { # Bonuses from Zeal Phases
limit = {
top_participant_group:the_christian_church ?= {
has_participant_group_parameter = the_christian_church_holy_site_poi_bonus
}
}
add_poi_learning_experience_effect = yes
add_scholar_trait_or_xp_effect = { VALUE = 10 }
}
}
}
# Prestige for Wanderers
wanderer_lifestyle_destination_effect = yes
if = {
limit = {
has_trait = lifestyle_mystic
}
add_trait_xp = {
trait = lifestyle_mystic
value = lifestyle_mystic_xp_gain_minor_value
}
}
traveler_travel_xp_effect = {
MIN = 3
MAX = 5
}
if = {
limit = {
has_government = landless_adventurer_government
has_perk = organized_muster_rolls_perk
}
add_gold = see_how_its_done_gold_reward_value
}
if = {
limit = {
has_perk = church_and_state_perk
has_government = landless_adventurer_government
}
add_piety = adventurer_church_and_state_perk_value
}
}
@ -552,7 +632,7 @@ poi_grand_city = {
title = poi_grand_city.visit
left_icon = root
add_gold = minor_gold_laamps_value
add_gold = see_how_its_done_gold_reward_value
}
}
}
@ -570,7 +650,7 @@ poi_grand_city = {
has_government = landless_adventurer_government
has_perk = organized_muster_rolls_perk
}
add_gold = minor_gold_laamps_value
add_gold = see_how_its_done_gold_reward_value
}
}
}
@ -733,7 +813,7 @@ poi_natural_feature = {
title = poi_natural_feature.visit
left_icon = root
add_poi_wanderer_experience_effect = yes
stress_impact = { base = minor_stress_impact_loss }
stress_and_fulfillment_impact = { base = minor_stress_impact_loss }
if = {
limit = {
@ -754,7 +834,7 @@ poi_natural_feature = {
has_government = landless_adventurer_government
has_perk = organized_muster_rolls_perk
}
add_gold = minor_gold_laamps_value
add_gold = see_how_its_done_gold_reward_value
}
}
}
@ -771,7 +851,7 @@ poi_natural_feature = {
has_government = landless_adventurer_government
has_perk = organized_muster_rolls_perk
}
add_gold = minor_gold_laamps_value
add_gold = see_how_its_done_gold_reward_value
}
}
}
@ -839,10 +919,8 @@ poi_battles = {
}
on_visit = {
send_interface_toast = {
title = poi_battles.visit
left_icon = root
# keep tooltip and result consistent
show_as_tooltip = {
if = {
limit = {
OR = {
@ -861,50 +939,117 @@ poi_battles = {
# Prestige for Wanderers
wanderer_lifestyle_destination_effect = yes
}
if = {
limit = {
NOR = {
has_variable = battle_poi_trait_gained
number_of_commander_traits > 1
random_list = {
80 = {
save_scope_value_as = {
name = poi_battles_bonus
value = flag:martial_xp
}
show_as_tooltip = {
add_poi_martial_experience_effect = yes
}
}
scope:province = {
random_list = {
80 = {
root = { add_poi_martial_experience_effect = yes }
}
20 = {
20 = {
save_scope_value_as = {
name = poi_battles_bonus
value = flag:trait
}
show_as_tooltip = {
scope:province = {
switch = {
trigger = terrain
forest = { battle_poi_trait_effect = { TRAIT = forest_fighter } }
taiga = { battle_poi_trait_effect = { TRAIT = forest_fighter } }
farmlands = { battle_poi_trait_effect = { TRAIT = open_terrain_expert } }
plains = { battle_poi_trait_effect = { TRAIT = open_terrain_expert } }
steppe = { battle_poi_trait_effect = { TRAIT = open_terrain_expert } }
hills = { battle_poi_trait_effect = { TRAIT = rough_terrain_expert } }
mountains = { battle_poi_trait_effect = { TRAIT = rough_terrain_expert } }
wetlands = { battle_poi_trait_effect = { TRAIT = rough_terrain_expert } }
drylands = { battle_poi_trait_effect = { TRAIT = desert_warrior } }
desert = { battle_poi_trait_effect = { TRAIT = desert_warrior } }
desert_mountains = { battle_poi_trait_effect = { TRAIT = desert_warrior } }
oasis = { battle_poi_trait_effect = { TRAIT = desert_warrior } }
jungle = { battle_poi_trait_effect = { TRAIT = jungle_stalker } }
floodplains = { battle_poi_trait_effect = { TRAIT = flexible_leader } }
}
root = {
set_variable = battle_poi_trait_gained
forest = { root = { add_trait = forest_fighter } }
taiga = { root = { add_trait = forest_fighter } }
farmlands = { root = { add_trait = open_terrain_expert } }
plains = { root = { add_trait = open_terrain_expert } }
steppe = { root = { add_trait = open_terrain_expert } }
hills = { root = { add_trait = rough_terrain_expert } }
mountains = { root = { add_trait = rough_terrain_expert } }
wetlands = { root = { add_trait = rough_terrain_expert } }
drylands = { root = { add_trait = desert_warrior } }
desert = { root = { add_trait = desert_warrior } }
desert_mountains = { root = { add_trait = desert_warrior } }
oasis = { root = { add_trait = desert_warrior } }
jungle = { root = { add_trait = jungle_stalker } }
floodplains = { root = { add_trait = flexible_leader } }
}
}
}
}
}
if = {
limit = { location = scope:province }
send_interface_toast = {
title = poi_battles.visit
left_icon = root
traveler_danger_xp_effect = {
MIN = 1
MAX = 3
if = {
limit = {
OR = {
has_variable = battle_poi_trait_gained
number_of_commander_traits > 1
}
}
add_poi_martial_experience_effect = yes
}
else = {
poi_lifestyle_experience_effect = {
LIFESTYLE = martial
VALUE = travel_minor_lifestyle_xp
}
}
if = {
limit = {
NOR = {
has_variable = battle_poi_trait_gained
number_of_commander_traits > 1
}
}
if = {
limit = {
scope:poi_battles_bonus = flag:martial_xp
}
add_poi_martial_experience_effect = yes
}
else_if = {
limit = {
scope:poi_battles_bonus = flag:trait
}
scope:province = {
switch = {
trigger = terrain
forest = { root = { add_trait = forest_fighter } }
taiga = { root = { add_trait = forest_fighter } }
farmlands = { root = { add_trait = open_terrain_expert } }
plains = { root = { add_trait = open_terrain_expert } }
steppe = { root = { add_trait = open_terrain_expert } }
hills = { root = { add_trait = rough_terrain_expert } }
mountains = { root = { add_trait = rough_terrain_expert } }
wetlands = { root = { add_trait = rough_terrain_expert } }
drylands = { root = { add_trait = desert_warrior } }
desert = { root = { add_trait = desert_warrior } }
desert_mountains = { root = { add_trait = desert_warrior } }
oasis = { root = { add_trait = desert_warrior } }
jungle = { root = { add_trait = jungle_stalker } }
floodplains = { root = { add_trait = flexible_leader } }
}
root = {
set_variable = battle_poi_trait_gained
}
}
}
}
traveler_danger_xp_effect = {
MIN = 1
MAX = 3
}
# Prestige for Wanderers
wanderer_lifestyle_destination_effect = yes
}
}
visiting_poi_effect = yes
}
}
@ -1018,10 +1163,8 @@ poi_battles_historical = {
}
on_visit = {
send_interface_toast = {
title = travel_point_historical_name_visit_message
left_icon = root
# keep tooltip and result consistent
show_as_tooltip = {
if = {
limit = {
OR = {
@ -1037,19 +1180,119 @@ poi_battles_historical = {
VALUE = travel_minor_lifestyle_xp
}
}
if = {
limit = {
NOR = {
has_variable = battle_poi_trait_gained
number_of_commander_traits > 1
}
random_list = {
80 = {
save_scope_value_as = {
name = poi_battles_historical_bonus
value = flag:martial_xp
}
show_as_tooltip = {
add_poi_martial_experience_effect = yes
}
}
20 = {
save_scope_value_as = {
name = poi_battles_historical_bonus
value = flag:trait
}
show_as_tooltip = {
scope:province = {
switch = {
trigger = this
# Tours
province:2253 = { root = { add_trait = unyielding_defender } }
# Lechfeld
province:2778 = { root = { add_trait = open_terrain_expert } }
# Hastings
province:1509 = { root = { add_trait = aggressive_attacker } }
# Stamford Bridge
province:1595 = { root = { add_trait = organizer } }
# Manzikert
province:701 = { root = { add_trait = flexible_leader } }
# Yarmuk
province:5954 = { root = { add_trait = reckless } }
# Dandanaqan
province:4008 = { root = { add_trait = desert_warrior } }
# Battle of Aror
province:1175 = { root = { add_trait = flexible_leader } }
# Battle of Svolder
province:2811 = { root = { add_trait = holy_warrior } }
# Battle of Civitate
province:2605 = { root = { add_trait = open_terrain_expert } }
# Battle of Talas
province:7132 = { root = { add_trait = desert_warrior } }
#Battle of Sufuku
province:10698 = { root = { add_trait = rough_terrain_expert } }
#Battle of Baekgang
province:9953 = { root = { add_trait = unyielding_defender } }
#Battle of Palembang
province:11296 = { root = { add_trait = flexible_leader } }
#Battle of Angkor
province:10816 = { root = { add_trait = reaver } }
#Battle of Songping
province:10861 = { root = { add_trait = reaver } }
#Battle of Muye
province:10355 = { root = { add_trait = aggressive_attacker } }
#Battle of Guandu
province:9820 = { root = { add_trait = flexible_leader } }
#Battle of Red Cliffs
province:8978 = { root = { add_trait = forder } }
#Battle of Yiling
province:10020 = { root = { add_trait = reckless } }
#Battle of Fei River
province:10249 = { root = { add_trait = unyielding_defender } }
#Battle of Canhe Slope
province:11715 = { root = { add_trait = organizer } }
#Battle of Xiangji Temple
province:10430 = { root = { add_trait = unyielding_defender } }
#Battle of Gaoliang River
province:9702 = { root = { add_trait = logistician } }
}
}
}
random_list = {
80 = {
}
}
send_interface_toast = {
title = travel_point_historical_name_visit_message
left_icon = root
if = {
limit = { location = scope:province }
if = {
limit = {
OR = {
has_variable = battle_poi_trait_gained
number_of_commander_traits > 1
}
}
add_poi_martial_experience_effect = yes
}
else = {
poi_lifestyle_experience_effect = {
LIFESTYLE = martial
VALUE = travel_minor_lifestyle_xp
}
}
if = {
limit = {
NOR = {
has_variable = battle_poi_trait_gained
number_of_commander_traits > 1
}
}
if = {
limit = {
scope:poi_battles_historical_bonus = flag:martial_xp
}
add_poi_martial_experience_effect = yes
}
20 = {
else_if = {
limit = {
scope:poi_battles_historical_bonus = flag:trait
}
scope:province = {
switch = {
trigger = this
@ -1138,7 +1381,7 @@ poi_special_buildings_stress_relief = {
left_icon = root
# Stress loss
stress_impact = {
stress_and_fulfillment_impact = {
base = -10
lazy = -5
content = -5
@ -1413,3 +1656,326 @@ poi_mandala_capital = {
visiting_poi_effect = yes
}
}
poi_grand_cathedral = {
build_province_list = {
every_in_global_list = {
variable = grand_cathedral_poi_list
limit = { has_building_with_flag = { flag = grand_cathedral_flag } }
add_to_list = provinces
}
}
on_visit = {
send_interface_toast = {
title = poi_grand_cathedral_visit
left_icon = root
if = {
limit = {
scope:province = {
exists = var:grand_cathedral_tier
var:grand_cathedral_tier >= 2
}
}
if = {
limit = { is_playable_character = yes } # Only playable characters have spiritual fulfillment
change_spiritual_fulfillment = minor_spiritual_fulfillment_value
}
add_piety = minor_piety_gain
}
#Christians get spiritual fulfillment and learning lifestyle xp from frescoes
if = {
limit = {
has_spiritual_fulfillment_type = christian_fulfillment
}
if = {
limit = {
scope:province = {
has_variable = cathedral_learning_xp
}
}
add_poi_learning_experience_effect_minor = yes
if = {
limit = {
is_playable_character = yes # Only playable characters have spiritual fulfillment
scope:province = {
exists = var:grand_cathedral_tier
var:grand_cathedral_tier >= 2
}
}
change_spiritual_fulfillment = major_spiritual_fulfillment_value
}
else_if = {
limit = { is_playable_character = yes }
change_spiritual_fulfillment = medium_spiritual_fulfillment_value
}
}
}
else = {
if = {
limit = {
scope:province = {
has_variable = cathedral_learning_xp
}
}
add_poi_learning_experience_effect = yes
}
else = {
add_poi_learning_experience_effect_minor = yes
}
}
#Variables set by frescoing the cathedral nicely
#Stress loss
if = {
limit = {
scope:province = {
has_variable = cathedral_stress_loss
}
}
stress_and_fulfillment_impact = { base = minor_stress_impact_loss }
}
if = {
limit = {
scope:province = {
has_variable = cathedral_glass_marian_light
}
}
stress_and_fulfillment_impact = { base = minor_stress_impact_loss }
if = {
limit = {
has_spiritual_fulfillment_type = christian_fulfillment
}
if = {
limit = {
is_playable_character = yes
has_personal_tenet = tenet_dulia
}
change_spiritual_fulfillment = major_spiritual_fulfillment_value
}
else_if = {
limit = { is_playable_character = yes }
change_spiritual_fulfillment = medium_spiritual_fulfillment_value
}
}
}
#Variables set by stained glass program
#Tree of Jesse dynasty prestige is reserved for the travel plan leader so it doesn't spam for every entourage member
if = {
limit = {
is_travel_leader = yes
scope:province = {
has_variable = cathedral_glass_tree_of_jesse
}
exists = dynasty
}
dynasty = {
add_dynasty_prestige = minor_dynasty_prestige_gain
}
}
if = {
limit = {
scope:province = {
has_variable = cathedral_glass_dynasty
}
}
add_prestige = minor_prestige_gain
}
if = {
limit = {
has_spiritual_fulfillment_type = christian_fulfillment
scope:province = {
has_variable = {
name = cathedral_glass_martyrdom
name = cathedral_glass_tree_of_jesse
name = cathedral_glass_dynasty
name = cathedral_glass_pilgrim
}
}
}
if = {
limit = { is_playable_character = yes }
change_spiritual_fulfillment = minor_spiritual_fulfillment_value
}
}
#Big piety from combined piety cathedral and holy site
if = {
limit = {
OR = {
scope:province = {
has_variable = cathedral_piety
}
scope:province = {
has_variable = cathedral_glass_martyrdom
}
scope:province.barony ?= {
is_holy_site_of = root.faith
}
}
}
add_piety = {
value = point_of_interest_piety_value
multiply = 2
}
}
#Regular piety
else_if = {
limit = {
scope:province = {
has_variable = cathedral_piety
barony ?= {
is_holy_site_of = root.faith
}
}
}
add_piety = point_of_interest_piety_value
}
#Pilgrim XP
if = {
limit = {
has_trait = pilgrim
scope:province = {
has_variable = cathedral_extended_nave
}
}
add_trait_xp = {
trait = pilgrim
value = {
value = pilgrim_xp_gain_minor_value
multiply = 2
}
}
add_piety = minor_piety_gain
}
else_if = {
limit = {
has_trait = pilgrim
scope:province = {
has_variable = cathedral_pilgrim_xp
}
}
add_trait_xp = {
trait = pilgrim
value = {
value = pilgrim_xp_gain_minor_value
multiply = 1.5
}
}
}
else_if = {
limit = {
has_trait = pilgrim
scope:province = {
has_variable = cathedral_glass_pilgrim
}
}
add_trait_xp = {
trait = pilgrim
value = {
value = pilgrim_xp_gain_minor_value
multiply = 2
}
}
add_piety = minor_piety_gain
}
#Scholar XP
if = {
limit = {
has_trait = lifestyle_scholar
scope:province = {
has_variable = cathedral_scholar_xp
}
}
add_trait_xp = {
trait = lifestyle_scholar
value = {
value = scholar_xp_gain_minor_value
multiply = 1.5
}
}
}
if = {
limit = {
has_trait = zealous
scope:province = {
has_variable = cathedral_glass_martyrdom
}
}
add_piety = major_piety_gain
stress_and_fulfillment_impact = { base = minor_stress_impact_loss }
}
#Mystic
if = {
limit = {
has_trait = lifestyle_mystic
}
if = {
limit = {
scope:province = {
has_variable = cathedral_stars_vault
}
}
add_trait_xp = {
trait = lifestyle_mystic
value = {
value = lifestyle_mystic_xp_gain_medium_value
multiply = 2
}
}
}
else_if = {
limit = {
scope:province = {
has_variable = cathedral_mystic_xp
}
}
add_trait_xp = {
trait = lifestyle_mystic
value = {
value = lifestyle_mystic_xp_gain_medium_value
multiply = 1.5
}
}
}
else = {
add_trait_xp = {
trait = lifestyle_mystic
value = lifestyle_mystic_xp_gain_minor_value
}
}
}
# Prestige for Wanderers
wanderer_lifestyle_destination_effect = yes
traveler_travel_xp_effect = {
MIN = 3
MAX = 5
}
if = {
limit = {
has_government = landless_adventurer_government
has_perk = organized_muster_rolls_perk
}
add_gold = see_how_its_done_gold_reward_value
}
if = {
limit = {
has_perk = church_and_state_perk
has_government = landless_adventurer_government
}
add_piety = adventurer_church_and_state_perk_value
}
}
visiting_poi_effect = yes
}
}