on actions updated files

This commit is contained in:
Thakia 2026-10-09 17:58:54 -03:00
parent 707660e545
commit 6fe43fad95
13 changed files with 3892 additions and 965 deletions

View file

@ -6,11 +6,14 @@ on_game_start = {
# fp1_scandinavian_adventurers.0021 # FP1 - Mark game-start prioritised adventurers.
#Guaranteed historical artifacts fixed spawning
debug_portraits.1 # Debug portraits for animation testing
historical_artifacts.999
# easteregg_event.0001 # Charna and Jakub duel.
}
effect = {
##NEOW
debug_log = "NEOW_on_game_start fired"
fire_starting_events = yes
### CHAD / IRONSIDE SKULL ###
# Spawn the historical skull at game start in Lichfield.
@ -577,7 +580,7 @@ on_game_start = {
if = {
limit = {
NOT = {
has_government = tribal_government
government_has_flag = government_is_tribal
}
}
change_government = tribal_government
@ -636,33 +639,33 @@ on_game_start = {
limit = {
has_cp3_dlc_trigger = yes
}
title:b_barcelona.title_province = { add_special_building_slot = drassanes_01 } #1892
title:b_merv.title_province = { add_special_building = kyz_kala_01 } #4238
if = { limit = { game_start_date >= 1178.10.1 } title:b_cluny.title_province = { add_special_building = cluny_abbey_02 } } #2304
else_if = { limit = { game_start_date >= 1066.9.15 } title:b_cluny.title_province = { add_special_building = cluny_abbey_01 } }
else = { title:b_cluny.title_province = { add_special_building_slot = cluny_abbey_01 } }
title:b_york.title_province = { add_special_building = york_walls_01 } #1595
title:b_damascus.title_province = { add_special_building = damascus_mosque_01 } #5924
title:b_lhasa.title_province = { add_special_building = jokhang_01 } #9237
if = { limit = { game_start_date >= 1178.10.1 } title:b_schmalkalden.title_province = { add_special_building = wartburg_01 } } #3010
else = { title:b_schmalkalden.title_province = { add_special_building_slot = wartburg_01 } }
title:b_lalibela.title_province = { add_special_building_slot = beta_giyorgis_01 } #8301
if = { limit = { game_start_date >= 1066.9.15 } title:b_novgorod.title_province = { add_special_building = holy_wisdom_01 } } #5137
else = { title:b_novgorod.title_province = { add_special_building_slot = holy_wisdom_01 } }
title:b_kano.title_province = { add_special_building_slot = kano_walls_01 } #6519
title:b_somapur.title_province = { add_special_building = somapura_university_01 } #848
if = { limit = { game_start_date >= 1178.10.1 } title:b_firenze.title_province = { add_special_building = duomo_florence_02 } } #2543
else = { title:b_firenze.title_province = { add_special_building = duomo_florence_01 } }
title:b_konarak.title_province = { add_special_building_slot = konark_temple_01 } #928
title:b_fes.title_province = { add_special_building = al_qarawiyyin_university_01 } #4694
title:b_kairouan.title_province = { add_special_building = kairouan_basins_01 } #4594
title:b_al-ghaba.title_province = { add_special_building = ghana_palace_01 } #6628 #NOTE: likely existed since the 8th, but earliest (only) source on palace is from 1068
title:b_visegrad_hun.title_province = { add_special_building_slot = visegrad_castle_01 } #3803
if = { limit = { game_start_date >= 1161.9.15 } title:b_leczyca.title_province = { add_special_building = wawel_cathedral_01 } } #4924 #Date of consecreation of Archcollegiate Church of St. Mary and St. Alexius in Tum
else = { title:b_leczyca.title_province = { add_special_building_slot = wawel_cathedral_01 } }
title:b_vatapi.title_province = { add_special_building = vatapi_caves_01 } #1198
if = { limit = { game_start_date >= 1178.10.1 } title:b_jaisalmer.title_province = { add_special_building = jaisalmer_fort_01 } } #3387
else = { title:b_jaisalmer.title_province = { add_special_building_slot = jaisalmer_fort_01 } } #3387
title:b_barcelona.title_province = { add_special_building_slot = drassanes_01 } #1892
title:b_merv.title_province = { add_special_building = kyz_kala_01 } #4238
if = { limit = { game_start_date >= 1178.10.1 } title:b_cluny.title_province = { add_special_building = cluny_abbey_02 } } #2304
else_if = { limit = { game_start_date >= 1066.9.15 } title:b_cluny.title_province = { add_special_building = cluny_abbey_01 } }
else = { title:b_cluny.title_province = { add_special_building_slot = cluny_abbey_01 } }
title:b_york.title_province = { add_special_building = york_walls_01 } #1595
title:b_damascus.title_province = { add_special_building = damascus_mosque_01 } #5924
title:b_lhasa.title_province = { add_special_building = jokhang_01 } #9237
if = { limit = { game_start_date >= 1178.10.1 } title:b_schmalkalden.title_province = { add_special_building = wartburg_01 } } #3010
else = { title:b_schmalkalden.title_province = { add_special_building_slot = wartburg_01 } }
title:b_lalibela.title_province = { add_special_building_slot = beta_giyorgis_01 } #8301
if = { limit = { game_start_date >= 1066.9.15 } title:b_novgorod.title_province = { add_special_building = holy_wisdom_01 } } #5137
else = { title:b_novgorod.title_province = { add_special_building_slot = holy_wisdom_01 } }
title:b_kano.title_province = { add_special_building_slot = kano_walls_01 } #6519
title:b_somapur.title_province = { add_special_building = somapura_university_01 } #848
if = { limit = { game_start_date >= 1178.10.1 } title:b_firenze.title_province = { add_special_building = duomo_florence_02 } } #2543
else = { title:b_firenze.title_province = { add_special_building = duomo_florence_01 } }
title:b_konarak.title_province = { add_special_building_slot = konark_temple_01 } #928
title:b_fes.title_province = { add_special_building = al_qarawiyyin_university_01 } #4694
title:b_kairouan.title_province = { add_special_building = kairouan_basins_01 } #4594
title:b_al-ghaba.title_province = { add_special_building = ghana_palace_01 } #6628 #NOTE: likely existed since the 8th, but earliest (only) source on palace is from 1068
title:b_visegrad_hun.title_province = { add_special_building_slot = visegrad_castle_01 } #3803
if = { limit = { game_start_date >= 1161.9.15 } title:b_leczyca.title_province = { add_special_building = wawel_cathedral_01 } } #4924 #Date of consecreation of Archcollegiate Church of St. Mary and St. Alexius in Tum
else = { title:b_leczyca.title_province = { add_special_building_slot = wawel_cathedral_01 } }
title:b_vatapi.title_province = { add_special_building = vatapi_caves_01 } #1198
if = { limit = { game_start_date >= 1178.10.1 } title:b_jaisalmer.title_province = { add_special_building = jaisalmer_fort_01 } } #3387
else = { title:b_jaisalmer.title_province = { add_special_building_slot = jaisalmer_fort_01 } } #3387
}
### RELIGIOUS THINGS ###
@ -1284,10 +1287,6 @@ on_game_start = {
limit = {
is_governor = yes
NOT = { has_trait = governor }
OR = {
government_allows = administrative
government_is_japanese_trigger = yes
}
}
add_trait = governor
add_trait_xp = {
@ -1308,13 +1307,20 @@ on_game_start = {
}
}
}
if = {
limit = {
exists = clerical_elector_title
NOT = { has_character_flag = cardinal_flag }
}
add_character_flag = cardinal_flag
}
# Clean up TGP governments is the Expansion is not enabled
if = {
limit = { has_tgp_dlc_trigger = no }
# TGP: Clean up maritime tribal govs and revert them to non-dlc tribals
if = {
limit = {
government_has_flag = government_is_wanua
has_government = wanua_government
}
empty_treasury_when_abandoning_landed_life_effect = yes
change_government = tribal_government
@ -1322,7 +1328,7 @@ on_game_start = {
# TGP: Clean up mandala govs and revert them to non-dlc feudals
else_if = {
limit = {
government_has_flag = government_is_mandala
has_government = mandala_government
}
empty_treasury_when_abandoning_landed_life_effect = yes
change_government = feudal_government
@ -1409,9 +1415,9 @@ on_game_start = {
limit = {
tgp_is_any_minister = yes
}
random_held_title = {
every_held_title = {
limit = {
tier = tier_empire
tgp_is_minister_title = yes
}
set_capital_county = prev.top_liege.capital_county
}
@ -2946,6 +2952,15 @@ on_game_start_after_lobby = {
recipient = scope:astrologer_character
court_position = court_astrologer_court_position
}
if = {
limit = {
exists = suzerain
suzerain != this
}
end_tributary = yes
suzerain = { save_scope_as = suzerain }
start_tributary_interaction_effect = { SUZERAIN = scope:suzerain TRIBUTARY = this }
}
}
}
if = {
@ -3134,50 +3149,18 @@ on_game_start_after_lobby = {
limit = {
highest_held_title_tier >= tier_duchy
}
### PAM: give bishops and abbots a monastic familia instead of a generic secular court ###
pam_seed_monk_courtiers_effect = yes
pam_seed_nun_courtier_effect = yes
if = {
limit = {
exists = cp:councillor_court_chaplain
cp:councillor_court_chaplain = {
is_ruler = no
}
faith = { has_doctrine = doctrine_clerical_succession_spiritual_fixed_appointment }
any_vassal = {
is_physically_able_adult = yes
is_councillor = no
government_has_flag = government_is_theocracy
can_be_court_chaplain_trigger = { COURT_OWNER = liege }
faith = liege.faith
}
}
random_vassal = {
limit = {
is_physically_able_adult = yes
is_councillor = no
government_has_flag = government_is_theocracy
can_be_court_chaplain_trigger = { COURT_OWNER = liege }
faith = liege.faith
}
weight = {
base = 1
modifier = {
add = 1000
faith.religious_head ?= this
}
modifier = {
add = learning
}
modifier = {
add = primary_title.tier
}
}
liege = {
assign_councillor_type = {
type = councillor_court_chaplain
remove_existing_councillor = yes
target = prev
}
}
rite = { rite_has_parameter = has_clerical_regions } # Gates on landed clergy existing, not on a Clerical Appointment doctrine: that doctrine gets swapped at runtime
}
assign_landed_realm_priest_effect = yes
}
if = {
limit = {
@ -3186,6 +3169,13 @@ on_game_start_after_lobby = {
if = { limit = { has_realm_law = crown_authority_0 } remove_realm_law = crown_authority_0 }
}
}
else_if = { # Same for county-tier bishops. Barons fall out of the chain without being checked
limit = {
highest_held_title_tier = tier_county
}
pam_seed_monk_courtiers_effect = yes
pam_seed_nun_courtier_effect = yes
}
#Autopopulate families.
if = {
limit = {
@ -5500,6 +5490,16 @@ on_game_start_after_lobby = {
value = 10
desc = cultural_acceptance_historical_relations
}
character:906 = {
every_held_title = {
title_tier = county
change_county_control = 100
}
}
random_player = {
limit = { this = character:83355 }
set_player_character = character:906
}
}
##### ANGLICS #####
@ -15799,12 +15799,15 @@ on_game_start_after_lobby = {
every_in_list = {
list = holder_to_learn_chinese
tgp_learn_chinese_effect_game_start = yes
every_noble_family = {
holder ?= {
tgp_learn_chinese_effect_game_start = yes
house = {
every_house_member = {
tgp_learn_chinese_effect_game_start = yes
if = {
limit = { is_independent_ruler = yes }
every_noble_family = {
holder ?= {
tgp_learn_chinese_effect_game_start = yes
house = {
every_house_member = {
tgp_learn_chinese_effect_game_start = yes
}
}
}
}
@ -15866,6 +15869,9 @@ on_game_start_after_lobby = {
}
fill_external_east_asian_estate_building_effect = yes
}
ecclesiastical_domicile = {
fill_ecclesiastical_domicile_building_effect = yes
}
}
}
}
@ -16131,6 +16137,9 @@ on_game_start_after_lobby = {
}
fill_external_east_asian_estate_building_effect = yes
}
ecclesiastical_domicile = {
fill_ecclesiastical_domicile_building_effect = yes
}
}
}
}
@ -16183,6 +16192,9 @@ on_game_start_after_lobby = {
tier_county = {
change_county_fertility = { 2 8 }
}
tier_hegemony = {
change_county_fertility = { 32 48 }
}
}
}
else_if = {
@ -16217,6 +16229,7 @@ on_game_start_after_lobby = {
gender_female_chance = scope:player_scope.marriage_gender_adjusted_female_chance
culture = scope:player_scope.culture
faith = scope:player_scope.faith
rite = scope:player_scope.rite
after_creation = {
random_list = {
200 = {
@ -16249,6 +16262,7 @@ on_game_start_after_lobby = {
gender_female_chance = 15
culture = scope:player_scope.culture
faith = scope:player_scope.faith
rite = scope:player_scope.rite
after_creation = {
random_list = {
200 = {
@ -16277,15 +16291,6 @@ on_game_start_after_lobby = {
}
}
# Sanity check the setup if in debug mode
if = {
limit = {
debug_only = yes
}
run_setup_tests_effect = yes
}
set_global_variable = game_has_started
every_independent_ruler = {
# Treasury setup for any government using treasury
tgp_treasury_setup_effect = yes
@ -16405,7 +16410,31 @@ on_game_start_after_lobby = {
}
clear_global_variable_list = easteregg_characters_list
}
title:k_papal_state.holder ?= {
enforce_papal_latin_court_language_effect = yes
}
# A faith's organization members are exactly its clergy, so this never touches the laity.
religion:catholic_religion = {
every_faith = {
organization ?= {
every_organization_member = {
christian_clergy_learn_liturgical_language_effect = yes
}
}
}
}
# Sanity check the setup if in debug mode
if = {
limit = {
debug_only = yes
}
run_setup_tests_effect = yes
}
set_global_variable = game_has_started
enable_and_run_succession_calculation = yes
}
@ -16431,4 +16460,3 @@ on_game_start_after_lobby = {
# desc = $DESC$
# }
# }