fixes big evebts abd on actions plus mroe
This commit is contained in:
parent
c9d520e5a1
commit
bce2aa31a1
207 changed files with 100377 additions and 9296 deletions
|
|
@ -201,7 +201,7 @@ journal = {
|
||||||
miscellaneous_when_not_court = {
|
miscellaneous_when_not_court = {
|
||||||
slot = miscellaneous
|
slot = miscellaneous
|
||||||
# Just add to this list as new DLC court artifacts are designed.
|
# Just add to this list as new DLC court artifacts are designed.
|
||||||
optional_features = { sculpture_material generic_material_wood decoration_material_inlay goblet_material }
|
optional_features = { sculpture_material generic_material_wood decoration_material_inlay goblet_material icon_decoration }
|
||||||
}
|
}
|
||||||
|
|
||||||
brooch = {
|
brooch = {
|
||||||
|
|
@ -463,3 +463,19 @@ crossbow = {
|
||||||
slot = primary_armament
|
slot = primary_armament
|
||||||
required_features = { bow_wood bow_string }
|
required_features = { bow_wood bow_string }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
library_item = {
|
||||||
|
slot = library
|
||||||
|
optional_features = { book_topic book_title book_decoration decoration_pattern generic_material_wood decoration_material_gem decoration_material_inlay_HSB }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
creature = {
|
||||||
|
slot = creature
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
curio = {
|
||||||
|
slot = curio
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -257,3 +257,16 @@ celestial = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
merchant_seize_realm = {
|
||||||
|
allowed_for_character = {
|
||||||
|
herders_and_tributary_constraints = yes
|
||||||
|
tgp_dynastic_cycle_offensive_wars_ban_trigger = yes
|
||||||
|
tgp_war_ban_all_ministers_trigger = yes
|
||||||
|
NOT = { government_has_flag = government_is_theocracy }
|
||||||
|
}
|
||||||
|
allowed_for_character_display_regardless = {
|
||||||
|
pam_personal_pacifism_offensive_war_ban_trigger = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#migration_cb
|
#migration_cb
|
||||||
#mpo_nomad_invasion_cb
|
#mpo_nomad_invasion_cb
|
||||||
#humiliation_cb
|
#humiliation_cb
|
||||||
#retaliation_cb
|
#retaliation_cb
|
||||||
|
|
@ -4565,10 +4565,10 @@ mpo_great_war_of_defiance_cb = {
|
||||||
mpo_war_of_defiance_notified_player_trigger = yes
|
mpo_war_of_defiance_notified_player_trigger = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_event = {
|
# trigger_event = {
|
||||||
id = mpo_greatest_of_khans.0103
|
# id = mpo_greatest_of_khans.0103
|
||||||
days = 2
|
# days = 2
|
||||||
}
|
# }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -4702,10 +4702,10 @@ mpo_great_war_of_defiance_cb = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_event = {
|
# trigger_event = {
|
||||||
id = mpo_greatest_of_khans.0001
|
# id = mpo_greatest_of_khans.0001
|
||||||
days = 1
|
# days = 1
|
||||||
}
|
# }
|
||||||
}
|
}
|
||||||
# Truce
|
# Truce
|
||||||
add_truce_attacker_defeat_effect = yes
|
add_truce_attacker_defeat_effect = yes
|
||||||
|
|
@ -5477,10 +5477,10 @@ mpo_gok_onslaught_cb = {
|
||||||
is_ai = no
|
is_ai = no
|
||||||
top_liege = scope:attacker
|
top_liege = scope:attacker
|
||||||
}
|
}
|
||||||
trigger_event = {
|
# trigger_event = {
|
||||||
id = mpo_greatest_of_khans.0050
|
# id = mpo_greatest_of_khans.0050
|
||||||
days = 2
|
# days = 2
|
||||||
}
|
# }
|
||||||
}
|
}
|
||||||
#Send taunt to unlanded losers
|
#Send taunt to unlanded losers
|
||||||
every_in_list = {
|
every_in_list = {
|
||||||
|
|
@ -5489,10 +5489,10 @@ mpo_gok_onslaught_cb = {
|
||||||
is_ai = no
|
is_ai = no
|
||||||
NOT = { top_liege = scope:attacker }
|
NOT = { top_liege = scope:attacker }
|
||||||
}
|
}
|
||||||
trigger_event = {
|
# trigger_event = {
|
||||||
id = mpo_greatest_of_khans.0051
|
# id = mpo_greatest_of_khans.0051
|
||||||
days = 2
|
# days = 2
|
||||||
}
|
# }
|
||||||
}
|
}
|
||||||
|
|
||||||
# Allies on both sides get full prestige value for helping in the war, based on their war participation.
|
# Allies on both sides get full prestige value for helping in the war, based on their war participation.
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ innovation_british_ironsides = {
|
||||||
icon = @knight
|
icon = @knight
|
||||||
|
|
||||||
potential = {
|
potential = {
|
||||||
NOT = { culture = culture:angler }
|
NOT = { this = culture:angler }
|
||||||
OR = {
|
OR = {
|
||||||
has_cultural_pillar = heritage_brythonic
|
has_cultural_pillar = heritage_brythonic
|
||||||
has_cultural_pillar = heritage_anglo_frisian
|
has_cultural_pillar = heritage_anglo_frisian
|
||||||
|
|
@ -93,7 +93,7 @@ innovation_pioneers = {
|
||||||
icon = @knighthood
|
icon = @knighthood
|
||||||
|
|
||||||
potential = {
|
potential = {
|
||||||
culture = culture:metropolitain
|
this = culture:metropolitain
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -131,9 +131,9 @@ innovation_gardians = {
|
||||||
|
|
||||||
potential = {
|
potential = {
|
||||||
OR = {
|
OR = {
|
||||||
culture = culture:provencal
|
this = culture:provencal
|
||||||
culture = culture:rottisch
|
this = culture:rottisch
|
||||||
culture = culture:patoues
|
this = culture:patoues
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -154,9 +154,9 @@ innovation_voltigeurs = {
|
||||||
|
|
||||||
potential = {
|
potential = {
|
||||||
OR = {
|
OR = {
|
||||||
culture = culture:elsasse
|
this = culture:elsasse
|
||||||
culture = culture:lorin
|
this = culture:lorin
|
||||||
culture = culture:gascon
|
this = culture:gascon
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -197,8 +197,8 @@ innovation_guides = {
|
||||||
|
|
||||||
potential = {
|
potential = {
|
||||||
OR = {
|
OR = {
|
||||||
culture = culture:belge
|
this = culture:belge
|
||||||
culture = culture:letzebuerge
|
this = culture:letzebuerge
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -217,7 +217,7 @@ innovation_cacadores = {
|
||||||
icon = @gunpowder
|
icon = @gunpowder
|
||||||
|
|
||||||
potential = {
|
potential = {
|
||||||
culture = culture:portuguese
|
this = culture:portuguese
|
||||||
}
|
}
|
||||||
|
|
||||||
unlock_maa = cacadores
|
unlock_maa = cacadores
|
||||||
|
|
@ -236,11 +236,11 @@ innovation_almogavares = {
|
||||||
|
|
||||||
potential = {
|
potential = {
|
||||||
OR = {
|
OR = {
|
||||||
culture = culture:andorra
|
this = culture:andorra
|
||||||
culture = culture:aragonese
|
this = culture:aragonese
|
||||||
culture = culture:asturleonese
|
this = culture:asturleonese
|
||||||
culture = culture:basque
|
this = culture:basque
|
||||||
culture = culture:galician
|
this = culture:galician
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -257,9 +257,9 @@ innovation_tercos = {
|
||||||
|
|
||||||
potential = {
|
potential = {
|
||||||
OR = {
|
OR = {
|
||||||
culture = culture:catalan
|
this = culture:catalan
|
||||||
culture = culture:balearic
|
this = culture:balearic
|
||||||
culture = culture:valencian
|
this = culture:valencian
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -275,9 +275,9 @@ innovation_lanceros = {
|
||||||
|
|
||||||
potential = {
|
potential = {
|
||||||
OR = {
|
OR = {
|
||||||
culture = culture:castilian
|
this = culture:castilian
|
||||||
culture = culture:extremeno
|
this = culture:extremeno
|
||||||
culture = culture:NEOW_andalusian
|
this = culture:NEOW_andalusian
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -293,14 +293,14 @@ innovation_betyars = {
|
||||||
|
|
||||||
potential = {
|
potential = {
|
||||||
OR = {
|
OR = {
|
||||||
culture = culture:hungarian
|
this = culture:hungarian
|
||||||
culture = culture:szeklers
|
this = culture:szeklers
|
||||||
culture = culture:translyvanian
|
this = culture:translyvanian
|
||||||
culture = culture:czech
|
this = culture:czech
|
||||||
culture = culture:NEOW_moravian
|
this = culture:NEOW_moravian
|
||||||
culture = culture:NEOW_slovak
|
this = culture:NEOW_slovak
|
||||||
culture = culture:goral
|
this = culture:goral
|
||||||
culture = culture:NEOW_carpathian
|
this = culture:NEOW_carpathian
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unlock_maa = betyars
|
unlock_maa = betyars
|
||||||
|
|
@ -315,11 +315,11 @@ innovation_peacekeepers = {
|
||||||
|
|
||||||
potential = {
|
potential = {
|
||||||
OR = {
|
OR = {
|
||||||
culture = culture:wallachian
|
this = culture:wallachian
|
||||||
culture = culture:banatian
|
this = culture:banatian
|
||||||
culture = culture:moldavian
|
this = culture:moldavian
|
||||||
culture = culture:NEOW_gagauz
|
this = culture:NEOW_gagauz
|
||||||
culture = culture:NEOW_ucrainean
|
this = culture:NEOW_ucrainean
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unlock_maa = peacekeepers
|
unlock_maa = peacekeepers
|
||||||
|
|
@ -334,12 +334,12 @@ innovation_tachanka {
|
||||||
|
|
||||||
potential = {
|
potential = {
|
||||||
OR = {
|
OR = {
|
||||||
culture = culture:NEOW_kievan
|
this = culture:NEOW_kievan
|
||||||
culture = culture:NEOW_cossack
|
this = culture:NEOW_cossack
|
||||||
culture = culture:NEOW_crimean
|
this = culture:NEOW_crimean
|
||||||
culture = culture:NEOW_nizhnevolzhan
|
this = culture:NEOW_nizhnevolzhan
|
||||||
culture = culture:NEOW_povolzhan
|
this = culture:NEOW_povolzhan
|
||||||
culture = culture:kalmyk
|
this = culture:kalmyk
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unlock_maa = tachanka
|
unlock_maa = tachanka
|
||||||
|
|
@ -354,20 +354,20 @@ innovation_uhlan = {
|
||||||
|
|
||||||
potential = {
|
potential = {
|
||||||
OR = {
|
OR = {
|
||||||
culture = culture:NEOW_greater_polish
|
this = culture:NEOW_greater_polish
|
||||||
culture = culture:NEOW_lesser_polish
|
this = culture:NEOW_lesser_polish
|
||||||
culture = culture:NEOW_mazovian_polish
|
this = culture:NEOW_mazovian_polish
|
||||||
culture = culture:sorbian
|
this = culture:sorbian
|
||||||
culture = culture:kashubian
|
this = culture:kashubian
|
||||||
culture = culture:goral
|
this = culture:goral
|
||||||
culture = culture:NEOW_silesian
|
this = culture:NEOW_silesian
|
||||||
culture = culture:lipka
|
this = culture:lipka
|
||||||
culture = culture:NEOW_pribaltic
|
this = culture:NEOW_pribaltic
|
||||||
culture = culture:NEOW_polessian
|
this = culture:NEOW_polessian
|
||||||
culture = culture:NEOW_minskian
|
this = culture:NEOW_minskian
|
||||||
culture = culture:NEOW_vohlynian
|
this = culture:NEOW_vohlynian
|
||||||
culture = culture:lithuanian
|
this = culture:lithuanian
|
||||||
culture = culture:samogitian
|
this = culture:samogitian
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unlock_maa = uhlan
|
unlock_maa = uhlan
|
||||||
|
|
@ -382,13 +382,13 @@ innovation_bike_cav = {
|
||||||
|
|
||||||
potential = {
|
potential = {
|
||||||
OR = {
|
OR = {
|
||||||
culture = culture:latvian
|
this = culture:latvian
|
||||||
culture = culture:latgalian
|
this = culture:latgalian
|
||||||
culture = culture:estonian
|
this = culture:estonian
|
||||||
culture = culture:livonian
|
this = culture:livonian
|
||||||
culture = culture:voroseto
|
this = culture:voroseto
|
||||||
culture = culture:dansk
|
this = culture:dansk
|
||||||
culture = culture:slesvigsk
|
this = culture:slesvigsk
|
||||||
has_cultural_pillar = heritage_west_germanic
|
has_cultural_pillar = heritage_west_germanic
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,9 @@ recruit_terrain_specialist_decision = {
|
||||||
decision_group_type = courtier
|
decision_group_type = courtier
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
is_landless_adventurer = no
|
||||||
|
is_landless_merchant = no
|
||||||
|
is_herder = no
|
||||||
# You can hire at least one type of terrain expert
|
# You can hire at least one type of terrain expert
|
||||||
OR = {
|
OR = {
|
||||||
culture ?= {
|
culture ?= {
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,12 @@ create_cadet_branch_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
highest_held_title_tier > tier_barony
|
NOT = {
|
||||||
government_allows = rulers_should_have_dynasty
|
highest_held_title_tier = tier_barony
|
||||||
|
}
|
||||||
is_house_head = no
|
is_house_head = no
|
||||||
|
government_allows = rulers_should_have_dynasty
|
||||||
|
is_lowborn = no
|
||||||
NOR = {
|
NOR = {
|
||||||
AND = {
|
AND = {
|
||||||
has_council_position = councillor_court_chaplain
|
has_council_position = councillor_court_chaplain
|
||||||
|
|
@ -34,7 +37,6 @@ create_cadet_branch_decision = {
|
||||||
has_tgp_dlc_trigger = yes
|
has_tgp_dlc_trigger = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exists = house.house_head
|
|
||||||
is_playable_character = yes
|
is_playable_character = yes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -183,6 +185,17 @@ create_cadet_branch_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
|
is_house_head = no
|
||||||
|
highest_held_title_tier > tier_barony
|
||||||
|
is_adult = yes
|
||||||
|
is_playable_character = yes
|
||||||
|
government_allows = rulers_should_have_dynasty
|
||||||
|
government_allows = create_cadet_branches
|
||||||
|
exists = house.house_head
|
||||||
|
trigger_if = {
|
||||||
|
limit = { government_has_flag = government_is_clan }
|
||||||
|
top_liege = this
|
||||||
|
}
|
||||||
any_child = { is_alive = yes } # move it beforehand for performance reason
|
any_child = { is_alive = yes } # move it beforehand for performance reason
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -195,6 +208,7 @@ create_cadet_branch_decision = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
years_from_game_start >= 5
|
||||||
# Childless rulers should not found houses
|
# Childless rulers should not found houses
|
||||||
any_child = {
|
any_child = {
|
||||||
is_alive = yes
|
is_alive = yes
|
||||||
|
|
@ -237,7 +251,6 @@ create_cadet_branch_decision = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
years_from_game_start >= 5
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -245,18 +258,77 @@ create_cadet_branch_decision = {
|
||||||
base = 30
|
base = 30
|
||||||
|
|
||||||
modifier = { # Dukes and above are more keen
|
modifier = { # Dukes and above are more keen
|
||||||
add = {
|
add = 70
|
||||||
value = primary_title.tier
|
exists = primary_title
|
||||||
subtract = tier_county
|
primary_title.tier > tier_county
|
||||||
multiply = 20
|
}
|
||||||
|
|
||||||
|
modifier = { # Prefer to stay in liege's dynasty
|
||||||
|
add = -50
|
||||||
|
government_is_japanese_trigger = no
|
||||||
|
top_liege != this
|
||||||
|
any_liege_or_above = {
|
||||||
|
dynasty = root.dynasty
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
modifier = { # Childless rulers should not found houses
|
||||||
|
factor = 0
|
||||||
|
any_child = {
|
||||||
|
is_alive = yes
|
||||||
|
count < 3
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
modifier = { # Stop stealing player's house members
|
||||||
|
factor = 0
|
||||||
|
any_player = {
|
||||||
|
OR = {
|
||||||
|
any_child = {
|
||||||
|
OR = {
|
||||||
|
is_child_of = root
|
||||||
|
is_grandchild_of = root
|
||||||
|
is_great_grandchild_of = root
|
||||||
|
}
|
||||||
|
}
|
||||||
|
any_child = {
|
||||||
|
even_if_dead = yes
|
||||||
|
any_child = {
|
||||||
|
OR = {
|
||||||
|
is_child_of = root
|
||||||
|
is_grandchild_of = root
|
||||||
|
is_great_grandchild_of = root
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
any_child = {
|
||||||
|
even_if_dead = yes
|
||||||
|
any_child = {
|
||||||
|
even_if_dead = yes
|
||||||
|
any_child = {
|
||||||
|
OR = {
|
||||||
|
is_child_of = root
|
||||||
|
is_grandchild_of = root
|
||||||
|
is_great_grandchild_of = root
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# we don't want AI to split from their House unless they dislike their house head
|
# we don't want AI to split from their House unless they dislike their house head
|
||||||
modifier = {
|
modifier = {
|
||||||
add = {
|
factor = 0
|
||||||
value = 0
|
OR = {
|
||||||
subtract = "opinion(house.house_head)"
|
government_has_flag = government_is_clan
|
||||||
|
government_has_flag = government_is_merchant
|
||||||
|
}
|
||||||
|
|
||||||
|
opinion = {
|
||||||
|
target = house.house_head
|
||||||
|
value >= -50
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -264,11 +336,13 @@ create_cadet_branch_decision = {
|
||||||
modifier = {
|
modifier = {
|
||||||
add = 1000
|
add = 1000
|
||||||
government_allows = noble_families
|
government_allows = noble_families
|
||||||
liege = this
|
top_liege = this
|
||||||
trigger_if = {
|
this != house.house_head.top_liege
|
||||||
limit = { exists = house.house_head.liege }
|
}
|
||||||
house.house_head.liege != root
|
|
||||||
}
|
modifier = {
|
||||||
|
add = -250
|
||||||
|
years_from_game_start < 5
|
||||||
}
|
}
|
||||||
|
|
||||||
### TGP
|
### TGP
|
||||||
|
|
@ -278,7 +352,7 @@ create_cadet_branch_decision = {
|
||||||
top_liege.primary_title = {
|
top_liege.primary_title = {
|
||||||
any_past_holder = { is_close_family_of = root }
|
any_past_holder = { is_close_family_of = root }
|
||||||
}
|
}
|
||||||
add = -20
|
add = -25
|
||||||
}
|
}
|
||||||
|
|
||||||
modifier = { # Prefer to branch away from leading house if distant to split up blocs
|
modifier = { # Prefer to branch away from leading house if distant to split up blocs
|
||||||
|
|
@ -298,7 +372,6 @@ create_cadet_branch_decision = {
|
||||||
modifier = { # Ruler should not break family apart
|
modifier = { # Ruler should not break family apart
|
||||||
government_is_japanese_trigger = yes
|
government_is_japanese_trigger = yes
|
||||||
is_independent_ruler = yes
|
is_independent_ruler = yes
|
||||||
house.house_head ?= { is_vassal_or_below_of = root }
|
|
||||||
add = -1000
|
add = -1000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,9 @@ invite_knights_decision = {
|
||||||
cooldown = { years = invite_knights_decision_cooldown_value }
|
cooldown = { years = invite_knights_decision_cooldown_value }
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
max_number_of_knights > 0
|
|
||||||
is_landless_adventurer = no
|
is_landless_adventurer = no
|
||||||
|
is_landless_merchant = no
|
||||||
|
max_number_of_knights > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
is_valid = {
|
is_valid = {
|
||||||
|
|
@ -139,8 +140,8 @@ invite_claimants_decision = {
|
||||||
cooldown = { days = 3650 }
|
cooldown = { days = 3650 }
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
primary_title.tier > tier_county
|
|
||||||
is_landed_or_landless_administrative = yes
|
is_landed_or_landless_administrative = yes
|
||||||
|
primary_title.tier > tier_county
|
||||||
NOT = { government_has_flag = government_is_nomadic }
|
NOT = { government_has_flag = government_is_nomadic }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -210,10 +211,10 @@ scrape_the_barrel_decision = {
|
||||||
cooldown = { years = 2 }
|
cooldown = { years = 2 }
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
has_royal_court = yes
|
|
||||||
court_grandeur_current_level <= 4
|
|
||||||
has_dlc_feature = royal_court
|
|
||||||
is_landed_or_landless_administrative_or_theocratic = yes
|
is_landed_or_landless_administrative_or_theocratic = yes
|
||||||
|
has_royal_court = yes
|
||||||
|
has_dlc_feature = royal_court
|
||||||
|
court_grandeur_current_level <= 4
|
||||||
}
|
}
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,8 @@ create_holy_order_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
|
sort_order = 30
|
||||||
|
|
||||||
ai_goal = yes
|
ai_goal = yes
|
||||||
|
|
||||||
|
|
@ -31,6 +32,7 @@ create_holy_order_decision = {
|
||||||
highest_held_title_tier >= tier_kingdom
|
highest_held_title_tier >= tier_kingdom
|
||||||
any_held_county = {
|
any_held_county = {
|
||||||
any_in_de_jure_hierarchy = {
|
any_in_de_jure_hierarchy = {
|
||||||
|
holder = root
|
||||||
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
|
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -65,6 +67,7 @@ create_holy_order_decision = {
|
||||||
title_valid = {
|
title_valid = {
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = { exists = this }
|
limit = { exists = this }
|
||||||
|
holder = scope:ruler
|
||||||
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = scope:ruler }
|
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = scope:ruler }
|
||||||
}
|
}
|
||||||
trigger_else = {
|
trigger_else = {
|
||||||
|
|
@ -102,6 +105,7 @@ create_holy_order_decision = {
|
||||||
text = "has_two_castle_county"
|
text = "has_two_castle_county"
|
||||||
any_held_county = {
|
any_held_county = {
|
||||||
any_in_de_jure_hierarchy = {
|
any_in_de_jure_hierarchy = {
|
||||||
|
holder = root
|
||||||
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
|
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -185,24 +189,6 @@ create_holy_order_decision = {
|
||||||
limit = {
|
limit = {
|
||||||
exists = scope:barony
|
exists = scope:barony
|
||||||
}
|
}
|
||||||
hidden_effect = {
|
|
||||||
if = {
|
|
||||||
limit = { scope:barony.holder != root }
|
|
||||||
create_title_and_vassal_change = {
|
|
||||||
type = leased_out
|
|
||||||
save_scope_as = change
|
|
||||||
add_claim_on_loss = no
|
|
||||||
}
|
|
||||||
scope:barony = {
|
|
||||||
change_title_holder_include_vassals = {
|
|
||||||
holder = root
|
|
||||||
change = scope:change
|
|
||||||
}
|
|
||||||
}
|
|
||||||
resolve_title_and_vassal_change = scope:change
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
create_character = {
|
create_character = {
|
||||||
template = holy_order_leader_character
|
template = holy_order_leader_character
|
||||||
location = scope:barony.title_province
|
location = scope:barony.title_province
|
||||||
|
|
@ -239,18 +225,11 @@ create_holy_order_decision = {
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
highest_held_title_tier >= tier_kingdom
|
highest_held_title_tier >= tier_kingdom
|
||||||
is_playable_character = yes
|
is_playable_character = yes
|
||||||
OR = {
|
is_at_war = no
|
||||||
any_held_title = {
|
piety_level >= 1
|
||||||
title_tier = barony
|
trigger_if = { limit = { has_pam_dlc_trigger = yes } OR = { government_has_flag = government_is_theocracy exists = root.puppet:theological_agent_puppet exists = root.puppet:external_theological_agent_puppet } }
|
||||||
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
|
is_available_adult = yes
|
||||||
}
|
any_held_title = { title_tier = barony barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root } }
|
||||||
any_vassal = {
|
|
||||||
primary_title.tier = tier_barony
|
|
||||||
any_held_title = {
|
|
||||||
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_will_do = {
|
ai_will_do = {
|
||||||
|
|
@ -304,6 +283,7 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
highest_held_title_tier > tier_barony
|
highest_held_title_tier > tier_barony
|
||||||
|
is_playable_character = yes
|
||||||
faith ?= {
|
faith ?= {
|
||||||
any_faith_holy_order = { #Your faith must have a Military Order
|
any_faith_holy_order = { #Your faith must have a Military Order
|
||||||
leader = {
|
leader = {
|
||||||
|
|
@ -311,12 +291,6 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
is_playable_character = yes
|
|
||||||
# cannot already have a loan - keep it simple
|
|
||||||
NOR = {
|
|
||||||
exists = var:loan_amount_owed
|
|
||||||
exists = var:loan_holder
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
is_valid_showing_failures_only = {
|
is_valid_showing_failures_only = {
|
||||||
|
|
@ -331,6 +305,15 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
|
||||||
NOT = {
|
NOT = {
|
||||||
has_any_bad_relationship_with_character_trigger = { CHARACTER = root }
|
has_any_bad_relationship_with_character_trigger = { CHARACTER = root }
|
||||||
}
|
}
|
||||||
|
save_temporary_scope_as = lender_temp
|
||||||
|
}
|
||||||
|
root = {
|
||||||
|
NOT = {
|
||||||
|
any_owned_story = {
|
||||||
|
story_Type = story_cycle_loan
|
||||||
|
var:lender = scope:lender_temp
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -360,7 +343,7 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
always = yes
|
is_available = yes
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_will_do = {
|
ai_will_do = {
|
||||||
|
|
@ -431,6 +414,30 @@ cancel_holy_order_lease_decision = {
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = { exists = this }
|
limit = { exists = this }
|
||||||
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = scope:ruler }
|
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = scope:ruler }
|
||||||
|
trigger_if = {
|
||||||
|
limit = {
|
||||||
|
scope:ruler = { is_ai = yes }
|
||||||
|
exists = lessee.faith
|
||||||
|
}
|
||||||
|
trigger_if = {
|
||||||
|
limit = { scope:ruler.faith = root.lessee.faith }
|
||||||
|
scope:ruler.piety >= cancel_holy_order_piety_cost
|
||||||
|
}
|
||||||
|
trigger_else_if = {
|
||||||
|
limit = {
|
||||||
|
scope:ruler.faith = {
|
||||||
|
faith_hostility_level = {
|
||||||
|
target = root.lessee.faith
|
||||||
|
value <= faith_astray_level
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scope:ruler.piety >= cancel_astray_holy_order_piety_cost
|
||||||
|
}
|
||||||
|
trigger_else = {
|
||||||
|
always = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
trigger_else = {
|
trigger_else = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
|
|
@ -537,11 +544,12 @@ cancel_holy_order_lease_decision = {
|
||||||
age >= 12
|
age >= 12
|
||||||
is_at_war = no
|
is_at_war = no
|
||||||
highest_held_title_tier >= tier_county
|
highest_held_title_tier >= tier_county
|
||||||
|
years_from_game_start >= 1
|
||||||
any_sub_realm_barony = {
|
any_sub_realm_barony = {
|
||||||
|
is_under_holy_order_lease = yes
|
||||||
county.holder = { is_ai = yes }
|
county.holder = { is_ai = yes }
|
||||||
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = root }
|
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = root }
|
||||||
}
|
}
|
||||||
years_from_game_start >= 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_will_do = {
|
ai_will_do = {
|
||||||
|
|
@ -597,7 +605,8 @@ create_holy_order_monastic_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/pam_pre-romanesque_church_exterior.dds"
|
reference = "gfx/interface/illustrations/decisions/pam_pre-romanesque_church_exterior.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
|
sort_order = 30
|
||||||
|
|
||||||
ai_goal = yes
|
ai_goal = yes
|
||||||
|
|
||||||
|
|
@ -713,6 +722,20 @@ create_holy_order_monastic_decision = {
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
highest_held_title_tier >= tier_duchy
|
highest_held_title_tier >= tier_duchy
|
||||||
is_playable_character = yes
|
is_playable_character = yes
|
||||||
|
is_at_war = no
|
||||||
|
piety_level >= 1
|
||||||
|
trigger_if = {
|
||||||
|
limit = {
|
||||||
|
has_pam_dlc_trigger = yes
|
||||||
|
}
|
||||||
|
OR = {
|
||||||
|
government_has_flag = government_is_theocracy
|
||||||
|
exists = root.puppet:theological_agent_puppet
|
||||||
|
exists = root.puppet:external_theological_agent_puppet
|
||||||
|
}
|
||||||
|
}
|
||||||
|
faith ?= { faith_has_monasticism_trigger = yes }
|
||||||
|
is_available_adult = yes
|
||||||
any_held_county = {
|
any_held_county = {
|
||||||
county_is_valid_for_monastic_lease_trigger = { CHARACTER = root }
|
county_is_valid_for_monastic_lease_trigger = { CHARACTER = root }
|
||||||
}
|
}
|
||||||
|
|
@ -1135,6 +1158,42 @@ pam_monastic_order_new_movement_decision = {
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
highest_held_title_tier >= tier_duchy
|
highest_held_title_tier >= tier_duchy
|
||||||
is_playable_character = yes
|
is_playable_character = yes
|
||||||
|
piety_level >= 1
|
||||||
|
trigger_if = {
|
||||||
|
limit = {
|
||||||
|
has_pam_dlc_trigger = yes
|
||||||
|
NOT = {
|
||||||
|
government_has_flag = government_is_theocracy
|
||||||
|
}
|
||||||
|
}
|
||||||
|
exists = root.puppet:theological_agent_puppet
|
||||||
|
}
|
||||||
|
trigger_else = {
|
||||||
|
OR = {
|
||||||
|
AND = {
|
||||||
|
has_trait = lifestyle_scholar
|
||||||
|
has_trait_xp = {
|
||||||
|
trait = lifestyle_scholar
|
||||||
|
value >= 60
|
||||||
|
}
|
||||||
|
}
|
||||||
|
has_trait = theologian
|
||||||
|
has_trait = erudite
|
||||||
|
has_trait = lifestyle_mystic
|
||||||
|
has_trait = devoted
|
||||||
|
has_trait = family_first
|
||||||
|
has_trait = diplomat
|
||||||
|
has_trait = schemer
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_if = {
|
||||||
|
limit = {
|
||||||
|
has_pam_dlc_trigger = yes
|
||||||
|
}
|
||||||
|
exists = root.puppet:external_theological_agent_puppet
|
||||||
|
}
|
||||||
|
faith = { faith_has_monasticism_trigger = yes }
|
||||||
|
is_available_adult = yes
|
||||||
any_held_county = {
|
any_held_county = {
|
||||||
county_is_valid_for_monastic_lease_trigger = { CHARACTER = root }
|
county_is_valid_for_monastic_lease_trigger = { CHARACTER = root }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -186,7 +186,14 @@ sale_of_titles_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
cost = {
|
cost = {
|
||||||
prestige = @sale_of_titles_prestige_cost
|
prestige = {
|
||||||
|
value = 250
|
||||||
|
multiply = {
|
||||||
|
value = root.highest_held_title_tier
|
||||||
|
subtract = 1
|
||||||
|
min = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
|
|
@ -208,7 +215,10 @@ sale_of_titles_decision = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
add_gold = major_gold_value
|
add_gold = {
|
||||||
|
value = medium_gold_value
|
||||||
|
divide = 2
|
||||||
|
}
|
||||||
|
|
||||||
custom_tooltip = sale_of_titles_side_effects_tt
|
custom_tooltip = sale_of_titles_side_effects_tt
|
||||||
|
|
||||||
|
|
@ -526,6 +536,7 @@ local_arbitration_decision = {
|
||||||
is_valid_showing_failures_only = {
|
is_valid_showing_failures_only = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = inside_realm_trigger
|
text = inside_realm_trigger
|
||||||
|
exists = root.location.county
|
||||||
any_sub_realm_county = {
|
any_sub_realm_county = {
|
||||||
this = root.location.county
|
this = root.location.county
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
###################
|
###################
|
||||||
|
|
||||||
@deceitful_progress_hostile_schemes_cooldown_time = 1095
|
@deceitful_progress_hostile_schemes_cooldown_time = 1095
|
||||||
@diligent_development_focus_cooldown_time = 3650
|
@diligent_prosperity_focus_cooldown_time = 3650
|
||||||
@impatient_rushing_all_schemes_cooldown_time = 1825
|
@impatient_rushing_all_schemes_cooldown_time = 1825
|
||||||
@vengeful_fabricate_hook_rivals_cooldown_time = 3665
|
@vengeful_fabricate_hook_rivals_cooldown_time = 3665
|
||||||
|
|
||||||
|
|
@ -116,7 +116,7 @@ deceitful_progress_hostile_schemes_decision = {
|
||||||
|
|
||||||
#Diligent overwork
|
#Diligent overwork
|
||||||
### Develop Capital ###
|
### Develop Capital ###
|
||||||
diligent_development_focus_decision = {
|
diligent_prosperity_focus_decision = {
|
||||||
ai_check_interval = 0
|
ai_check_interval = 0
|
||||||
|
|
||||||
picture = {
|
picture = {
|
||||||
|
|
@ -140,11 +140,11 @@ diligent_development_focus_decision = {
|
||||||
}
|
}
|
||||||
sort_order = 60
|
sort_order = 60
|
||||||
|
|
||||||
desc = diligent_development_focus_decision_desc
|
desc = diligent_prosperity_focus_decision_desc
|
||||||
|
|
||||||
selection_tooltip = diligent_development_focus_decision_tooltip
|
selection_tooltip = diligent_prosperity_focus_decision_tooltip
|
||||||
|
|
||||||
cooldown = { days = @diligent_development_focus_cooldown_time }
|
cooldown = { days = @diligent_prosperity_focus_cooldown_time }
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
is_landed = yes
|
is_landed = yes
|
||||||
|
|
@ -167,7 +167,7 @@ diligent_development_focus_decision = {
|
||||||
|
|
||||||
send_interface_toast = {
|
send_interface_toast = {
|
||||||
type = event_toast_effect_neutral
|
type = event_toast_effect_neutral
|
||||||
title = msg_diligent_development_focus
|
title = msg_diligent_prosperity_focus
|
||||||
left_icon = root
|
left_icon = root
|
||||||
|
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -178,7 +178,7 @@ diligent_development_focus_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
add_character_modifier = {
|
add_character_modifier = {
|
||||||
modifier = diligent_development_focus
|
modifier = diligent_prosperity_focus
|
||||||
years = 10
|
years = 10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -244,6 +244,7 @@ impatient_rushing_all_schemes_decision = {
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
has_trait = impatient
|
has_trait = impatient
|
||||||
|
any_scheme = { count >= 1 }
|
||||||
}
|
}
|
||||||
|
|
||||||
is_valid_showing_failures_only = {
|
is_valid_showing_failures_only = {
|
||||||
|
|
@ -260,7 +261,7 @@ impatient_rushing_all_schemes_decision = {
|
||||||
effect = {
|
effect = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
any_scheme = { }
|
any_scheme = { count >= 1 }
|
||||||
}
|
}
|
||||||
send_interface_toast = {
|
send_interface_toast = {
|
||||||
type = event_toast_effect_neutral
|
type = event_toast_effect_neutral
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
decision_solve_the_journals = {
|
decision_solve_the_journals = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_erudition.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = major
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ clear_ground_for_legendary_building = {
|
||||||
text = clear_ground_for_legendary_building_no_barony_tt
|
text = clear_ground_for_legendary_building_no_barony_tt
|
||||||
any_held_title = {
|
any_held_title = {
|
||||||
title_tier = barony
|
title_tier = barony
|
||||||
title_province = { has_special_building_slot = no }
|
title_province = { has_special_district_slot = no }
|
||||||
is_capital_barony = yes
|
is_capital_barony = yes
|
||||||
holder = root
|
holder = root
|
||||||
is_leased_out = no
|
is_leased_out = no
|
||||||
|
|
@ -162,7 +162,7 @@ clear_ground_for_legendary_building = {
|
||||||
}
|
}
|
||||||
current_description = clear_ground_legendary_shrine_desc
|
current_description = clear_ground_legendary_shrine_desc
|
||||||
localization = clear_ground_legendary_shrine
|
localization = clear_ground_legendary_shrine
|
||||||
icon = "gfx/interface/icons/building_types/icon_building_legendary_shrine.dds"
|
icon = "gfx/interface/icons/building_types/special_buildings/legendary_shrine.dds"
|
||||||
flat = yes
|
flat = yes
|
||||||
ai_chance = { value = 10 }
|
ai_chance = { value = 10 }
|
||||||
}
|
}
|
||||||
|
|
@ -176,7 +176,7 @@ clear_ground_for_legendary_building = {
|
||||||
}
|
}
|
||||||
current_description = clear_ground_legendary_statue_desc
|
current_description = clear_ground_legendary_statue_desc
|
||||||
localization = clear_ground_legendary_statue
|
localization = clear_ground_legendary_statue
|
||||||
icon = "gfx/interface/icons/building_types/icon_building_legendary_statue.dds"
|
icon = "gfx/interface/icons/building_types/special_buildings/legendary_statue.dds"
|
||||||
flat = yes
|
flat = yes
|
||||||
ai_chance = { value = 10 }
|
ai_chance = { value = 10 }
|
||||||
}
|
}
|
||||||
|
|
@ -190,7 +190,7 @@ clear_ground_for_legendary_building = {
|
||||||
}
|
}
|
||||||
current_description = clear_ground_legendary_palace_desc
|
current_description = clear_ground_legendary_palace_desc
|
||||||
localization = clear_ground_legendary_palace
|
localization = clear_ground_legendary_palace
|
||||||
icon = "gfx/interface/icons/building_types/icon_building_legendary_palace.dds"
|
icon = "gfx/interface/icons/building_types/special_buildings/legendary_palace.dds"
|
||||||
flat = yes
|
flat = yes
|
||||||
ai_chance = { value = 10 }
|
ai_chance = { value = 10 }
|
||||||
}
|
}
|
||||||
|
|
@ -204,7 +204,7 @@ clear_ground_for_legendary_building = {
|
||||||
}
|
}
|
||||||
current_description = clear_ground_legendary_watchtower_desc
|
current_description = clear_ground_legendary_watchtower_desc
|
||||||
localization = clear_ground_legendary_watchtower
|
localization = clear_ground_legendary_watchtower
|
||||||
icon = "gfx/interface/icons/building_types/icon_building_legendary_watchtower.dds"
|
icon = "gfx/interface/icons/building_types/special_buildings/legendary_watchtower.dds"
|
||||||
flat = yes
|
flat = yes
|
||||||
ai_chance = { value = 10 }
|
ai_chance = { value = 10 }
|
||||||
}
|
}
|
||||||
|
|
@ -218,7 +218,7 @@ clear_ground_for_legendary_building = {
|
||||||
}
|
}
|
||||||
current_description = clear_ground_legendary_hunting_lodge_desc
|
current_description = clear_ground_legendary_hunting_lodge_desc
|
||||||
localization = clear_ground_legendary_hunting_lodge
|
localization = clear_ground_legendary_hunting_lodge
|
||||||
icon = "gfx/interface/icons/building_types/icon_building_legendary_hunting_grounds.dds"
|
icon = "gfx/interface/icons/building_types/special_buildings/legendary_hunting_grounds.dds"
|
||||||
flat = yes
|
flat = yes
|
||||||
ai_chance = { value = 10 }
|
ai_chance = { value = 10 }
|
||||||
}
|
}
|
||||||
|
|
@ -297,7 +297,7 @@ pick_legendary_barony_decision = {
|
||||||
title_valid = {
|
title_valid = {
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = { exists = this }
|
limit = { exists = this }
|
||||||
title_province = { has_special_building_slot = no }
|
title_province = { has_special_district_slot = no }
|
||||||
is_capital_barony = yes
|
is_capital_barony = yes
|
||||||
holder = scope:ruler
|
holder = scope:ruler
|
||||||
is_leased_out = no
|
is_leased_out = no
|
||||||
|
|
@ -317,27 +317,27 @@ pick_legendary_barony_decision = {
|
||||||
trigger = root.var:clear_ground
|
trigger = root.var:clear_ground
|
||||||
flag:legendary_shrine = {
|
flag:legendary_shrine = {
|
||||||
scope:barony.title_province ?= {
|
scope:barony.title_province ?= {
|
||||||
add_special_building_slot = legendary_shrine
|
add_special_district_slot = legendary_shrine_district
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
flag:legendary_palace = {
|
flag:legendary_palace = {
|
||||||
scope:barony.title_province ?= {
|
scope:barony.title_province ?= {
|
||||||
add_special_building_slot = legendary_palace
|
add_special_district_slot = legendary_palace_district
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
flag:legendary_statue = {
|
flag:legendary_statue = {
|
||||||
scope:barony.title_province ?= {
|
scope:barony.title_province ?= {
|
||||||
add_special_building_slot = legendary_statue
|
add_special_district_slot = legendary_statue_district
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
flag:legendary_watchtower = {
|
flag:legendary_watchtower = {
|
||||||
scope:barony.title_province ?= {
|
scope:barony.title_province ?= {
|
||||||
add_special_building_slot = legendary_watchtower
|
add_special_district_slot = legendary_watchtower_district
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
flag:legendary_hunting_lodge = {
|
flag:legendary_hunting_lodge = {
|
||||||
scope:barony.title_province ?= {
|
scope:barony.title_province ?= {
|
||||||
add_special_building_slot = legendary_hunting_lodge
|
add_special_district_slot = legendary_hunting_lodge_district
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -398,6 +398,7 @@ pick_legendary_barony_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
|
has_variable = clear_ground
|
||||||
is_playable_character = yes
|
is_playable_character = yes
|
||||||
}
|
}
|
||||||
ai_will_do = {
|
ai_will_do = {
|
||||||
|
|
@ -452,8 +453,8 @@ isolate_capital_decision = {
|
||||||
}
|
}
|
||||||
OR = {
|
OR = {
|
||||||
any_held_title = {
|
any_held_title = {
|
||||||
has_province_with_epidemic = { intensity = any }
|
|
||||||
title_tier = county
|
title_tier = county
|
||||||
|
has_province_with_epidemic = { intensity = any }
|
||||||
}
|
}
|
||||||
capital_county ?= {
|
capital_county ?= {
|
||||||
any_neighboring_county = {
|
any_neighboring_county = {
|
||||||
|
|
@ -566,7 +567,24 @@ isolate_capital_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
|
is_landed = yes
|
||||||
|
highest_held_title_tier >= tier_county
|
||||||
NOT = { has_character_flag = ai_capital_isolation_cooldown }
|
NOT = { has_character_flag = ai_capital_isolation_cooldown }
|
||||||
|
# Mirrors the is_ai branch of is_shown
|
||||||
|
OR = {
|
||||||
|
any_held_title = {
|
||||||
|
title_tier = county
|
||||||
|
has_province_with_epidemic = { intensity = any }
|
||||||
|
}
|
||||||
|
capital_county ?= {
|
||||||
|
OR = {
|
||||||
|
has_county_modifier = isolate_capital_decision_modifier
|
||||||
|
any_neighboring_county = {
|
||||||
|
has_province_with_epidemic = { intensity = any }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_will_do = {
|
ai_will_do = {
|
||||||
|
|
@ -745,25 +763,33 @@ isolate_family_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
NOT = { has_character_flag = ai_unisolate_cooldown }
|
NOR = {
|
||||||
|
has_character_flag = ai_unisolate_cooldown
|
||||||
|
has_government = landless_adventurer_government
|
||||||
|
}
|
||||||
OR = {
|
OR = {
|
||||||
has_character_modifier = isolating_modifier
|
has_character_modifier = isolating_modifier
|
||||||
capital_county ?= {
|
|
||||||
OR = {
|
|
||||||
# Own capital
|
|
||||||
has_province_with_epidemic = { intensity = any }
|
|
||||||
# Neighboring own capital
|
|
||||||
any_neighboring_county = {
|
|
||||||
has_province_with_epidemic = { intensity = any }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
# Somewhere in domain
|
# Somewhere in domain
|
||||||
any_held_title = {
|
any_held_title = {
|
||||||
title_tier = county
|
title_tier = county
|
||||||
has_province_with_epidemic = { intensity = any }
|
has_province_with_epidemic = { intensity = any }
|
||||||
}
|
}
|
||||||
tgp_natural_disaster_character_is_affected_by_any_imminent_disaster_trigger = yes
|
AND = {
|
||||||
|
has_trait = paranoid # without a really valid reason, ai_will_do is only positive enough to fire when paranoid
|
||||||
|
OR = {
|
||||||
|
capital_county ?= {
|
||||||
|
OR = {
|
||||||
|
# Own capital
|
||||||
|
has_province_with_epidemic = { intensity = any }
|
||||||
|
# Neighboring own capital
|
||||||
|
any_neighboring_county = {
|
||||||
|
has_province_with_epidemic = { intensity = any }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tgp_natural_disaster_character_is_affected_by_any_imminent_disaster_trigger = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -421,7 +421,7 @@ stewardship_oath_1_decision = {
|
||||||
}
|
}
|
||||||
every_realm_county = {
|
every_realm_county = {
|
||||||
custom = custom_every_realm_county
|
custom = custom_every_realm_county
|
||||||
change_development_progress_with_overflow = 250
|
change_prosperity_progress_with_overflow = 250
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -508,7 +508,7 @@ stewardship_oath_2_decision = {
|
||||||
|
|
||||||
}
|
}
|
||||||
county = {
|
county = {
|
||||||
change_development_progress_with_overflow = 50
|
change_prosperity_progress_with_overflow = 50
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -549,7 +549,7 @@ learning_oath_1_decision = {
|
||||||
}
|
}
|
||||||
trigger_else = {
|
trigger_else = {
|
||||||
title_province = {
|
title_province = {
|
||||||
has_special_building_slot = no
|
has_special_district_slot = no
|
||||||
is_county_capital = yes
|
is_county_capital = yes
|
||||||
}
|
}
|
||||||
holder = scope:ruler
|
holder = scope:ruler
|
||||||
|
|
@ -754,7 +754,7 @@ learning_oath_1_decision = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scope:barony.title_province ?= {
|
scope:barony.title_province ?= {
|
||||||
add_special_building = generic_university
|
add_special_district = generic_university_district
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
|
|
|
||||||
|
|
@ -175,6 +175,7 @@ convert_to_local_culture_decision = {
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
is_playable_character = yes
|
is_playable_character = yes
|
||||||
|
exists = capital_province
|
||||||
culture != capital_province.culture
|
culture != capital_province.culture
|
||||||
is_landless_adventurer = no
|
is_landless_adventurer = no
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1387,20 +1387,21 @@ return_rome_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
is_at_war = no
|
|
||||||
top_liege = this
|
top_liege = this
|
||||||
religion = religion:catholic_religion
|
religion = religion:catholic_religion
|
||||||
ai_zeal > very_high_negative_ai_value
|
ai_zeal > very_high_negative_ai_value
|
||||||
title:c_roma = {
|
title:c_roma = {
|
||||||
holder = {
|
holder = {
|
||||||
is_ai = yes
|
is_ai = yes
|
||||||
|
top_liege = root
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
is_at_war = no
|
||||||
|
ai_zeal > very_high_negative_ai_value
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_will_do = {
|
ai_will_do = {
|
||||||
base = 100
|
base = 100
|
||||||
|
|
||||||
modifier = { # If you fought the pope to get rome, don't immediately hand it back
|
modifier = { # If you fought the pope to get rome, don't immediately hand it back
|
||||||
factor = 0
|
factor = 0
|
||||||
faith.religious_head = {
|
faith.religious_head = {
|
||||||
|
|
@ -2513,6 +2514,8 @@ petition_head_of_faith_decision = {
|
||||||
cooldown = { years = 4 }
|
cooldown = { years = 4 }
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
is_landless_adventurer = no
|
||||||
|
is_landless_merchant = no
|
||||||
is_ai = no
|
is_ai = no
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
# Antipopes, their sponsors, and their realms use petition_antipope_decision instead
|
# Antipopes, their sponsors, and their realms use petition_antipope_decision instead
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ hold_court_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
is_invisible = yes
|
is_invisible = yes
|
||||||
|
|
||||||
cost = {
|
cost = {
|
||||||
|
|
@ -339,10 +339,10 @@ petition_liege_decision = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_if = { # Opinion
|
trigger_if = { # Opinion
|
||||||
limit = { scope:petition_liege_county_opinion = yes }
|
limit = { scope:petition_liege_popular_opinion = yes }
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = petition_liege_county_opinion_tt
|
text = petition_liege_popular_opinion_tt
|
||||||
any_held_title = { petition_liege_county_opinion_trigger = yes }
|
any_held_title = { petition_liege_popular_opinion_trigger = yes }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_if = { # Fortify
|
trigger_if = { # Fortify
|
||||||
|
|
@ -400,12 +400,12 @@ petition_liege_decision = {
|
||||||
liege.gold > main_building_tier_1_cost
|
liege.gold > main_building_tier_1_cost
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_if = { # Development
|
trigger_if = { # Prosperity
|
||||||
limit = { scope:petition_liege_development = yes }
|
limit = { scope:petition_liege_prosperity = yes }
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = petition_liege_development_tt
|
text = petition_liege_prosperity_tt
|
||||||
exists = liege
|
exists = liege
|
||||||
liege.capital_province.county.development_level >= petitioner_development_difference_decision_value
|
liege.capital_province.county.prosperity_level >= petitioner_prosperity_difference_decision_value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_if = { # House Fief
|
trigger_if = { # House Fief
|
||||||
|
|
@ -724,22 +724,22 @@ petition_liege_decision = {
|
||||||
ai_chance = { value = 0 } # Currently unused
|
ai_chance = { value = 0 } # Currently unused
|
||||||
}
|
}
|
||||||
item = { # Opinion
|
item = { # Opinion
|
||||||
value = petition_liege_county_opinion
|
value = petition_liege_popular_opinion
|
||||||
is_shown = {
|
is_shown = {
|
||||||
petition_liege_admin_valid_trigger = no
|
petition_liege_admin_valid_trigger = no
|
||||||
}
|
}
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = petition_liege_county_opinion_tt
|
text = petition_liege_popular_opinion_tt
|
||||||
any_held_title = { petition_liege_county_opinion_trigger = yes }
|
any_held_title = { petition_liege_popular_opinion_trigger = yes }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
current_description = petition_liege_county_opinion_desc
|
current_description = petition_liege_popular_opinion_desc
|
||||||
localization = petition_liege_decision_option_county_opinion
|
localization = petition_liege_decision_option_popular_opinion
|
||||||
icon = "gfx/interface/icons/message_feed/tier_up.dds"
|
icon = "gfx/interface/icons/message_feed/tier_up.dds"
|
||||||
ai_chance = { value = 0 } # Currently unused
|
ai_chance = { value = 0 } # Currently unused
|
||||||
}
|
}
|
||||||
### Construction/Development
|
### Construction/Prosperity
|
||||||
item = { # Fortify
|
item = { # Fortify
|
||||||
value = petition_liege_fortify_border
|
value = petition_liege_fortify_border
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
|
@ -810,18 +810,18 @@ petition_liege_decision = {
|
||||||
icon = "gfx/interface/icons/message_feed/religious.dds"
|
icon = "gfx/interface/icons/message_feed/religious.dds"
|
||||||
ai_chance = { value = 0 } # Currently unused
|
ai_chance = { value = 0 } # Currently unused
|
||||||
}
|
}
|
||||||
item = { # Development
|
item = { # Prosperity
|
||||||
value = petition_liege_development
|
value = petition_liege_prosperity
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = petition_liege_development_tt
|
text = petition_liege_prosperity_tt
|
||||||
exists = liege
|
exists = liege
|
||||||
liege.capital_province.county.development_level >= petitioner_development_difference_decision_value
|
liege.capital_province.county.prosperity_level >= petitioner_prosperity_difference_decision_value
|
||||||
}
|
}
|
||||||
is_landed = yes
|
is_landed = yes
|
||||||
}
|
}
|
||||||
current_description = petition_liege_development_desc
|
current_description = petition_liege_prosperity_desc
|
||||||
localization = petition_liege_decision_option_development
|
localization = petition_liege_decision_option_prosperity
|
||||||
icon = "gfx/interface/icons/message_feed/guest.dds"
|
icon = "gfx/interface/icons/message_feed/guest.dds"
|
||||||
ai_chance = { value = 0 } # Currently unused
|
ai_chance = { value = 0 } # Currently unused
|
||||||
}
|
}
|
||||||
|
|
@ -883,8 +883,8 @@ petition_liege_decision = {
|
||||||
scope:petition_liege_county_convert = { # Convert County
|
scope:petition_liege_county_convert = { # Convert County
|
||||||
set_variable = { name = petition_type value = flag:county_convert }
|
set_variable = { name = petition_type value = flag:county_convert }
|
||||||
}
|
}
|
||||||
scope:petition_liege_county_opinion = { # County Opinion
|
scope:petition_liege_popular_opinion = { # County Opinion
|
||||||
set_variable = { name = petition_type value = flag:county_opinion }
|
set_variable = { name = petition_type value = flag:popular_opinion }
|
||||||
}
|
}
|
||||||
scope:petition_liege_fortify_border = { # Fortify Border
|
scope:petition_liege_fortify_border = { # Fortify Border
|
||||||
set_variable = { name = petition_type value = flag:fortify_border }
|
set_variable = { name = petition_type value = flag:fortify_border }
|
||||||
|
|
@ -901,8 +901,8 @@ petition_liege_decision = {
|
||||||
scope:petition_liege_construct_temple = { # Construct Temple
|
scope:petition_liege_construct_temple = { # Construct Temple
|
||||||
set_variable = { name = petition_type value = flag:construct_temple }
|
set_variable = { name = petition_type value = flag:construct_temple }
|
||||||
}
|
}
|
||||||
scope:petition_liege_development = { # Development
|
scope:petition_liege_prosperity = { # Prosperity
|
||||||
set_variable = { name = petition_type value = flag:development }
|
set_variable = { name = petition_type value = flag:prosperity }
|
||||||
}
|
}
|
||||||
scope:petition_liege_gold = { # Gold
|
scope:petition_liege_gold = { # Gold
|
||||||
set_variable = { name = petition_type value = flag:gold }
|
set_variable = { name = petition_type value = flag:gold }
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ pay_homage_decision = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = major
|
||||||
|
sort_order = 20
|
||||||
|
|
||||||
cost = {
|
cost = {
|
||||||
prestige = standard_activity_base_cost
|
prestige = standard_activity_base_cost
|
||||||
|
|
@ -348,7 +349,23 @@ pay_homage_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
|
liege ?= { has_royal_court = yes }
|
||||||
|
top_liege != this
|
||||||
|
OR = {
|
||||||
|
government_has_flag = government_is_feudal
|
||||||
|
government_has_flag = government_is_clan
|
||||||
|
}
|
||||||
is_at_war = no
|
is_at_war = no
|
||||||
|
NOT = {
|
||||||
|
liege = { has_variable = pay_homage_cooldown }
|
||||||
|
}
|
||||||
|
trigger_if = {
|
||||||
|
limit = {
|
||||||
|
has_variable = pay_homage_grace
|
||||||
|
exists = liege
|
||||||
|
}
|
||||||
|
NOT = { var:pay_homage_grace = liege }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_will_do = {
|
ai_will_do = {
|
||||||
|
|
|
||||||
|
|
@ -366,7 +366,7 @@ petition_ceremonial_liege_decision = {
|
||||||
title = {
|
title = {
|
||||||
first_valid = {
|
first_valid = {
|
||||||
triggered_desc = {
|
triggered_desc = {
|
||||||
trigger = { exists = top_liege.primary_title.var:administrative_ui_special_title.holder }
|
trigger = { exists = ceremonial_liege }
|
||||||
desc = petition_ceremonial_liege_decision_title
|
desc = petition_ceremonial_liege_decision_title
|
||||||
}
|
}
|
||||||
desc = petition_ceremonial_liege_decision
|
desc = petition_ceremonial_liege_decision
|
||||||
|
|
@ -450,10 +450,10 @@ petition_ceremonial_liege_decision = {
|
||||||
government_has_mechanic = administrative
|
government_has_mechanic = administrative
|
||||||
is_independent_ruler = no
|
is_independent_ruler = no
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = { exists = top_liege.primary_title.var:administrative_ui_special_title.holder }
|
limit = { exists = ceremonial_liege }
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = petition_ceremonial_liege_regent_already_given_tt
|
text = petition_ceremonial_liege_regent_already_given_tt
|
||||||
NOT = { var:petition_liege_regent_support ?= top_liege.primary_title.var:administrative_ui_special_title.holder }
|
NOT = { var:petition_liege_regent_support ?= ceremonial_liege }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_else = { always = no }
|
trigger_else = { always = no }
|
||||||
|
|
@ -494,7 +494,7 @@ petition_ceremonial_liege_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
top_liege.primary_title.var:administrative_ui_special_title.holder = { save_scope_as = ceremonial_liege }
|
ceremonial_liege = { save_scope_as = ceremonial_liege }
|
||||||
custom_tooltip = petition_ceremonial_liege_decision_effects
|
custom_tooltip = petition_ceremonial_liege_decision_effects
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
|
||||||
|
|
@ -7,52 +7,6 @@
|
||||||
# by Mathilda Bjarnehed
|
# by Mathilda Bjarnehed
|
||||||
##################################################
|
##################################################
|
||||||
|
|
||||||
# Deprecated decision of yore.
|
|
||||||
#convert_to_feudalism_decision = {
|
|
||||||
#picture = {
|
|
||||||
#reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
|
||||||
#}
|
|
||||||
#decision_group_type = major
|
|
||||||
#desc = convert_to_feudalism_decision_desc
|
|
||||||
#
|
|
||||||
#ai_check_interval = 36
|
|
||||||
#
|
|
||||||
#is_shown = {
|
|
||||||
#government_has_flag = government_is_tribal
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
#is_valid = {
|
|
||||||
#has_realm_law = tribal_authority_3
|
|
||||||
#custom_description = {
|
|
||||||
#text = faith_is_reformed
|
|
||||||
#subject = root
|
|
||||||
#faith = { NOT = { has_doctrine_parameter = unreformed } }
|
|
||||||
#}
|
|
||||||
#prestige_level = 5
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
#cost = {
|
|
||||||
#prestige = 150
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
#effect = {
|
|
||||||
#change_government = feudal_government
|
|
||||||
#trigger_event = major_decisions.0001
|
|
||||||
#add_realm_law_skip_effects = crown_authority_0
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
#ai_potential = {
|
|
||||||
##always = yes
|
|
||||||
#}
|
|
||||||
#
|
|
||||||
#ai_will_do = {
|
|
||||||
#base = 100
|
|
||||||
#modifier = { #Go for the more lenient decision if this is the case
|
|
||||||
#add = -100
|
|
||||||
#liege = { government_has_flag = government_is_feudal }
|
|
||||||
#}
|
|
||||||
#}
|
|
||||||
#}
|
|
||||||
|
|
||||||
##################################################
|
##################################################
|
||||||
# Convert Realm to Feudalism/Clan through Liege
|
# Convert Realm to Feudalism/Clan through Liege
|
||||||
|
|
@ -83,6 +37,7 @@ convert_to_feudalism_liege_converted_decision = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = major
|
||||||
|
sort_order = 100
|
||||||
desc = convert_to_feudalism_liege_converted_decision_desc
|
desc = convert_to_feudalism_liege_converted_decision_desc
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
|
|
@ -134,12 +89,47 @@ convert_to_feudalism_liege_converted_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
cost = {
|
cost = {
|
||||||
prestige = 150
|
prestige = 250
|
||||||
}
|
}
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
trigger_event = major_decisions.0001
|
trigger_event = major_decisions.0001
|
||||||
save_scope_as = actor
|
save_scope_as = actor
|
||||||
|
# Bonus Cities and Temples only when the liege's culture is in a later era than ours
|
||||||
|
save_scope_value_as = {
|
||||||
|
name = feudalize_bonus_holdings
|
||||||
|
value = no
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
liege ?= {
|
||||||
|
OR = {
|
||||||
|
AND = {
|
||||||
|
culture = { has_cultural_era_or_later = culture_era_early_medieval }
|
||||||
|
root.culture = {
|
||||||
|
NOT = { has_cultural_era_or_later = culture_era_early_medieval }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
AND = {
|
||||||
|
culture = { has_cultural_era_or_later = culture_era_high_medieval }
|
||||||
|
root.culture = {
|
||||||
|
NOT = { has_cultural_era_or_later = culture_era_high_medieval }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
AND = {
|
||||||
|
culture = { has_cultural_era_or_later = culture_era_late_medieval }
|
||||||
|
root.culture = {
|
||||||
|
NOT = { has_cultural_era_or_later = culture_era_late_medieval }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
save_scope_value_as = {
|
||||||
|
name = feudalize_bonus_holdings
|
||||||
|
value = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
convert_whole_realm_to_feudalism_effect = yes
|
convert_whole_realm_to_feudalism_effect = yes
|
||||||
hidden_effect = {
|
hidden_effect = {
|
||||||
every_vassal = {
|
every_vassal = {
|
||||||
|
|
@ -166,7 +156,8 @@ convert_clan_to_feudalism_through_liege_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
|
sort_order = 40
|
||||||
desc = convert_clan_to_feudalism_through_liege_decision_desc
|
desc = convert_clan_to_feudalism_through_liege_decision_desc
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
|
|
@ -211,7 +202,7 @@ convert_clan_to_feudalism_through_liege_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
cost = {
|
cost = {
|
||||||
prestige = 150
|
prestige = 250
|
||||||
}
|
}
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
|
|
@ -233,7 +224,7 @@ convert_clan_to_feudalism_through_liege_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
prestige >= 150
|
prestige >= 250
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_will_do = {
|
ai_will_do = {
|
||||||
|
|
@ -255,7 +246,8 @@ convert_feudalism_to_clan_through_liege_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
|
sort_order = 40
|
||||||
desc = convert_feudalism_to_clan_through_liege_decision_desc
|
desc = convert_feudalism_to_clan_through_liege_decision_desc
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
|
|
@ -300,7 +292,7 @@ convert_feudalism_to_clan_through_liege_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
cost = {
|
cost = {
|
||||||
prestige = 150
|
prestige = 250
|
||||||
}
|
}
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
|
|
@ -322,7 +314,7 @@ convert_feudalism_to_clan_through_liege_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
prestige >= 150
|
prestige >= 250
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_will_do = {
|
ai_will_do = {
|
||||||
|
|
@ -359,6 +351,7 @@ convert_whole_realm_to_feudalism_decision = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = major
|
||||||
|
sort_order = 100
|
||||||
desc = convert_whole_realm_to_feudalism_decision_desc
|
desc = convert_whole_realm_to_feudalism_decision_desc
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
|
|
@ -384,38 +377,70 @@ convert_whole_realm_to_feudalism_decision = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
trigger_if = {
|
||||||
|
limit = {
|
||||||
|
government_has_flag = government_is_wanua
|
||||||
|
is_ai = yes
|
||||||
|
}
|
||||||
|
faith = { has_doctrine = doctrine_monotheist }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
is_valid = {
|
is_valid = {
|
||||||
has_realm_law = tribal_authority_3
|
has_realm_law = tribal_authority_3
|
||||||
custom_description = {
|
trigger_if = {
|
||||||
text = faith_is_reformed
|
limit = {
|
||||||
subject = root
|
faith = { has_doctrine_parameter = unreformed }
|
||||||
faith = { NOT = { has_doctrine_parameter = unreformed } }
|
faith_qualifies_for_west_african_pagan_feudalisation_trigger = yes
|
||||||
|
}
|
||||||
|
OR = {
|
||||||
|
custom_description = {
|
||||||
|
text = faith_is_reformed
|
||||||
|
subject = root
|
||||||
|
faith = { NOT = { has_doctrine_parameter = unreformed } }
|
||||||
|
}
|
||||||
|
calc_true_if = {
|
||||||
|
amount >= 2
|
||||||
|
realm_size >= minor_realm_size
|
||||||
|
highest_held_title_tier >= tier_kingdom
|
||||||
|
custom_tooltip = {
|
||||||
|
text = convert_whole_realm_to_feudalism_west_african_pagan_decision.tt.vassal_count
|
||||||
|
any_vassal = { count >= convert_whole_realm_to_feudalism_west_african_pagan_decision_vassal_count_value }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_else = {
|
||||||
|
custom_description = {
|
||||||
|
text = faith_is_reformed
|
||||||
|
subject = root
|
||||||
|
faith = { NOT = { has_doctrine_parameter = unreformed } }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
prestige_level >= 2
|
prestige_level >= 2
|
||||||
capital_province.county = {
|
capital_province = {
|
||||||
development_level >= convert_to_feudalism_development_requirement
|
province_size_level >= 2
|
||||||
}
|
}
|
||||||
custom_description = { #You need to have 70% of all (non-regional/unique) tribal innovations!
|
custom_description = { #You need to have 70% of all (non-regional/unique) tribal innovations!
|
||||||
text = has_all_tribal_innovations
|
text = has_all_tribal_innovations
|
||||||
subject = root.culture
|
subject = root.culture
|
||||||
culture = {
|
culture = {
|
||||||
calc_true_if = {
|
calc_true_if = {
|
||||||
amount >= 9
|
amount >= 10
|
||||||
has_innovation = innovation_motte
|
has_innovation = innovation_motte
|
||||||
has_innovation = innovation_catapult
|
has_innovation = innovation_catapult
|
||||||
has_innovation = innovation_barracks
|
has_innovation = innovation_barracks
|
||||||
has_innovation = innovation_mustering_grounds
|
has_innovation = innovation_mustering_grounds
|
||||||
has_innovation = innovation_bannus
|
has_innovation = innovation_bannus
|
||||||
has_innovation = innovation_quilted_armor
|
has_innovation = innovation_quilted_armor
|
||||||
|
has_innovation = innovation_pattern_welding
|
||||||
has_innovation = innovation_gavelkind
|
has_innovation = innovation_gavelkind
|
||||||
has_innovation = innovation_crop_rotation
|
has_innovation = innovation_crop_rotation
|
||||||
has_innovation = innovation_city_planning
|
has_innovation = innovation_city_planning
|
||||||
has_innovation = innovation_casus_belli
|
has_innovation = innovation_casus_belli
|
||||||
has_innovation = innovation_plenary_assemblies
|
has_innovation = innovation_plenary_assemblies
|
||||||
has_innovation = innovation_ledger
|
has_innovation = innovation_ledger
|
||||||
has_innovation = innovation_development_01
|
has_innovation = innovation_prosperity_01
|
||||||
has_innovation = innovation_currency_01
|
has_innovation = innovation_currency_01
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -437,7 +462,7 @@ convert_whole_realm_to_feudalism_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
cost = {
|
cost = {
|
||||||
prestige = 200
|
prestige = 500
|
||||||
}
|
}
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
|
|
@ -476,7 +501,8 @@ convert_to_tribalism_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
|
sort_order = 40
|
||||||
desc = convert_to_tribalism_decision_desc
|
desc = convert_to_tribalism_decision_desc
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
|
|
@ -540,25 +566,28 @@ convert_to_tribalism_decision = {
|
||||||
# by Ewan Cowhig Croft
|
# by Ewan Cowhig Croft
|
||||||
##################################################
|
##################################################
|
||||||
|
|
||||||
# A decision for West African pagans to feudalise without reforming.
|
|
||||||
|
###### DEPRECATED ###### (merged the functionality into regular feudal/clan adopting)
|
||||||
### Adopt [ROOT.Char.Custom('GetTribalReformGovernment')|U] Ways: #weak (West African Pagan)#! ###
|
### Adopt [ROOT.Char.Custom('GetTribalReformGovernment')|U] Ways: #weak (West African Pagan)#! ###
|
||||||
convert_whole_realm_to_feudalism_west_african_pagan_decision = {
|
convert_whole_realm_to_feudalism_west_african_pagan_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = major
|
||||||
|
sort_order = 100
|
||||||
desc = convert_whole_realm_to_feudalism_west_african_pagan_decision_desc
|
desc = convert_whole_realm_to_feudalism_west_african_pagan_decision_desc
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
county = 72
|
county = 0
|
||||||
duchy = 36
|
duchy = 0
|
||||||
kingdom = 36
|
kingdom = 0
|
||||||
empire = 36
|
empire = 0
|
||||||
hegemony = 36
|
hegemony = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
always = no
|
||||||
# Only tribals need formalise.
|
# Only tribals need formalise.
|
||||||
government_has_flag = government_is_tribal
|
government_has_flag = government_is_tribal
|
||||||
# Unreformed West African Pagans are our targets.
|
# Unreformed West African Pagans are our targets.
|
||||||
|
|
@ -584,9 +613,9 @@ convert_whole_realm_to_feudalism_west_african_pagan_decision = {
|
||||||
prestige_level >= high_prestige_level
|
prestige_level >= high_prestige_level
|
||||||
piety_level >= high_piety_level
|
piety_level >= high_piety_level
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = convert_whole_realm_to_feudalism_west_african_pagan_decision.tt.wa_capital_development
|
text = convert_whole_realm_to_feudalism_west_african_pagan_decision.tt.wa_capital_prosperity
|
||||||
capital_county = {
|
capital_county = {
|
||||||
development_level >= convert_whole_realm_to_feudalism_west_african_pagan_decision_wa_capital_development_value
|
prosperity_level >= convert_whole_realm_to_feudalism_west_african_pagan_decision_wa_capital_prosperity_value
|
||||||
title_province = { geographical_region = world_africa_west }
|
title_province = { geographical_region = world_africa_west }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -597,20 +626,21 @@ convert_whole_realm_to_feudalism_west_african_pagan_decision = {
|
||||||
subject = root.culture
|
subject = root.culture
|
||||||
culture = {
|
culture = {
|
||||||
calc_true_if = {
|
calc_true_if = {
|
||||||
amount >= 9
|
amount >= 10
|
||||||
has_innovation = innovation_motte
|
has_innovation = innovation_motte
|
||||||
has_innovation = innovation_catapult
|
has_innovation = innovation_catapult
|
||||||
has_innovation = innovation_barracks
|
has_innovation = innovation_barracks
|
||||||
has_innovation = innovation_mustering_grounds
|
has_innovation = innovation_mustering_grounds
|
||||||
has_innovation = innovation_bannus
|
has_innovation = innovation_bannus
|
||||||
has_innovation = innovation_quilted_armor
|
has_innovation = innovation_quilted_armor
|
||||||
|
has_innovation = innovation_pattern_welding
|
||||||
has_innovation = innovation_gavelkind
|
has_innovation = innovation_gavelkind
|
||||||
has_innovation = innovation_crop_rotation
|
has_innovation = innovation_crop_rotation
|
||||||
has_innovation = innovation_city_planning
|
has_innovation = innovation_city_planning
|
||||||
has_innovation = innovation_casus_belli
|
has_innovation = innovation_casus_belli
|
||||||
has_innovation = innovation_plenary_assemblies
|
has_innovation = innovation_plenary_assemblies
|
||||||
has_innovation = innovation_ledger
|
has_innovation = innovation_ledger
|
||||||
has_innovation = innovation_development_01
|
has_innovation = innovation_prosperity_01
|
||||||
has_innovation = innovation_currency_01
|
has_innovation = innovation_currency_01
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -680,6 +710,7 @@ declare_bloodline_holy_decision = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_family_tree.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_family_tree.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = major
|
||||||
|
sort_order = 20
|
||||||
desc = declare_bloodline_holy_decision_desc
|
desc = declare_bloodline_holy_decision_desc
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
|
|
@ -799,6 +830,7 @@ strengthen_bloodline_decision = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = major
|
||||||
|
sort_order = 20
|
||||||
desc = strengthen_bloodline_decision_desc
|
desc = strengthen_bloodline_decision_desc
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
|
|
@ -913,6 +945,7 @@ dynasty_of_many_crowns_decision = {
|
||||||
}
|
}
|
||||||
desc = dynasty_of_many_crowns_decision_desc
|
desc = dynasty_of_many_crowns_decision_desc
|
||||||
decision_group_type = major
|
decision_group_type = major
|
||||||
|
sort_order = 20
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
county = 0
|
county = 0
|
||||||
|
|
@ -1012,7 +1045,8 @@ found_kingdom_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
|
sort_order = 50
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
county = 0
|
county = 0
|
||||||
|
|
@ -1147,7 +1181,8 @@ found_empire_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
|
sort_order = 50
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
county = 0
|
county = 0
|
||||||
|
|
@ -1171,6 +1206,7 @@ found_empire_decision = {
|
||||||
has_game_rule = off_custom_kingdoms
|
has_game_rule = off_custom_kingdoms
|
||||||
}
|
}
|
||||||
is_landed_or_landless_administrative = yes
|
is_landed_or_landless_administrative = yes
|
||||||
|
NOT = { government_has_flag = government_is_republic }
|
||||||
is_confederation_member = no
|
is_confederation_member = no
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2244,36 +2280,61 @@ found_witch_coven_decision = {
|
||||||
|
|
||||||
### Repay Loan ###
|
### Repay Loan ###
|
||||||
repay_loan_decision = {
|
repay_loan_decision = {
|
||||||
picture = {
|
picture = { reference = "gfx/interface/illustrations/decisions/decision_spend_money.dds" }
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_spend_money.dds"
|
|
||||||
}
|
|
||||||
decision_group_type = major
|
decision_group_type = major
|
||||||
|
|
||||||
desc = repay_loan_decision_decision_desc
|
desc = repay_loan_decision_decision_desc
|
||||||
selection_tooltip = repay_loan_decision_decision_tooltip
|
selection_tooltip = repay_loan_decision_decision_tooltip
|
||||||
|
|
||||||
ai_check_interval = 0
|
ai_check_interval = 24
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
var:loan_holder ?= {
|
any_owned_story = {
|
||||||
any_in_list = {
|
story_type = story_cycle_loan
|
||||||
variable = owes_me_money
|
exists = var:amount_owed
|
||||||
this = root
|
var:lender ?= {
|
||||||
|
any_in_list = {
|
||||||
|
variable = owes_me_money
|
||||||
|
this = root
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exists = var:loan_amount_owed
|
|
||||||
}
|
}
|
||||||
|
|
||||||
is_valid_showing_failures_only = {
|
is_valid_showing_failures_only = {
|
||||||
is_available = yes
|
is_available_quick = {
|
||||||
gold >= var:loan_amount_owed
|
adult = yes
|
||||||
|
incapable = no
|
||||||
|
}
|
||||||
|
custom_tooltip = {
|
||||||
|
text = repay_loan_decision_afford_any_tt
|
||||||
|
any_owned_story = {
|
||||||
|
story_type = story_cycle_loan
|
||||||
|
exists = var:amount_owed
|
||||||
|
var:amount_owed <= prev.gold
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
var:loan_holder ?= { save_scope_as = recipient }
|
scope:selected_item ?= { save_scope_as = recipient }
|
||||||
pay_short_term_gold = {
|
ordered_owned_story = {
|
||||||
gold = var:loan_amount_owed
|
limit = {
|
||||||
target = scope:recipient
|
story_type = story_cycle_loan
|
||||||
|
exists = var:amount_owed
|
||||||
|
var:lender = {
|
||||||
|
this = scope:recipient
|
||||||
|
any_in_list = {
|
||||||
|
variable = owes_me_money
|
||||||
|
this = root
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
order_by = { # repay smallest first
|
||||||
|
value = 0
|
||||||
|
subtract = var:amount_owed
|
||||||
|
}
|
||||||
|
save_scope_as = repaid_loan
|
||||||
}
|
}
|
||||||
clear_loanee_variables_effect = yes
|
clear_loanee_variables_effect = yes
|
||||||
scope:recipient = {
|
scope:recipient = {
|
||||||
|
|
@ -2282,14 +2343,37 @@ repay_loan_decision = {
|
||||||
target = root
|
target = root
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
ai_potential = {
|
ai_select_item = {
|
||||||
always = no
|
scope:actor = {
|
||||||
|
ordered_owned_story = {
|
||||||
|
limit = {
|
||||||
|
story_type = story_cycle_loan
|
||||||
|
exists = var:amount_owed
|
||||||
|
var:lender ?= {
|
||||||
|
any_in_list = {
|
||||||
|
variable = owes_me_money
|
||||||
|
this = scope:actor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var:amount_owed < scope:actor.short_term_gold
|
||||||
|
}
|
||||||
|
order_by = {
|
||||||
|
value = 0
|
||||||
|
add = var:years_since
|
||||||
|
if = {
|
||||||
|
limit = { var:lender = { is_ai = no } }
|
||||||
|
add = 2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var:lender = { save_scope_as = selected_item }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_will_do = {
|
ai_will_do = {
|
||||||
base = 0
|
base = 25
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2500,7 +2584,8 @@ found_duchy_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
|
sort_order = 50
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
county = 60
|
county = 60
|
||||||
|
|
@ -2606,6 +2691,7 @@ expand_duchy_decision = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = realm
|
decision_group_type = realm
|
||||||
|
sort_order = 20
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
county = 0
|
county = 0
|
||||||
|
|
@ -2671,6 +2757,7 @@ expand_duchy_decision = {
|
||||||
has_game_rule = on_custom_duchies
|
has_game_rule = on_custom_duchies
|
||||||
}
|
}
|
||||||
is_landed_or_landless_administrative = yes
|
is_landed_or_landless_administrative = yes
|
||||||
|
NOT = { government_has_flag = government_is_republic }
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = {
|
limit = {
|
||||||
highest_held_title_tier = tier_duchy
|
highest_held_title_tier = tier_duchy
|
||||||
|
|
@ -2821,7 +2908,7 @@ expand_duchy_decision = {
|
||||||
}
|
}
|
||||||
scope:barony.duchy = {
|
scope:barony.duchy = {
|
||||||
ordered_de_jure_county = {
|
ordered_de_jure_county = {
|
||||||
order_by = development_level
|
order_by = prosperity_level
|
||||||
limit = { NOT = { this = scope:barony.county } }
|
limit = { NOT = { this = scope:barony.county } }
|
||||||
save_scope_as = new_duchy_capital
|
save_scope_as = new_duchy_capital
|
||||||
}
|
}
|
||||||
|
|
@ -2880,6 +2967,7 @@ set_de_jure_capital_decision = {
|
||||||
reference = "gfx/interface/illustrations/decisions/ep3_decision_city.dds"
|
reference = "gfx/interface/illustrations/decisions/ep3_decision_city.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = realm
|
decision_group_type = realm
|
||||||
|
sort_order = 20
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
county = 0
|
county = 0
|
||||||
|
|
@ -3147,7 +3235,6 @@ set_de_jure_capital_decision = {
|
||||||
scope:current_de_jure_scope ?= {
|
scope:current_de_jure_scope ?= {
|
||||||
set_capital_county = root.capital_county
|
set_capital_county = root.capital_county
|
||||||
}
|
}
|
||||||
# A bit of an ugly script hack, to make sure the Duchy Building slot is properly moved, which happens when a duchy capital is moved out of the duchy de jure. We temporarily move them out of the duchy de jure, and back again, to force this effect. Remove when Code gets a chance to have a look at it
|
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
scope:set_duchy_capital = yes
|
scope:set_duchy_capital = yes
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,10 @@ recruit_court_position_decision = {
|
||||||
decision_group_type = courtier
|
decision_group_type = courtier
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
is_landed_or_landless_administrative_or_theocratic = yes
|
OR = {
|
||||||
|
is_landed_or_landless_administrative_or_theocratic = yes
|
||||||
|
government_has_flag = government_is_merchant
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
is_valid_showing_failures_only = {
|
is_valid_showing_failures_only = {
|
||||||
|
|
@ -164,6 +167,7 @@ recruit_court_position_decision = {
|
||||||
item = { # Charioteer
|
item = { # Charioteer
|
||||||
value = hire_charioteer_decision
|
value = hire_charioteer_decision
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
is_landed_or_landless_administrative_or_theocratic = yes
|
||||||
has_ep3_dlc_trigger = yes
|
has_ep3_dlc_trigger = yes
|
||||||
is_landless_adventurer = no
|
is_landless_adventurer = no
|
||||||
culture = {
|
culture = {
|
||||||
|
|
@ -188,6 +192,7 @@ recruit_court_position_decision = {
|
||||||
item = { # Bookmaker
|
item = { # Bookmaker
|
||||||
value = hire_bookmaker_decision
|
value = hire_bookmaker_decision
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
is_landed_or_landless_administrative_or_theocratic = yes
|
||||||
has_ep3_dlc_trigger = yes
|
has_ep3_dlc_trigger = yes
|
||||||
is_landless_adventurer = no
|
is_landless_adventurer = no
|
||||||
culture = {
|
culture = {
|
||||||
|
|
@ -212,6 +217,7 @@ recruit_court_position_decision = {
|
||||||
item = { # Eunuch
|
item = { # Eunuch
|
||||||
value = hire_eunuch_decision
|
value = hire_eunuch_decision
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
is_landed_or_landless_administrative_or_theocratic = yes
|
||||||
has_ep3_dlc_trigger = yes
|
has_ep3_dlc_trigger = yes
|
||||||
is_landless_adventurer = no
|
is_landless_adventurer = no
|
||||||
culture = {
|
culture = {
|
||||||
|
|
@ -236,6 +242,7 @@ recruit_court_position_decision = {
|
||||||
item = { # Gardener
|
item = { # Gardener
|
||||||
value = recruit_gardener_decision
|
value = recruit_gardener_decision
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
is_landed_or_landless_administrative_or_theocratic = yes
|
||||||
culture = {
|
culture = {
|
||||||
has_cultural_parameter = can_recruit_gardeners
|
has_cultural_parameter = can_recruit_gardeners
|
||||||
}
|
}
|
||||||
|
|
@ -2298,7 +2305,7 @@ stress_loss_inappetetic_decision = { #by Linnéa Thimrén
|
||||||
### Write Thoughts Down ###
|
### Write Thoughts Down ###
|
||||||
stress_loss_journaller_decision = { #by Linnéa Thimrén
|
stress_loss_journaller_decision = { #by Linnéa Thimrén
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_erudition.dds"
|
||||||
}
|
}
|
||||||
desc = stress_loss_journaller_decision_desc
|
desc = stress_loss_journaller_decision_desc
|
||||||
selection_tooltip = stress_loss_journaller_decision_tooltip
|
selection_tooltip = stress_loss_journaller_decision_tooltip
|
||||||
|
|
@ -2356,7 +2363,7 @@ stress_loss_journaller_decision = { #by Linnéa Thimrén
|
||||||
### Talk to Confidant ###
|
### Talk to Confidant ###
|
||||||
stress_loss_confider_decision = { #by Linnéa Thimrén
|
stress_loss_confider_decision = { #by Linnéa Thimrén
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_blood.dds"
|
||||||
}
|
}
|
||||||
desc = stress_loss_confider_decision_desc
|
desc = stress_loss_confider_decision_desc
|
||||||
selection_tooltip = stress_loss_confider_decision_tooltip
|
selection_tooltip = stress_loss_confider_decision_tooltip
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ choose_designated_terrain_decision = {
|
||||||
current_description = designated_terrain_forest_decision
|
current_description = designated_terrain_forest_decision
|
||||||
localization = designated_terrain_forest_decision
|
localization = designated_terrain_forest_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/forest.dds"
|
icon = "gfx/interface/icons/terrain_types/forest.dds"
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -85,7 +85,7 @@ choose_designated_terrain_decision = {
|
||||||
current_description = designated_terrain_mountain_decision
|
current_description = designated_terrain_mountain_decision
|
||||||
localization = designated_terrain_mountain_decision
|
localization = designated_terrain_mountain_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/mountains.dds"
|
icon = "gfx/interface/icons/terrain_types/mountains.dds"
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -107,7 +107,7 @@ choose_designated_terrain_decision = {
|
||||||
current_description = designated_terrain_plains_decision
|
current_description = designated_terrain_plains_decision
|
||||||
localization = designated_terrain_plains_decision
|
localization = designated_terrain_plains_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/plains.dds"
|
icon = "gfx/interface/icons/terrain_types/plains.dds"
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 5
|
value = 5
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -129,7 +129,7 @@ choose_designated_terrain_decision = {
|
||||||
current_description = designated_terrain_drylands_decision
|
current_description = designated_terrain_drylands_decision
|
||||||
localization = designated_terrain_drylands_decision
|
localization = designated_terrain_drylands_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/drylands.dds"
|
icon = "gfx/interface/icons/terrain_types/drylands.dds"
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -235,16 +235,16 @@ choose_master_terrain_decision = {
|
||||||
decision_to_second_step_button = "CHOOSE_MASTER_TERRAIN_DECISION_NEXT_STEP_BUTTON"
|
decision_to_second_step_button = "CHOOSE_MASTER_TERRAIN_DECISION_NEXT_STEP_BUTTON"
|
||||||
show_from_start = yes
|
show_from_start = yes
|
||||||
|
|
||||||
### Woodlands
|
### Woodlands
|
||||||
item = { # Forest
|
item = { # Forest
|
||||||
value = master_terrain_forest_terrain
|
value = master_terrain_forest_terrain
|
||||||
current_description = master_terrain_forest_decision
|
current_description = master_terrain_forest_decision
|
||||||
localization = master_terrain_forest_decision
|
localization = master_terrain_forest_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/forest.dds"
|
icon = "gfx/interface/icons/terrain_types/forest.dds"
|
||||||
is_shown = {
|
is_shown = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -259,10 +259,10 @@ choose_master_terrain_decision = {
|
||||||
current_description = master_terrain_jungle_decision
|
current_description = master_terrain_jungle_decision
|
||||||
localization = master_terrain_jungle_decision
|
localization = master_terrain_jungle_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/jungle.dds"
|
icon = "gfx/interface/icons/terrain_types/jungle.dds"
|
||||||
is_shown = {
|
is_shown = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -277,10 +277,10 @@ choose_master_terrain_decision = {
|
||||||
current_description = master_terrain_taiga_decision
|
current_description = master_terrain_taiga_decision
|
||||||
localization = master_terrain_taiga_decision
|
localization = master_terrain_taiga_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/taiga.dds"
|
icon = "gfx/interface/icons/terrain_types/taiga.dds"
|
||||||
is_shown = {
|
is_shown = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -295,10 +295,10 @@ choose_master_terrain_decision = {
|
||||||
current_description = master_terrain_wetlands_decision
|
current_description = master_terrain_wetlands_decision
|
||||||
localization = master_terrain_wetlands_decision
|
localization = master_terrain_wetlands_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/wetlands.dds"
|
icon = "gfx/interface/icons/terrain_types/wetlands.dds"
|
||||||
is_shown = {
|
is_shown = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -315,10 +315,10 @@ choose_master_terrain_decision = {
|
||||||
current_description = master_terrain_mountains_decision
|
current_description = master_terrain_mountains_decision
|
||||||
localization = master_terrain_mountains_decision
|
localization = master_terrain_mountains_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/mountains.dds"
|
icon = "gfx/interface/icons/terrain_types/mountains.dds"
|
||||||
is_shown = {
|
is_shown = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -333,10 +333,10 @@ choose_master_terrain_decision = {
|
||||||
current_description = master_terrain_hills_decision
|
current_description = master_terrain_hills_decision
|
||||||
localization = master_terrain_hills_decision
|
localization = master_terrain_hills_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/hills.dds"
|
icon = "gfx/interface/icons/terrain_types/hills.dds"
|
||||||
is_shown = {
|
is_shown = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -351,10 +351,10 @@ choose_master_terrain_decision = {
|
||||||
current_description = master_terrain_desert_mountains_decision
|
current_description = master_terrain_desert_mountains_decision
|
||||||
localization = master_terrain_desert_mountains_decision
|
localization = master_terrain_desert_mountains_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/desert_mountains.dds"
|
icon = "gfx/interface/icons/terrain_types/desert_mountains.dds"
|
||||||
is_shown = {
|
is_shown = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -371,10 +371,10 @@ choose_master_terrain_decision = {
|
||||||
current_description = master_terrain_plains_decision
|
current_description = master_terrain_plains_decision
|
||||||
localization = master_terrain_plains_decision
|
localization = master_terrain_plains_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/plains.dds"
|
icon = "gfx/interface/icons/terrain_types/plains.dds"
|
||||||
is_shown = {
|
is_shown = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -389,10 +389,10 @@ choose_master_terrain_decision = {
|
||||||
current_description = master_terrain_steppe_decision
|
current_description = master_terrain_steppe_decision
|
||||||
localization = master_terrain_steppe_decision
|
localization = master_terrain_steppe_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/steppe.dds"
|
icon = "gfx/interface/icons/terrain_types/steppe.dds"
|
||||||
is_shown = {
|
is_shown = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -407,10 +407,10 @@ choose_master_terrain_decision = {
|
||||||
current_description = master_terrain_farmlands_decision
|
current_description = master_terrain_farmlands_decision
|
||||||
localization = master_terrain_farmlands_decision
|
localization = master_terrain_farmlands_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/farmlands.dds"
|
icon = "gfx/interface/icons/terrain_types/farmlands.dds"
|
||||||
is_shown = {
|
is_shown = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -425,10 +425,10 @@ choose_master_terrain_decision = {
|
||||||
current_description = master_terrain_floodplains_decision
|
current_description = master_terrain_floodplains_decision
|
||||||
localization = master_terrain_floodplains_decision
|
localization = master_terrain_floodplains_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/floodplains.dds"
|
icon = "gfx/interface/icons/terrain_types/floodplains.dds"
|
||||||
is_shown = {
|
is_shown = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -446,10 +446,10 @@ choose_master_terrain_decision = {
|
||||||
current_description = master_terrain_drylands_decision
|
current_description = master_terrain_drylands_decision
|
||||||
localization = master_terrain_drylands_decision
|
localization = master_terrain_drylands_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/drylands.dds"
|
icon = "gfx/interface/icons/terrain_types/drylands.dds"
|
||||||
is_shown = {
|
is_shown = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -464,10 +464,10 @@ choose_master_terrain_decision = {
|
||||||
current_description = master_terrain_desert_decision
|
current_description = master_terrain_desert_decision
|
||||||
localization = master_terrain_desert_decision
|
localization = master_terrain_desert_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/desert.dds"
|
icon = "gfx/interface/icons/terrain_types/desert.dds"
|
||||||
is_shown = {
|
is_shown = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -482,10 +482,10 @@ choose_master_terrain_decision = {
|
||||||
current_description = master_terrain_oasis_decision
|
current_description = master_terrain_oasis_decision
|
||||||
localization = master_terrain_oasis_decision
|
localization = master_terrain_oasis_decision
|
||||||
icon = "gfx/interface/icons/terrain_types/oasis.dds"
|
icon = "gfx/interface/icons/terrain_types/oasis.dds"
|
||||||
is_shown = {
|
is_shown = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 0
|
value = 0
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -523,7 +523,7 @@ choose_master_terrain_decision = {
|
||||||
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
||||||
}
|
}
|
||||||
switch = {
|
switch = {
|
||||||
trigger = yes
|
trigger = yes
|
||||||
scope:master_terrain_mountains_terrain = {
|
scope:master_terrain_mountains_terrain = {
|
||||||
landless_inspector_master_terrain_effect = { TERRAIN = mountains }
|
landless_inspector_master_terrain_effect = { TERRAIN = mountains }
|
||||||
}
|
}
|
||||||
|
|
@ -913,7 +913,7 @@ enact_legacy_of_adventurer_decision = {
|
||||||
has_ep3_dlc_trigger = yes
|
has_ep3_dlc_trigger = yes
|
||||||
is_landless_adventurer = yes
|
is_landless_adventurer = yes
|
||||||
NOT = { has_trait = gallowsbait }
|
NOT = { has_trait = gallowsbait }
|
||||||
NOT = {
|
NOT = {
|
||||||
house = {
|
house = {
|
||||||
has_house_modifier = legacy_adventurer_house_modifier
|
has_house_modifier = legacy_adventurer_house_modifier
|
||||||
}
|
}
|
||||||
|
|
@ -947,7 +947,7 @@ enact_legacy_of_adventurer_decision = {
|
||||||
save_temporary_scope_value_as = {
|
save_temporary_scope_value_as = {
|
||||||
name = contract_tally
|
name = contract_tally
|
||||||
value = 0
|
value = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = has_enough_contracts_tt
|
text = has_enough_contracts_tt
|
||||||
|
|
|
||||||
|
|
@ -126,6 +126,10 @@ rites_of_passage_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
|
OR = {
|
||||||
|
government_has_flag = government_is_tribal
|
||||||
|
government_has_flag = government_is_nomadic
|
||||||
|
}
|
||||||
OR = {
|
OR = {
|
||||||
any_child = {
|
any_child = {
|
||||||
character_can_rites_of_passage_trigger = yes
|
character_can_rites_of_passage_trigger = yes
|
||||||
|
|
|
||||||
|
|
@ -2564,7 +2564,12 @@ commission_icon_decision = {
|
||||||
if = {
|
if = {
|
||||||
# Conditional exists to avoid false-positives during tooltip generation, but 'local_artisan' should always exist on execution!
|
# Conditional exists to avoid false-positives during tooltip generation, but 'local_artisan' should always exist on execution!
|
||||||
limit = { exists = scope:local_artisan }
|
limit = { exists = scope:local_artisan }
|
||||||
root = { add_courtier = scope:local_artisan }
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { scope:local_artisan = { is_courtier_of = root } }
|
||||||
|
}
|
||||||
|
root = { add_courtier = scope:local_artisan }
|
||||||
|
}
|
||||||
scope:local_artisan = {
|
scope:local_artisan = {
|
||||||
add_trait = devoted
|
add_trait = devoted
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -375,13 +375,13 @@ introduce_a_new_fashion_at_court_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
#############################################
|
#############################################
|
||||||
# Finance Culture Development #
|
# Finance Culture Prosperity #
|
||||||
# by Maxence Voleau #
|
# by Maxence Voleau #
|
||||||
#############################################
|
#############################################
|
||||||
|
|
||||||
### Promote Other Culture Development Decision ###
|
### Promote Other Culture Prosperity Decision ###
|
||||||
promote_other_culture_development_decision = {
|
promote_other_culture_prosperity_decision = {
|
||||||
title = promote_other_culture_development_decision_name
|
title = promote_other_culture_prosperity_decision_name
|
||||||
picture = {
|
picture = {
|
||||||
trigger = {
|
trigger = {
|
||||||
culture = { has_graphical_east_asia_culture_group_trigger = yes }
|
culture = { has_graphical_east_asia_culture_group_trigger = yes }
|
||||||
|
|
@ -397,8 +397,8 @@ promote_other_culture_development_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
|
||||||
}
|
}
|
||||||
desc = promote_other_culture_development_decision_desc
|
desc = promote_other_culture_prosperity_decision_desc
|
||||||
selection_tooltip = promote_other_culture_development_decision_tooltip
|
selection_tooltip = promote_other_culture_prosperity_decision_tooltip
|
||||||
cooldown = { years = 10 }
|
cooldown = { years = 10 }
|
||||||
sort_order = 90
|
sort_order = 90
|
||||||
|
|
||||||
|
|
@ -410,7 +410,7 @@ promote_other_culture_development_decision = {
|
||||||
|
|
||||||
is_valid_showing_failures_only = {
|
is_valid_showing_failures_only = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = promote_other_culture_development_decision_not_acceptance_tt
|
text = promote_other_culture_prosperity_decision_not_acceptance_tt
|
||||||
any_sub_realm_county = {
|
any_sub_realm_county = {
|
||||||
count > 0
|
count > 0
|
||||||
AND = {
|
AND = {
|
||||||
|
|
@ -471,11 +471,11 @@ promote_other_culture_development_decision = {
|
||||||
every_in_list = {
|
every_in_list = {
|
||||||
list = promoted_culture
|
list = promoted_culture
|
||||||
this = { save_scope_as = current_culture }
|
this = { save_scope_as = current_culture }
|
||||||
custom_tooltip = promote_other_culture_development_decision_effect_summary #see if a modifier can be injected for better effect
|
custom_tooltip = promote_other_culture_prosperity_decision_effect_summary #see if a modifier can be injected for better effect
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
custom_tooltip = promote_other_culture_development_decision_no_effect
|
custom_tooltip = promote_other_culture_prosperity_decision_no_effect
|
||||||
}
|
}
|
||||||
|
|
||||||
#Apply the actual effect: add a County Modifier on the relevant Counties
|
#Apply the actual effect: add a County Modifier on the relevant Counties
|
||||||
|
|
@ -495,6 +495,7 @@ promote_other_culture_development_decision = {
|
||||||
modifier = promote_culture_modifier
|
modifier = promote_culture_modifier
|
||||||
years = 10
|
years = 10
|
||||||
}
|
}
|
||||||
|
change_county_control = 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -221,6 +221,7 @@ estate_governor_patrols_decision = {
|
||||||
modifier = ep3_estate_governor_patrols_modifier
|
modifier = ep3_estate_governor_patrols_modifier
|
||||||
years = 15
|
years = 15
|
||||||
}
|
}
|
||||||
|
change_county_control = 5
|
||||||
}
|
}
|
||||||
increase_governance_effect = { VALUE = 6 }
|
increase_governance_effect = { VALUE = 6 }
|
||||||
}
|
}
|
||||||
|
|
@ -370,7 +371,7 @@ estate_granary_decision = {
|
||||||
limit = {
|
limit = {
|
||||||
domicile ?= {
|
domicile ?= {
|
||||||
domicile_location.county = {
|
domicile_location.county = {
|
||||||
county_control < 100
|
county_control < county_control_baseline
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -380,21 +381,21 @@ estate_granary_decision = {
|
||||||
limit = {
|
limit = {
|
||||||
domicile ?= {
|
domicile ?= {
|
||||||
domicile_location.county = {
|
domicile_location.county = {
|
||||||
development_level >= estate_granary_development_bonus_2_value
|
prosperity_level >= estate_granary_prosperity_bonus_2_value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
custom_tooltip = estate_unlock_granary_decision_development_2_tt
|
custom_tooltip = estate_unlock_granary_decision_prosperity_2_tt
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
domicile ?= {
|
domicile ?= {
|
||||||
domicile_location.county = {
|
domicile_location.county = {
|
||||||
development_level >= estate_granary_development_bonus_1_value
|
prosperity_level >= estate_granary_prosperity_bonus_1_value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
custom_tooltip = estate_unlock_granary_decision_development_1_tt
|
custom_tooltip = estate_unlock_granary_decision_prosperity_1_tt
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -731,7 +732,8 @@ convert_to_administrative_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds"
|
reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
|
sort_order = 40
|
||||||
title = {
|
title = {
|
||||||
first_valid = {
|
first_valid = {
|
||||||
triggered_desc = {
|
triggered_desc = {
|
||||||
|
|
@ -783,6 +785,10 @@ convert_to_administrative_decision = {
|
||||||
government_has_flag = government_is_feudal
|
government_has_flag = government_is_feudal
|
||||||
government_has_flag = government_is_clan
|
government_has_flag = government_is_clan
|
||||||
government_has_flag = government_is_japan_feudal
|
government_has_flag = government_is_japan_feudal
|
||||||
|
AND = { # Republic doges may become admin
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
highest_liege_matching_rule:uses_assembly = this
|
||||||
|
}
|
||||||
}
|
}
|
||||||
NOT = {
|
NOT = {
|
||||||
has_character_flag = granted_title_government_blocker
|
has_character_flag = granted_title_government_blocker
|
||||||
|
|
@ -851,6 +857,7 @@ convert_to_administrative_decision = {
|
||||||
limit = {
|
limit = {
|
||||||
top_liege = this
|
top_liege = this
|
||||||
is_ai = no
|
is_ai = no
|
||||||
|
NOT = { government_has_flag = government_is_republic }
|
||||||
}
|
}
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = all_powerful_vassals_required_tt
|
text = all_powerful_vassals_required_tt
|
||||||
|
|
@ -863,6 +870,12 @@ convert_to_administrative_decision = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
trigger_if = { # Republics have to be despots
|
||||||
|
limit = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
}
|
||||||
|
has_realm_law = republican_despot_succession_law
|
||||||
|
}
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = { is_ai = yes }
|
limit = { is_ai = yes }
|
||||||
calc_true_if = {
|
calc_true_if = {
|
||||||
|
|
@ -872,7 +885,7 @@ convert_to_administrative_decision = {
|
||||||
culture = { has_cultural_pillar = ethos_egalitarian }
|
culture = { has_cultural_pillar = ethos_egalitarian }
|
||||||
culture = { has_cultural_tradition = tradition_legalistic }
|
culture = { has_cultural_tradition = tradition_legalistic }
|
||||||
has_realm_law = crown_authority_3
|
has_realm_law = crown_authority_3
|
||||||
capital_county = { development_level > medium_development_level }
|
capital_county = { prosperity_level > medium_prosperity_level }
|
||||||
rite = { rite_has_tenet = tenet_legalism }
|
rite = { rite_has_tenet = tenet_legalism }
|
||||||
dynasty = { has_dynasty_perk = erudition_legacy_5 }
|
dynasty = { has_dynasty_perk = erudition_legacy_5 }
|
||||||
dynasty = { has_dynasty_perk = law_legacy_5 }
|
dynasty = { has_dynasty_perk = law_legacy_5 }
|
||||||
|
|
@ -1354,7 +1367,8 @@ convert_to_feudalism_from_administrative_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
|
sort_order = 40
|
||||||
desc = convert_to_feudalism_from_administrative_decision_desc
|
desc = convert_to_feudalism_from_administrative_decision_desc
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
|
@ -1373,12 +1387,11 @@ convert_to_feudalism_from_administrative_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
is_landed = yes
|
is_landed = yes
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = {
|
limit = { is_independent_ruler = no }
|
||||||
is_independent_ruler = no
|
custom_tooltip = {
|
||||||
}
|
text = liege_has_realm_law_authority_0_tt
|
||||||
top_liege ?= {
|
top_liege ?= { realm_law_authority_level_0 = yes }
|
||||||
realm_law_authority_level_0 = yes
|
}
|
||||||
}
|
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = governorship_is_on_the_border_tt
|
text = governorship_is_on_the_border_tt
|
||||||
any_sub_realm_county = {
|
any_sub_realm_county = {
|
||||||
|
|
@ -1858,10 +1871,8 @@ change_imperial_aspirations_decision = {
|
||||||
|
|
||||||
is_valid = {
|
is_valid = {
|
||||||
government_has_flag = government_is_administrative
|
government_has_flag = government_is_administrative
|
||||||
trigger_if = { # Unavailable if you are the top liege - Unless you have either modifier, so you may remove it.
|
trigger_if = { # Unavailable if you are the top liege - Unless if you have either modifier, so you may remove it.
|
||||||
limit = {
|
limit = { top_liege = this }
|
||||||
top_liege = this
|
|
||||||
}
|
|
||||||
OR = {
|
OR = {
|
||||||
has_character_modifier = ep3_admin_renounce_throne_personal
|
has_character_modifier = ep3_admin_renounce_throne_personal
|
||||||
house ?= { has_house_modifier = ep3_admin_renounce_throne_house }
|
house ?= { has_house_modifier = ep3_admin_renounce_throne_house }
|
||||||
|
|
|
||||||
|
|
@ -112,12 +112,7 @@ become_landless_adventurer_decision = {
|
||||||
# Relevant cultures/faiths
|
# Relevant cultures/faiths
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = {
|
limit = {
|
||||||
NAND = {
|
NOT = { government_has_flag = government_is_merchant }
|
||||||
is_ai = no
|
|
||||||
government_has_mechanic = administrative
|
|
||||||
top_liege = this
|
|
||||||
is_landed = no
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
OR = {
|
OR = {
|
||||||
culture = { has_cultural_parameter = unlock_voluntary_laampdom }
|
culture = { has_cultural_parameter = unlock_voluntary_laampdom }
|
||||||
|
|
@ -127,9 +122,27 @@ become_landless_adventurer_decision = {
|
||||||
text = nomadic_government_tt
|
text = nomadic_government_tt
|
||||||
government_has_flag = government_is_nomadic
|
government_has_flag = government_is_nomadic
|
||||||
}
|
}
|
||||||
has_character_modifier = tgp_gave_up_modifier
|
OR = {
|
||||||
|
culture = { has_cultural_parameter = unlock_voluntary_laampdom }
|
||||||
|
rite = { rite_has_parameter = unlock_voluntary_laampdom_faith }
|
||||||
|
has_personal_tenet_flag = unlock_voluntary_laampdom_faith
|
||||||
|
has_trait = nomadic_philosophy
|
||||||
|
custom_tooltip = {
|
||||||
|
text = nomadic_government_tt
|
||||||
|
government_has_flag = government_is_nomadic
|
||||||
|
}
|
||||||
|
has_character_modifier = tgp_gave_up_modifier
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
# Triggers for merchants
|
||||||
|
trigger_else = {
|
||||||
|
custom_tooltip = {
|
||||||
|
text = gdp_recently_became_merchant_decision_cooldown_tt
|
||||||
|
NOT = { exists = var:gdp_recently_became_merchant_cooldown }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
is_valid_showing_failures_only = {
|
is_valid_showing_failures_only = {
|
||||||
|
|
@ -141,11 +154,16 @@ become_landless_adventurer_decision = {
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
save_scope_as = adventurer
|
save_scope_as = adventurer
|
||||||
|
set_variable = {
|
||||||
|
name = gdp_recently_became_adventurer_cooldown
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
player_heir ?= {
|
player_heir ?= {
|
||||||
this != root
|
this != root
|
||||||
is_adult = yes
|
is_adult = yes
|
||||||
|
is_ruler = no
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
player_heir = {
|
player_heir = {
|
||||||
|
|
@ -185,12 +203,29 @@ become_landless_adventurer_decision = {
|
||||||
}
|
}
|
||||||
create_landless_adventurer_title_tooltip_effect = yes
|
create_landless_adventurer_title_tooltip_effect = yes
|
||||||
show_as_tooltip = {
|
show_as_tooltip = {
|
||||||
add_prestige = medium_prestige_gain
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { government_has_flag = government_is_merchant }
|
||||||
|
}
|
||||||
|
add_prestige = medium_prestige_gain
|
||||||
|
}
|
||||||
add_character_modifier = {
|
add_character_modifier = {
|
||||||
modifier = ep3_voluntary_laamp_character_modifier
|
modifier = ep3_voluntary_laamp_character_modifier
|
||||||
years = 5
|
years = 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
any_in_list = { variable = owes_me_money }
|
||||||
|
}
|
||||||
|
custom_tooltip = gdp_become_adventurer_debtors_to_contracts_tt
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
any_owned_story = { story_type = story_cycle_loan }
|
||||||
|
}
|
||||||
|
custom_tooltip = gdp_become_adventurer_debts_transferred_tt
|
||||||
|
}
|
||||||
trigger_event = { id = ep3_laamps.0030 }
|
trigger_event = { id = ep3_laamps.0030 }
|
||||||
# Debug tracking
|
# Debug tracking
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -476,10 +511,10 @@ wipe_slate_decision = {
|
||||||
|
|
||||||
cost = {
|
cost = {
|
||||||
gold = {
|
gold = {
|
||||||
value = 100
|
value = 50
|
||||||
add = {
|
add = {
|
||||||
value = highest_held_title_tier
|
value = highest_held_title_tier
|
||||||
multiply = 25
|
multiply = 12
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
prestige = {
|
prestige = {
|
||||||
|
|
@ -864,7 +899,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_europe
|
geographical_region = world_europe
|
||||||
geographical_region = world_steppe_west
|
geographical_region = world_steppe_west
|
||||||
|
|
@ -883,7 +918,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_europe
|
geographical_region = world_europe
|
||||||
geographical_region = world_africa_north
|
geographical_region = world_africa_north
|
||||||
|
|
@ -902,7 +937,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_europe
|
geographical_region = world_europe
|
||||||
geographical_region = world_steppe_west
|
geographical_region = world_steppe_west
|
||||||
|
|
@ -922,7 +957,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_europe
|
geographical_region = world_europe
|
||||||
geographical_region = world_steppe_west
|
geographical_region = world_steppe_west
|
||||||
|
|
@ -943,7 +978,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_europe_south
|
geographical_region = world_europe_south
|
||||||
geographical_region = world_europe_west
|
geographical_region = world_europe_west
|
||||||
|
|
@ -965,7 +1000,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_europe_south
|
geographical_region = world_europe_south
|
||||||
geographical_region = world_africa
|
geographical_region = world_africa
|
||||||
|
|
@ -984,7 +1019,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_europe_south
|
geographical_region = world_europe_south
|
||||||
geographical_region = world_asia_minor
|
geographical_region = world_asia_minor
|
||||||
|
|
@ -1006,7 +1041,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_europe_south
|
geographical_region = world_europe_south
|
||||||
geographical_region = world_asia_minor
|
geographical_region = world_asia_minor
|
||||||
|
|
@ -1028,7 +1063,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_europe_south
|
geographical_region = world_europe_south
|
||||||
geographical_region = world_middle_east
|
geographical_region = world_middle_east
|
||||||
|
|
@ -1049,7 +1084,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_europe_south
|
geographical_region = world_europe_south
|
||||||
geographical_region = world_middle_east
|
geographical_region = world_middle_east
|
||||||
|
|
@ -1070,7 +1105,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_europe_south
|
geographical_region = world_europe_south
|
||||||
geographical_region = world_middle_east
|
geographical_region = world_middle_east
|
||||||
|
|
@ -1093,7 +1128,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_middle_east
|
geographical_region = world_middle_east
|
||||||
geographical_region = world_india
|
geographical_region = world_india
|
||||||
|
|
@ -1114,7 +1149,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_middle_east
|
geographical_region = world_middle_east
|
||||||
geographical_region = world_india
|
geographical_region = world_india
|
||||||
|
|
@ -1135,7 +1170,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_middle_east
|
geographical_region = world_middle_east
|
||||||
geographical_region = world_india
|
geographical_region = world_india
|
||||||
|
|
@ -1156,7 +1191,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_india
|
geographical_region = world_india
|
||||||
geographical_region = world_tibet
|
geographical_region = world_tibet
|
||||||
|
|
@ -1175,7 +1210,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_india
|
geographical_region = world_india
|
||||||
geographical_region = world_steppe
|
geographical_region = world_steppe
|
||||||
|
|
@ -1194,7 +1229,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_india
|
geographical_region = world_india
|
||||||
geographical_region = world_tibet
|
geographical_region = world_tibet
|
||||||
|
|
@ -1214,7 +1249,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_india
|
geographical_region = world_india
|
||||||
geographical_region = world_tibet
|
geographical_region = world_tibet
|
||||||
|
|
@ -1237,7 +1272,7 @@ treasure_hunting_contract_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = treasure_hunting_contract_decision_limit
|
text = treasure_hunting_contract_decision_limit
|
||||||
capital_province = {
|
capital_province ?= {
|
||||||
OR = {
|
OR = {
|
||||||
geographical_region = world_india
|
geographical_region = world_india
|
||||||
geographical_region = world_tibet
|
geographical_region = world_tibet
|
||||||
|
|
@ -1816,7 +1851,10 @@ reject_inheritance_decision = {
|
||||||
# They have children with you.
|
# They have children with you.
|
||||||
any_child = {
|
any_child = {
|
||||||
count >= 1
|
count >= 1
|
||||||
NOT = { has_trait = disinherited }
|
NOR = {
|
||||||
|
has_trait = disinherited
|
||||||
|
has_trait = adopted_no_inheritance
|
||||||
|
}
|
||||||
any_parent = { this = root }
|
any_parent = { this = root }
|
||||||
}
|
}
|
||||||
# Or thought they might.
|
# Or thought they might.
|
||||||
|
|
@ -2171,6 +2209,12 @@ embrace_responsibilities_decision = {
|
||||||
### Change Election Candidacy Status ###
|
### Change Election Candidacy Status ###
|
||||||
change_election_candidacy_status_decision = {
|
change_election_candidacy_status_decision = {
|
||||||
# Everyone else's picture.
|
# Everyone else's picture.
|
||||||
|
picture = {
|
||||||
|
trigger = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
}
|
||||||
|
reference = "gfx/interface/illustrations/decisions/fractious.dds"
|
||||||
|
}
|
||||||
picture = { reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" }
|
picture = { reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds" }
|
||||||
desc = {
|
desc = {
|
||||||
first_valid = {
|
first_valid = {
|
||||||
|
|
@ -2330,7 +2374,7 @@ bandit_king_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
cost = {
|
cost = {
|
||||||
gold = 500
|
gold = 250
|
||||||
prestige = 2000
|
prestige = 2000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2432,14 +2476,14 @@ seasoned_visitor_decision = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = seasoned_visitor_decision_not_enough_poi
|
text = seasoned_visitor_decision_not_enough_poi
|
||||||
has_variable = poi_visited
|
has_variable = poi_visited
|
||||||
var:poi_visited >= 26 #1066 all poi in India. If you change the value here, please also change the value in loc string above
|
var:poi_visited >= 35
|
||||||
}
|
}
|
||||||
calc_true_if = {
|
calc_true_if = {
|
||||||
amount >= 2
|
amount >= 2
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = seasoned_visitor_decision_not_enough_poi_advanced
|
text = seasoned_visitor_decision_not_enough_poi_advanced
|
||||||
has_variable = poi_visited
|
has_variable = poi_visited
|
||||||
var:poi_visited >= 42 #1066 all poi in two Indias. If you change the value here, please also change the value in loc string above
|
var:poi_visited >= 60
|
||||||
}
|
}
|
||||||
prestige_level >= 4
|
prestige_level >= 4
|
||||||
has_trait_xp = {
|
has_trait_xp = {
|
||||||
|
|
@ -2457,8 +2501,8 @@ seasoned_visitor_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
cost = {
|
cost = {
|
||||||
prestige = 1500
|
prestige = 500
|
||||||
gold = 500
|
gold = 250
|
||||||
}
|
}
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ separatist_uprising_decision = {
|
||||||
|
|
||||||
cost = {
|
cost = {
|
||||||
prestige = 2000
|
prestige = 2000
|
||||||
gold = 500
|
gold = 250
|
||||||
}
|
}
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
|
|
|
||||||
|
|
@ -1094,6 +1094,8 @@ fp3_become_clan_government_decision = {
|
||||||
}
|
}
|
||||||
desc = fp3_become_clan_government_decision_desc
|
desc = fp3_become_clan_government_decision_desc
|
||||||
selection_tooltip = fp3_become_clan_government_decision_tooltip
|
selection_tooltip = fp3_become_clan_government_decision_tooltip
|
||||||
|
decision_group_type = realm
|
||||||
|
sort_order = 40
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
|
|
@ -1147,7 +1149,7 @@ fp3_become_clan_government_decision = {
|
||||||
change_government = clan_government
|
change_government = clan_government
|
||||||
# Increase unity, uses this effect since both chars are not clan when script is evaluated
|
# Increase unity, uses this effect since both chars are not clan when script is evaluated
|
||||||
house.house_head = {
|
house.house_head = {
|
||||||
apply_clan_unity_interaction_effect = {
|
apply_house_unity_interaction_effect = {
|
||||||
CHARACTER = root
|
CHARACTER = root
|
||||||
TARGET = root.house.house_head
|
TARGET = root.house.house_head
|
||||||
DESC = clan_unity_adopt_clan.desc
|
DESC = clan_unity_adopt_clan.desc
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ raise_stele_decision = {
|
||||||
|
|
||||||
cooldown = { years = 10 }
|
cooldown = { years = 10 }
|
||||||
|
|
||||||
sort_order = 80
|
sort_order = 10
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
# Landed characters only: nobody likes a mercenary.
|
# Landed characters only: nobody likes a mercenary.
|
||||||
|
|
|
||||||
|
|
@ -82,14 +82,23 @@ mpo_desperate_stance_decision = {
|
||||||
sort_order = 100
|
sort_order = 100
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
has_mpo_dlc_trigger = yes
|
||||||
government_has_flag = government_is_nomadic
|
government_has_flag = government_is_nomadic
|
||||||
|
exists = situation:the_great_steppe
|
||||||
any_character_situation = {
|
any_character_situation = {
|
||||||
any_participant_group = {
|
any_participant_group = {
|
||||||
participant_group_type = nomad_rulers_capital
|
participant_group_type = nomad_rulers_capital
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exists = situation:the_great_steppe
|
any_character_situation = {
|
||||||
has_mpo_dlc_trigger = yes
|
any_situation_sub_region = {
|
||||||
|
has_sub_region_phase_parameter = the_great_steppe_desperate_stance_decision
|
||||||
|
any_situation_sub_region_participant_group = {
|
||||||
|
participant_group_type = nomad_rulers_capital
|
||||||
|
participant_group_has_character = root
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
is_valid = {
|
is_valid = {
|
||||||
|
|
@ -146,13 +155,13 @@ adopt_nomadic_ways_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/event_story/mpo_steppe_region.dds"
|
reference = "gfx/interface/illustrations/event_story/mpo_steppe_region.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = adventurer
|
decision_group_type = realm
|
||||||
sort_order = 100
|
sort_order = 100
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
is_landless_adventurer = yes
|
|
||||||
has_ep3_dlc_trigger = yes
|
|
||||||
has_mpo_dlc_trigger = yes
|
has_mpo_dlc_trigger = yes
|
||||||
|
has_playable_adventurer_dlc_trigger = yes
|
||||||
|
is_landless_adventurer = yes
|
||||||
}
|
}
|
||||||
|
|
||||||
is_valid = {
|
is_valid = {
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,136 +1,137 @@
|
||||||
##Pax Mongolica
|
# NEOW 2555: historical Pax Mongolica decision disabled.
|
||||||
### Peace of the Great Khan ###
|
###Pax Mongolica
|
||||||
mpo_pax_mongolica_decision = {
|
#### Peace of the Great Khan ###
|
||||||
picture = {
|
#mpo_pax_mongolica_decision = {
|
||||||
reference = "gfx/interface/illustrations/event_scenes/mpo_city_steppe.dds"
|
# picture = {
|
||||||
}
|
# reference = "gfx/interface/illustrations/event_scenes/mpo_city_steppe.dds"
|
||||||
decision_group_type = nomad_major
|
# }
|
||||||
sort_order = 120
|
# decision_group_type = nomad_major
|
||||||
|
# sort_order = 120
|
||||||
|
|
||||||
is_shown = {
|
# is_shown = {
|
||||||
government_has_flag = government_is_nomadic
|
# government_has_flag = government_is_nomadic
|
||||||
any_character_situation = {
|
# any_character_situation = {
|
||||||
this = situation:the_great_steppe
|
# this = situation:the_great_steppe
|
||||||
}
|
# }
|
||||||
NOT = { has_variable = pax_mongolica_var }
|
# NOT = { has_variable = pax_mongolica_var }
|
||||||
exists = situation:the_great_steppe
|
# exists = situation:the_great_steppe
|
||||||
}
|
# }
|
||||||
|
|
||||||
is_valid = {
|
# is_valid = {
|
||||||
dynasty ?= { has_dynasty_perk = mpo_nomad_legacy_5 }
|
# dynasty ?= { has_dynasty_perk = mpo_nomad_legacy_5 }
|
||||||
OR = {
|
# OR = {
|
||||||
has_realm_law = nomadic_authority_4
|
# has_realm_law = nomadic_authority_4
|
||||||
has_realm_law = nomadic_authority_5
|
# has_realm_law = nomadic_authority_5
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
is_valid_showing_failures_only = {
|
# is_valid_showing_failures_only = {
|
||||||
is_available_adult = yes
|
# is_available_adult = yes
|
||||||
}
|
# }
|
||||||
|
|
||||||
cost = {
|
# cost = {
|
||||||
gold = {
|
# gold = {
|
||||||
value = 0
|
# value = 0
|
||||||
if = {
|
# if = {
|
||||||
limit = {
|
# limit = {
|
||||||
has_treasury = no
|
# has_treasury = no
|
||||||
}
|
# }
|
||||||
add = monumental_gold_value
|
# add = monumental_gold_value
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
treasury = {
|
# treasury = {
|
||||||
value = 0
|
# value = 0
|
||||||
if = {
|
# if = {
|
||||||
limit = {
|
# limit = {
|
||||||
has_treasury = yes
|
# has_treasury = yes
|
||||||
}
|
# }
|
||||||
add = monumental_gold_value
|
# add = monumental_gold_value
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
prestige = {
|
# prestige = {
|
||||||
value = massive_prestige_value
|
# value = massive_prestige_value
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
|
|
||||||
effect = {
|
# effect = {
|
||||||
set_variable = pax_mongolica_var
|
# set_variable = pax_mongolica_var
|
||||||
# Rewards given out in the event
|
# # Rewards given out in the event
|
||||||
show_as_tooltip = {
|
# show_as_tooltip = {
|
||||||
add_character_modifier = {
|
# add_character_modifier = {
|
||||||
modifier = pax_mongolica_ruler_modifier # Forever
|
# modifier = pax_mongolica_ruler_modifier # Forever
|
||||||
}
|
# }
|
||||||
custom_tooltip = pax_mongolica_every_county_in_steppe_tt
|
# custom_tooltip = pax_mongolica_every_county_in_steppe_tt
|
||||||
every_realm_county = {
|
# every_realm_county = {
|
||||||
limit = {
|
# limit = {
|
||||||
is_landless_type_title = no
|
# is_landless_type_title = no
|
||||||
any_county_situation = { this = situation:the_great_steppe }
|
# any_county_situation = { this = situation:the_great_steppe }
|
||||||
holder.dynasty = root.dynasty
|
# holder.dynasty = root.dynasty
|
||||||
}
|
# }
|
||||||
random_county_province = {
|
# random_county_province = {
|
||||||
limit = { has_holding = no }
|
# limit = { has_holding = no }
|
||||||
set_holding_type = city_holding
|
# set_holding_type = city_holding
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
if = {
|
# if = {
|
||||||
limit = {
|
# limit = {
|
||||||
NOT = {
|
# NOT = {
|
||||||
culture = { has_innovation = innovation_city_planning }
|
# culture = { has_innovation = innovation_city_planning }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
culture = { add_innovation = innovation_city_planning }
|
# culture = { add_innovation = innovation_city_planning }
|
||||||
}
|
# }
|
||||||
else_if = {
|
# else_if = {
|
||||||
limit = {
|
# limit = {
|
||||||
NOT = {
|
# NOT = {
|
||||||
culture = { has_innovation = innovation_development_01 }
|
# culture = { has_innovation = innovation_development_01 }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
culture = { add_innovation = innovation_development_01 }
|
# culture = { add_innovation = innovation_development_01 }
|
||||||
}
|
# }
|
||||||
else = {
|
# else = {
|
||||||
culture = { add_random_innovation = culture_group_civic }
|
# culture = { add_random_innovation = culture_group_civic }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
trigger_event = mpo_decisions_events.0400
|
# trigger_event = mpo_decisions_events.0400
|
||||||
}
|
# }
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
# ai_check_interval_by_tier = {
|
||||||
barony = 0
|
# barony = 0
|
||||||
county = 0
|
# county = 0
|
||||||
duchy = 0
|
# duchy = 0
|
||||||
kingdom = 0
|
# kingdom = 0
|
||||||
empire = 24
|
# empire = 24
|
||||||
hegemony = 24
|
# hegemony = 24
|
||||||
}
|
# }
|
||||||
|
|
||||||
ai_potential = {
|
# ai_potential = {
|
||||||
prestige >= massive_prestige_value
|
# prestige >= massive_prestige_value
|
||||||
}
|
# }
|
||||||
|
|
||||||
ai_will_do = {
|
# ai_will_do = {
|
||||||
base = 30
|
# base = 30
|
||||||
modifier = {
|
# modifier = {
|
||||||
add = -100
|
# add = -100
|
||||||
NOT = {
|
# NOT = {
|
||||||
prestige >= {
|
# prestige >= {
|
||||||
value = monumental_gold_value
|
# value = monumental_gold_value
|
||||||
multiply = 2
|
# multiply = 2
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
modifier = {
|
# modifier = {
|
||||||
add = -100
|
# add = -100
|
||||||
NOT = {
|
# NOT = {
|
||||||
prestige >= {
|
# prestige >= {
|
||||||
value = massive_prestige_value
|
# value = massive_prestige_value
|
||||||
multiply = 2
|
# multiply = 2
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
modifier = {
|
# modifier = {
|
||||||
add = 50
|
# add = 50
|
||||||
highest_held_title_tier >= tier_empire
|
# highest_held_title_tier >= tier_empire
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
#}
|
||||||
|
|
|
||||||
|
|
@ -606,6 +606,25 @@ pam_permit_tenet_bull_decision = {
|
||||||
save_scope_as = selected_item
|
save_scope_as = selected_item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else_if = { # A tenet intrinsic to the faith is restored before anything else is sanctioned
|
||||||
|
limit = {
|
||||||
|
any_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
pam_tenet_can_be_permitted_trigger = yes
|
||||||
|
pam_tenet_ai_should_permit_intrinsic_trigger = { CHARACTER = scope:actor }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ordered_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
limit = {
|
||||||
|
pam_tenet_can_be_permitted_trigger = yes
|
||||||
|
pam_tenet_ai_should_permit_intrinsic_trigger = { CHARACTER = scope:actor }
|
||||||
|
}
|
||||||
|
order_by = pam_raw_tenet_popularity_value
|
||||||
|
position = 0
|
||||||
|
save_scope_as = selected_item
|
||||||
|
}
|
||||||
|
}
|
||||||
else_if = { # A tenet the faith adores gets sanctioned whether or not the Pope cares for it
|
else_if = { # A tenet the faith adores gets sanctioned whether or not the Pope cares for it
|
||||||
limit = {
|
limit = {
|
||||||
any_character_tenet = {
|
any_character_tenet = {
|
||||||
|
|
@ -649,6 +668,10 @@ pam_permit_tenet_bull_decision = {
|
||||||
this = tenet:tenet_love_under_will
|
this = tenet:tenet_love_under_will
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
modifier = {
|
||||||
|
factor = anathema_to_faith_ai_weight_factor
|
||||||
|
tenet_is_anathema_to_faith_trigger = { FAITH = scope:actor.faith }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
save_scope_as = selected_item
|
save_scope_as = selected_item
|
||||||
}
|
}
|
||||||
|
|
@ -674,6 +697,10 @@ pam_permit_tenet_bull_decision = {
|
||||||
this = tenet:tenet_love_under_will
|
this = tenet:tenet_love_under_will
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
modifier = {
|
||||||
|
factor = anathema_to_faith_ai_weight_factor
|
||||||
|
tenet_is_anathema_to_faith_trigger = { FAITH = scope:actor.faith }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
save_scope_as = selected_item
|
save_scope_as = selected_item
|
||||||
}
|
}
|
||||||
|
|
@ -710,6 +737,10 @@ pam_permit_tenet_bull_decision = {
|
||||||
pam_tenet_can_be_permitted_no_actor_trigger = yes
|
pam_tenet_can_be_permitted_no_actor_trigger = yes
|
||||||
pam_tenet_is_overwhelmingly_popular_trigger = { CHARACTER = root }
|
pam_tenet_is_overwhelmingly_popular_trigger = { CHARACTER = root }
|
||||||
}
|
}
|
||||||
|
any_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
pam_tenet_ai_should_permit_intrinsic_trigger = { CHARACTER = root }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -876,6 +907,31 @@ pam_prohibit_tenet_bull_decision = {
|
||||||
save_scope_as = selected_item
|
save_scope_as = selected_item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else_if = { # An anathema the faith permits is struck down next
|
||||||
|
limit = {
|
||||||
|
any_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
pam_tenet_can_be_prohibited_trigger = yes
|
||||||
|
scope:actor = {
|
||||||
|
NOT = { has_personal_tenet = scope:pam_tenet_candidate }
|
||||||
|
}
|
||||||
|
pam_tenet_ai_should_prohibit_anathema_trigger = { CHARACTER = scope:actor }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ordered_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
limit = {
|
||||||
|
pam_tenet_can_be_prohibited_trigger = yes
|
||||||
|
scope:actor = {
|
||||||
|
NOT = { has_personal_tenet = scope:pam_tenet_candidate }
|
||||||
|
}
|
||||||
|
pam_tenet_ai_should_prohibit_anathema_trigger = { CHARACTER = scope:actor }
|
||||||
|
}
|
||||||
|
order_by = pam_raw_tenet_popularity_value
|
||||||
|
position = 0
|
||||||
|
save_scope_as = selected_item
|
||||||
|
}
|
||||||
|
}
|
||||||
else = {
|
else = {
|
||||||
random_undesired_tenet = {
|
random_undesired_tenet = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -916,6 +972,14 @@ pam_prohibit_tenet_bull_decision = {
|
||||||
}
|
}
|
||||||
pam_tenet_ai_should_purge_trigger = { CHARACTER = root }
|
pam_tenet_ai_should_purge_trigger = { CHARACTER = root }
|
||||||
}
|
}
|
||||||
|
any_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
pam_tenet_can_be_prohibited_no_actor_trigger = yes
|
||||||
|
root = {
|
||||||
|
NOT = { has_personal_tenet = scope:pam_tenet_candidate }
|
||||||
|
}
|
||||||
|
pam_tenet_ai_should_prohibit_anathema_trigger = { CHARACTER = root }
|
||||||
|
}
|
||||||
any_undesired_tenet = {
|
any_undesired_tenet = {
|
||||||
known_tenets = yes
|
known_tenets = yes
|
||||||
only_negative = yes
|
only_negative = yes
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,10 @@ declare_antipope_decision = {
|
||||||
limit = { pam_antipope_declaration_discounted_trigger = yes }
|
limit = { pam_antipope_declaration_discounted_trigger = yes }
|
||||||
multiply = 0.67
|
multiply = 0.67
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes }
|
||||||
|
multiply = 0.5
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
treasury = {
|
treasury = {
|
||||||
|
|
@ -119,6 +123,10 @@ declare_antipope_decision = {
|
||||||
limit = { pam_antipope_declaration_discounted_trigger = yes }
|
limit = { pam_antipope_declaration_discounted_trigger = yes }
|
||||||
multiply = 0.67
|
multiply = 0.67
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes }
|
||||||
|
multiply = 0.5
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
piety = {
|
piety = {
|
||||||
|
|
@ -131,6 +139,10 @@ declare_antipope_decision = {
|
||||||
limit = { pam_antipope_declaration_discounted_trigger = yes }
|
limit = { pam_antipope_declaration_discounted_trigger = yes }
|
||||||
multiply = 0.67
|
multiply = 0.67
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes }
|
||||||
|
multiply = 0
|
||||||
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_variable = antipope_squabble_unlock
|
has_variable = antipope_squabble_unlock
|
||||||
|
|
@ -226,7 +238,10 @@ declare_antipope_decision = {
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
is_adult = yes
|
is_adult = yes
|
||||||
ai_zeal >= 0
|
OR = {
|
||||||
|
ai_zeal >= 0
|
||||||
|
gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes
|
||||||
|
}
|
||||||
any_vassal_or_below = {
|
any_vassal_or_below = {
|
||||||
pam_valid_antipope_clergy_vassal_trigger = { LIEGE = root }
|
pam_valid_antipope_clergy_vassal_trigger = { LIEGE = root }
|
||||||
}
|
}
|
||||||
|
|
@ -260,23 +275,22 @@ declare_antipope_decision = {
|
||||||
step = 5
|
step = 5
|
||||||
max = 25
|
max = 25
|
||||||
}
|
}
|
||||||
|
modifier = {
|
||||||
|
add = 25
|
||||||
|
gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes
|
||||||
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
factor = 2
|
factor = 2
|
||||||
OR = {
|
has_relation_rival = faith.religious_head
|
||||||
has_relation_rival = faith.religious_head
|
|
||||||
has_relation_nemesis = faith.religious_head
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
modifier = { # AI shouldn't usually do this if they're main rite
|
modifier = { # AI shouldn't usually do this if they're main rite
|
||||||
factor = 0.15
|
factor = 0.15
|
||||||
rite = faith.main_rite
|
rite = faith.main_rite
|
||||||
|
gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = no
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
factor = 0
|
factor = 0
|
||||||
OR = {
|
has_relation_friend = faith.religious_head
|
||||||
has_relation_friend = faith.religious_head
|
|
||||||
has_relation_best_friend = faith.religious_head
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -558,17 +572,11 @@ declare_yourself_antipope_decision = {
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
factor = 2
|
factor = 2
|
||||||
OR = {
|
has_relation_rival = faith.religious_head
|
||||||
has_relation_rival = faith.religious_head
|
|
||||||
has_relation_nemesis = faith.religious_head
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
factor = 0
|
factor = 0
|
||||||
OR = {
|
has_relation_friend = faith.religious_head
|
||||||
has_relation_friend = faith.religious_head
|
|
||||||
has_relation_best_friend = faith.religious_head
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,8 @@ pam_decision_confession = {
|
||||||
sort_order = 110
|
sort_order = 110
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
is_landless_adventurer = no
|
||||||
|
is_landless_merchant = no
|
||||||
has_spiritual_fulfillment_type = christian_fulfillment
|
has_spiritual_fulfillment_type = christian_fulfillment
|
||||||
root.rite ?= {
|
root.rite ?= {
|
||||||
has_at_least_tenet_status = {
|
has_at_least_tenet_status = {
|
||||||
|
|
@ -135,17 +137,18 @@ pam_decision_act_of_devotion = {
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
county = 60
|
county = 120
|
||||||
duchy = 60
|
duchy = 120
|
||||||
kingdom = 48
|
kingdom = 60
|
||||||
empire = 48
|
empire = 48
|
||||||
hegemony = 24
|
hegemony = 12
|
||||||
}
|
}
|
||||||
|
|
||||||
sort_order = 80
|
sort_order = 80
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
has_spiritual_fulfillment_type = christian_fulfillment
|
has_spiritual_fulfillment_type = christian_fulfillment
|
||||||
|
has_fulfillment_parameter = sp_act_of_devotion_decision
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
is_landless_adventurer = no
|
is_landless_adventurer = no
|
||||||
}
|
}
|
||||||
|
|
@ -228,10 +231,10 @@ pam_mentor_sp_decision = {
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
county = 24
|
county = 120
|
||||||
duchy = 24
|
duchy = 120
|
||||||
kingdom = 12
|
kingdom = 60
|
||||||
empire = 12
|
empire = 24
|
||||||
hegemony = 12
|
hegemony = 12
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -239,6 +242,7 @@ pam_mentor_sp_decision = {
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
has_spiritual_fulfillment_type = christian_fulfillment
|
has_spiritual_fulfillment_type = christian_fulfillment
|
||||||
|
has_fulfillment_parameter = sp_mentor_in_sp
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -362,8 +366,8 @@ pam_establish_theocratic_dynasty_decision = {
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
county = 0
|
county = 0
|
||||||
duchy = 48
|
duchy = 120
|
||||||
kingdom = 24
|
kingdom = 60
|
||||||
empire = 12
|
empire = 12
|
||||||
hegemony = 12
|
hegemony = 12
|
||||||
}
|
}
|
||||||
|
|
@ -429,6 +433,7 @@ pam_convert_to_theocracy_decision = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = realm
|
decision_group_type = realm
|
||||||
|
sort_order = 40
|
||||||
desc = pam_convert_to_theocracy_decision_desc
|
desc = pam_convert_to_theocracy_decision_desc
|
||||||
selection_tooltip = pam_convert_to_theocracy_decision_tooltip
|
selection_tooltip = pam_convert_to_theocracy_decision_tooltip
|
||||||
|
|
||||||
|
|
@ -635,6 +640,7 @@ pam_convert_theocracy_to_feudal_decision = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = realm
|
decision_group_type = realm
|
||||||
|
sort_order = 40
|
||||||
desc = pam_convert_theocracy_to_feudal_decision_desc
|
desc = pam_convert_theocracy_to_feudal_decision_desc
|
||||||
selection_tooltip = pam_convert_theocracy_to_feudal_decision_tooltip
|
selection_tooltip = pam_convert_theocracy_to_feudal_decision_tooltip
|
||||||
|
|
||||||
|
|
@ -683,7 +689,7 @@ pam_convert_theocracy_to_feudal_decision = {
|
||||||
culture = { has_cultural_pillar = ethos_stoic }
|
culture = { has_cultural_pillar = ethos_stoic }
|
||||||
culture = { has_cultural_tradition = tradition_legalistic }
|
culture = { has_cultural_tradition = tradition_legalistic }
|
||||||
has_realm_law = church_authority_3
|
has_realm_law = church_authority_3
|
||||||
capital_county = { development_level > medium_development_level }
|
capital_county = { prosperity_level > medium_prosperity_level }
|
||||||
dynasty ?= { has_dynasty_perk = law_legacy_5 }
|
dynasty ?= { has_dynasty_perk = law_legacy_5 }
|
||||||
dynasty ?= { has_dynasty_perk = erudition_legacy_5 }
|
dynasty ?= { has_dynasty_perk = erudition_legacy_5 }
|
||||||
NOT = { has_trait = zealous }
|
NOT = { has_trait = zealous }
|
||||||
|
|
@ -792,9 +798,7 @@ pam_kowtow_to_pope_decision = {
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
exists = top_participant_group:the_christian_church
|
exists = top_participant_group:the_christian_church
|
||||||
situation:the_christian_church ?= {
|
situation:the_christian_church ?= { situation_current_phase = investiture_crisis }
|
||||||
situation_current_phase = investiture_crisis
|
|
||||||
}
|
|
||||||
government_is_religious_trigger = no
|
government_is_religious_trigger = no
|
||||||
is_christian_trigger = yes
|
is_christian_trigger = yes
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
|
|
@ -836,6 +840,20 @@ pam_kowtow_to_pope_decision = {
|
||||||
modifier = grateful_opinion
|
modifier = grateful_opinion
|
||||||
opinion = 20
|
opinion = 20
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_ghibelline_leader_trigger = yes
|
||||||
|
faith = { religious_head_title ?= title:k_papal_state }
|
||||||
|
NOT = { has_trait = excommunicated }
|
||||||
|
pam_is_antipope_sponsor_trigger = no
|
||||||
|
}
|
||||||
|
gg_reconciliation_catalyst_effect = {
|
||||||
|
ACTOR = root
|
||||||
|
RECIPIENT = faith.religious_head
|
||||||
|
CATALYST = catalyst_gg_submission_to_pope
|
||||||
|
ONCE_A_YEAR = no
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
send_interface_toast = {
|
send_interface_toast = {
|
||||||
type = event_toast_effect_good
|
type = event_toast_effect_good
|
||||||
|
|
@ -848,6 +866,8 @@ pam_kowtow_to_pope_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
|
situation:the_christian_church ?= { situation_current_phase = investiture_crisis }
|
||||||
|
religion ?= religion:christianity_religion
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
government_is_religious_trigger = no
|
government_is_religious_trigger = no
|
||||||
}
|
}
|
||||||
|
|
@ -883,6 +903,7 @@ pam_determine_patron_saint_decision = {
|
||||||
# Christian specific
|
# Christian specific
|
||||||
is_christian_trigger = yes
|
is_christian_trigger = yes
|
||||||
NOT = { has_variable = pam_chose_patron_saint_var }
|
NOT = { has_variable = pam_chose_patron_saint_var }
|
||||||
|
has_personal_tenet_flag = tenet_dulia_can_select_patron_saint
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -998,8 +1019,8 @@ pam_determine_patron_saint_decision = {
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
county = 96
|
county = 120
|
||||||
duchy = 96
|
duchy = 120
|
||||||
kingdom = 96
|
kingdom = 96
|
||||||
empire = 96
|
empire = 96
|
||||||
hegemony = 96
|
hegemony = 96
|
||||||
|
|
@ -1216,15 +1237,15 @@ create_hof_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
|
faith ?= {
|
||||||
|
NOT = { exists = religious_head }
|
||||||
|
OR = { has_doctrine_parameter = spiritual_head_of_faith has_doctrine_parameter = temporal_head_of_faith }
|
||||||
|
}
|
||||||
is_adult = yes
|
is_adult = yes
|
||||||
# Defer to a same-faith liege; they should be the one establishing the HoF
|
# Defer to a same-faith liege; they should be the one establishing the HoF
|
||||||
OR = {
|
OR = {
|
||||||
top_liege = this
|
top_liege = this
|
||||||
NOT = {
|
NOT = { any_liege_or_above = { faith = root.faith } }
|
||||||
any_liege_or_above = {
|
|
||||||
faith = root.faith
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1233,6 +1254,337 @@ create_hof_decision = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#TODO_PAM: Test debug decision, remove if no longer needed as demo
|
||||||
|
start_test_select_rite = {
|
||||||
|
picture = {
|
||||||
|
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
|
||||||
|
}
|
||||||
|
|
||||||
|
decision_group_type = debug
|
||||||
|
|
||||||
|
ai_check_interval_by_tier = {
|
||||||
|
barony = 0
|
||||||
|
county = 0
|
||||||
|
duchy = 0
|
||||||
|
kingdom = 0
|
||||||
|
empire = 0
|
||||||
|
hegemony = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
sort_order = 110
|
||||||
|
|
||||||
|
is_shown = {
|
||||||
|
always = no # Disabled from GDP onwards
|
||||||
|
}
|
||||||
|
|
||||||
|
is_valid = {
|
||||||
|
scope:selected_item ?= { exists = this }
|
||||||
|
}
|
||||||
|
|
||||||
|
is_valid_showing_failures_only = {
|
||||||
|
always = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
cooldown = { years = 0 }
|
||||||
|
|
||||||
|
effect = {
|
||||||
|
scope:actor = {
|
||||||
|
set_character_rite = scope:selected_item
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_potential = {
|
||||||
|
always = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_will_do = {
|
||||||
|
base = 1000
|
||||||
|
}
|
||||||
|
|
||||||
|
widget = {
|
||||||
|
gui = "decision_view_widget_select_rite"
|
||||||
|
controller = select_scope_object
|
||||||
|
show_from_start = no
|
||||||
|
|
||||||
|
setup_items = {
|
||||||
|
scope:actor = {
|
||||||
|
every_available_rite = {
|
||||||
|
limit = {
|
||||||
|
scope:actor.rite != this
|
||||||
|
}
|
||||||
|
add_to_list = item_list
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
default_item = {
|
||||||
|
scope:actor = {
|
||||||
|
rite = {
|
||||||
|
save_scope_as = selected_item
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_item_will_do = {
|
||||||
|
value = 100
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
"divergence(faith.main_rite)" >= minor_rite_divergence_value
|
||||||
|
}
|
||||||
|
add = 50
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#TODO_PAM: Test debug decision, remove if no longer needed as demo
|
||||||
|
start_test_select_tenet = {
|
||||||
|
picture = {
|
||||||
|
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
|
||||||
|
}
|
||||||
|
|
||||||
|
decision_group_type = debug
|
||||||
|
|
||||||
|
ai_check_interval_by_tier = {
|
||||||
|
barony = 0
|
||||||
|
county = 0
|
||||||
|
duchy = 0
|
||||||
|
kingdom = 0
|
||||||
|
empire = 0
|
||||||
|
hegemony = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
sort_order = 110
|
||||||
|
|
||||||
|
is_shown = {
|
||||||
|
always = no # Disabled from GDP onwards
|
||||||
|
}
|
||||||
|
|
||||||
|
is_valid = {
|
||||||
|
always = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
is_valid_showing_failures_only = {
|
||||||
|
exists = scope:selected_item
|
||||||
|
}
|
||||||
|
|
||||||
|
cooldown = { years = 0 }
|
||||||
|
|
||||||
|
effect = {
|
||||||
|
scope:actor = {
|
||||||
|
every_personal_tenet = {
|
||||||
|
scope:actor = {
|
||||||
|
remove_personal_tenet = prev
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set_personal_tenet = scope:selected_item
|
||||||
|
pam_remove_forbidden_personal_tenet_secret_if_invalid_effect = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_potential = {
|
||||||
|
always = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_will_do = {
|
||||||
|
base = 1000
|
||||||
|
}
|
||||||
|
|
||||||
|
widget = {
|
||||||
|
gui = "decision_view_widget_select_tenet"
|
||||||
|
controller = select_scope_object
|
||||||
|
show_from_start = yes
|
||||||
|
decision_to_second_step_button = "SELECT"
|
||||||
|
|
||||||
|
setup_items = {
|
||||||
|
scope:actor = {
|
||||||
|
every_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
add_to_list = item_list
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
default_item = {
|
||||||
|
scope:actor = {
|
||||||
|
random_personal_tenet = {
|
||||||
|
save_scope_as = selected_item
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
is_item_valid = {
|
||||||
|
this != tenet:tenet_confession
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_select_item = {
|
||||||
|
scope:actor = {
|
||||||
|
random_personal_tenet = {
|
||||||
|
save_scope_as = selected_item
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#TODO_PAM: Test debug decision, remove if no longer needed as demo
|
||||||
|
start_test_select_character = {
|
||||||
|
picture = {
|
||||||
|
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
|
||||||
|
}
|
||||||
|
|
||||||
|
decision_group_type = debug
|
||||||
|
|
||||||
|
is_shown = {
|
||||||
|
debug_only = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_check_interval_by_tier = {
|
||||||
|
barony = 0
|
||||||
|
county = 0
|
||||||
|
duchy = 0
|
||||||
|
kingdom = 0
|
||||||
|
empire = 0
|
||||||
|
hegemony = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
sort_order = 110
|
||||||
|
|
||||||
|
is_valid = {
|
||||||
|
always = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
is_valid_showing_failures_only = {
|
||||||
|
exists = scope:selected_item
|
||||||
|
}
|
||||||
|
|
||||||
|
cooldown = { years = 0 }
|
||||||
|
|
||||||
|
effect = {
|
||||||
|
scope:selected_item = {
|
||||||
|
add_trait = saint
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_potential = {
|
||||||
|
always = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_will_do = {
|
||||||
|
base = 1000
|
||||||
|
}
|
||||||
|
|
||||||
|
widget = {
|
||||||
|
gui = "decision_view_widget_select_character"
|
||||||
|
controller = select_scope_object
|
||||||
|
show_from_start = yes
|
||||||
|
decision_to_second_step_button = "SELECT"
|
||||||
|
|
||||||
|
setup_items = {
|
||||||
|
scope:actor = {
|
||||||
|
every_ancestor = {
|
||||||
|
even_if_dead = yes
|
||||||
|
limit = {
|
||||||
|
is_alive = no
|
||||||
|
NOT = { has_trait = saint }
|
||||||
|
}
|
||||||
|
add_to_list = item_list
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
default_item = {
|
||||||
|
scope:actor = {
|
||||||
|
random_ancestor = {
|
||||||
|
even_if_dead = yes
|
||||||
|
limit = {
|
||||||
|
is_alive = no
|
||||||
|
NOT = { has_trait = saint }
|
||||||
|
}
|
||||||
|
save_scope_as = selected_item
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
is_item_valid = {
|
||||||
|
is_alive = no
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_select_item = {
|
||||||
|
scope:actor = {
|
||||||
|
random_ancestor = {
|
||||||
|
even_if_dead = yes
|
||||||
|
limit = {
|
||||||
|
is_alive = no
|
||||||
|
NOT = { has_trait = saint }
|
||||||
|
}
|
||||||
|
save_scope_as = selected_item
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#TODO_PAM: Test debug decision, remove if no longer needed as demo
|
||||||
|
start_test_select_kingdom = {
|
||||||
|
picture = {
|
||||||
|
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
|
||||||
|
}
|
||||||
|
|
||||||
|
decision_group_type = debug
|
||||||
|
|
||||||
|
ai_check_interval_by_tier = {
|
||||||
|
barony = 0
|
||||||
|
county = 0
|
||||||
|
duchy = 0
|
||||||
|
kingdom = 0
|
||||||
|
empire = 0
|
||||||
|
hegemony = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
sort_order = 110
|
||||||
|
|
||||||
|
is_shown = {
|
||||||
|
always = no # Disabled from GDP onwards
|
||||||
|
}
|
||||||
|
|
||||||
|
is_valid = {
|
||||||
|
always = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
is_valid_showing_failures_only = {
|
||||||
|
always = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
cooldown = { years = 0 }
|
||||||
|
|
||||||
|
effect = {}
|
||||||
|
|
||||||
|
ai_potential = {
|
||||||
|
always = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_will_do = {
|
||||||
|
base = 1000
|
||||||
|
}
|
||||||
|
|
||||||
|
widget = {
|
||||||
|
controller = select_kingdom_title
|
||||||
|
title_valid = {
|
||||||
|
# Title must have real land under it
|
||||||
|
exists = capital_vassal.capital_vassal
|
||||||
|
# At least 5 de-jure counties must be hostile to our faith
|
||||||
|
any_in_de_jure_hierarchy = {
|
||||||
|
continue = { tier > tier_county }
|
||||||
|
tier = tier_county
|
||||||
|
count >= 5
|
||||||
|
scope:ruler.faith.main_rite = {
|
||||||
|
is_hostile_enough_for_holy_war_trigger = { RITE = prev.holder.top_liege.rite }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Levy the Tithes
|
# Levy the Tithes
|
||||||
pam_levy_the_tithes_decision = {
|
pam_levy_the_tithes_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
|
|
@ -1260,9 +1612,14 @@ pam_levy_the_tithes_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
is_landless_adventurer = no
|
||||||
|
is_landless_merchant = no
|
||||||
any_character_situation = { # You are part of the Christian Situation
|
any_character_situation = { # You are part of the Christian Situation
|
||||||
situation_type = the_christian_church
|
situation_type = the_christian_church
|
||||||
}
|
}
|
||||||
|
top_participant_group:the_christian_church ?= {
|
||||||
|
has_participant_group_parameter = the_christian_church_levy_the_tithes_decision
|
||||||
|
}
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
is_clergy = no
|
is_clergy = no
|
||||||
is_ruler = yes
|
is_ruler = yes
|
||||||
|
|
@ -1339,15 +1696,16 @@ pam_send_legatine_mission_decision = {
|
||||||
barony = 0
|
barony = 0
|
||||||
county = 0
|
county = 0
|
||||||
duchy = 0
|
duchy = 0
|
||||||
kingdom = 24
|
kingdom = 60
|
||||||
empire = 12
|
empire = 24
|
||||||
hegemony = 12
|
hegemony = 12
|
||||||
}
|
}
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
is_clergy = yes
|
is_clergy = yes
|
||||||
any_sub_realm_county = {
|
is_landed = yes
|
||||||
always = yes
|
top_participant_group:the_christian_church ?= {
|
||||||
|
has_participant_group_parameter = the_christian_church_legatine_mission
|
||||||
}
|
}
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
is_ruler = yes
|
is_ruler = yes
|
||||||
|
|
@ -1420,13 +1778,13 @@ pam_send_legatine_mission_decision = {
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
development_level <= bad_development_level
|
prosperity_level <= bad_prosperity_level
|
||||||
}
|
}
|
||||||
add = 10
|
add = 10
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
county_control <= 50
|
county_control < county_control_baseline
|
||||||
}
|
}
|
||||||
add = 50
|
add = 50
|
||||||
}
|
}
|
||||||
|
|
@ -3109,9 +3467,9 @@ pam_promulgate_word_of_pious_deeds_decision = {
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
county = 24
|
county = 120
|
||||||
duchy = 24
|
duchy = 120
|
||||||
kingdom = 12
|
kingdom = 24
|
||||||
empire = 12
|
empire = 12
|
||||||
hegemony = 12
|
hegemony = 12
|
||||||
}
|
}
|
||||||
|
|
@ -3119,6 +3477,7 @@ pam_promulgate_word_of_pious_deeds_decision = {
|
||||||
sort_order = 110
|
sort_order = 110
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
domicile ?= { has_domicile_parameter = unlocks_pam_propagate_word_of_my_piety_decision }
|
||||||
pam_can_hold_cardinalate_trigger = yes
|
pam_can_hold_cardinalate_trigger = yes
|
||||||
is_clergy = yes
|
is_clergy = yes
|
||||||
has_spiritual_fulfillment_type = christian_fulfillment
|
has_spiritual_fulfillment_type = christian_fulfillment
|
||||||
|
|
@ -3425,7 +3784,7 @@ pam_declare_rite_heresy_decision = {
|
||||||
selection_tooltip = pam_declare_rite_heresy_decision_tooltip
|
selection_tooltip = pam_declare_rite_heresy_decision_tooltip
|
||||||
confirm_text = pam_declare_rite_heresy_decision_confirm
|
confirm_text = pam_declare_rite_heresy_decision_confirm
|
||||||
|
|
||||||
sort_order = 108
|
sort_order = 50
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
|
|
@ -3640,7 +3999,7 @@ pam_permit_tenet_decision = {
|
||||||
selection_tooltip = pam_permit_tenet_decision_tooltip
|
selection_tooltip = pam_permit_tenet_decision_tooltip
|
||||||
confirm_text = pam_permit_tenet_decision_confirm
|
confirm_text = pam_permit_tenet_decision_confirm
|
||||||
|
|
||||||
sort_order = 110
|
sort_order = 50
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
|
|
@ -3743,7 +4102,26 @@ pam_permit_tenet_decision = {
|
||||||
|
|
||||||
ai_select_item = {
|
ai_select_item = {
|
||||||
scope:actor = {
|
scope:actor = {
|
||||||
if = { # A tenet the faith adores gets sanctioned whether or not the Head of Faith cares for it
|
if = { # A tenet intrinsic to the faith is restored before anything else is sanctioned
|
||||||
|
limit = {
|
||||||
|
any_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
pam_tenet_can_be_permitted_trigger = yes
|
||||||
|
pam_tenet_ai_should_permit_intrinsic_trigger = { CHARACTER = scope:actor }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ordered_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
limit = {
|
||||||
|
pam_tenet_can_be_permitted_trigger = yes
|
||||||
|
pam_tenet_ai_should_permit_intrinsic_trigger = { CHARACTER = scope:actor }
|
||||||
|
}
|
||||||
|
order_by = pam_raw_tenet_popularity_value
|
||||||
|
position = 0
|
||||||
|
save_scope_as = selected_item
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else_if = { # A tenet the faith adores gets sanctioned whether or not the Head of Faith cares for it
|
||||||
limit = {
|
limit = {
|
||||||
any_character_tenet = {
|
any_character_tenet = {
|
||||||
knowledge_filter = known
|
knowledge_filter = known
|
||||||
|
|
@ -3776,6 +4154,10 @@ pam_permit_tenet_decision = {
|
||||||
modifier = {
|
modifier = {
|
||||||
add = pam_tenet_popularity_impact_value
|
add = pam_tenet_popularity_impact_value
|
||||||
}
|
}
|
||||||
|
modifier = {
|
||||||
|
factor = anathema_to_faith_ai_weight_factor
|
||||||
|
tenet_is_anathema_to_faith_trigger = { FAITH = scope:actor.faith }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
save_scope_as = selected_item
|
save_scope_as = selected_item
|
||||||
}
|
}
|
||||||
|
|
@ -3791,6 +4173,10 @@ pam_permit_tenet_decision = {
|
||||||
religion = religion:eastern_orthodox_religion
|
religion = religion:eastern_orthodox_religion
|
||||||
}
|
}
|
||||||
OR = {
|
OR = {
|
||||||
|
any_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
pam_tenet_ai_should_permit_intrinsic_trigger = { CHARACTER = root }
|
||||||
|
}
|
||||||
any_desired_tenet = {
|
any_desired_tenet = {
|
||||||
only_positive = yes
|
only_positive = yes
|
||||||
threshold = 1
|
threshold = 1
|
||||||
|
|
@ -3971,6 +4357,25 @@ pam_prohibit_tenet_decision = {
|
||||||
save_scope_as = selected_item
|
save_scope_as = selected_item
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else_if = { # An anathema the faith permits is struck down next
|
||||||
|
limit = {
|
||||||
|
any_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
pam_tenet_can_be_prohibited_trigger = yes
|
||||||
|
pam_tenet_ai_should_prohibit_anathema_trigger = { CHARACTER = scope:actor }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ordered_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
limit = {
|
||||||
|
pam_tenet_can_be_prohibited_trigger = yes
|
||||||
|
pam_tenet_ai_should_prohibit_anathema_trigger = { CHARACTER = scope:actor }
|
||||||
|
}
|
||||||
|
order_by = pam_raw_tenet_popularity_value
|
||||||
|
position = 0
|
||||||
|
save_scope_as = selected_item
|
||||||
|
}
|
||||||
|
}
|
||||||
else = {
|
else = {
|
||||||
random_undesired_tenet = {
|
random_undesired_tenet = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -4006,6 +4411,11 @@ pam_prohibit_tenet_decision = {
|
||||||
pam_tenet_can_be_prohibited_no_actor_trigger = yes
|
pam_tenet_can_be_prohibited_no_actor_trigger = yes
|
||||||
pam_tenet_ai_should_purge_trigger = { CHARACTER = root }
|
pam_tenet_ai_should_purge_trigger = { CHARACTER = root }
|
||||||
}
|
}
|
||||||
|
any_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
pam_tenet_can_be_prohibited_no_actor_trigger = yes
|
||||||
|
pam_tenet_ai_should_prohibit_anathema_trigger = { CHARACTER = root }
|
||||||
|
}
|
||||||
any_undesired_tenet = {
|
any_undesired_tenet = {
|
||||||
known_tenets = yes
|
known_tenets = yes
|
||||||
only_negative = yes
|
only_negative = yes
|
||||||
|
|
@ -4827,6 +5237,8 @@ pam_persecute_tenet_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
is_landless_adventurer = no
|
||||||
|
is_landless_merchant = no
|
||||||
has_tenet_popularity_trigger = yes
|
has_tenet_popularity_trigger = yes
|
||||||
is_playable_character = yes
|
is_playable_character = yes
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
|
|
@ -5079,6 +5491,7 @@ consecrate_kingdom_decision = {
|
||||||
}
|
}
|
||||||
is_landed_or_landless_administrative = yes
|
is_landed_or_landless_administrative = yes
|
||||||
is_confederation_member = no
|
is_confederation_member = no
|
||||||
|
NOT = { government_has_flag = government_is_republic }
|
||||||
OR = {
|
OR = {
|
||||||
exists = rite.head_of_rite
|
exists = rite.head_of_rite
|
||||||
exists = faith.religious_head
|
exists = faith.religious_head
|
||||||
|
|
@ -6072,7 +6485,7 @@ pam_invite_syncretic_exiles_decision = {
|
||||||
limit = {
|
limit = {
|
||||||
pam_personal_syncretism_exile_rite_trigger = yes
|
pam_personal_syncretism_exile_rite_trigger = yes
|
||||||
}
|
}
|
||||||
order_by = var:converted_development
|
order_by = var:converted_prosperity
|
||||||
save_scope_as = target_rite
|
save_scope_as = target_rite
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -6306,7 +6719,7 @@ pam_personal_sacrifice_of_wealth_decision = {
|
||||||
ai_item_will_do = {
|
ai_item_will_do = {
|
||||||
value = 10
|
value = 10
|
||||||
if = {
|
if = {
|
||||||
limit = { development_level <= bad_development_level }
|
limit = { prosperity_level <= bad_prosperity_level }
|
||||||
add = 50
|
add = 50
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -6350,7 +6763,7 @@ pam_personal_sacrifice_of_wealth_decision = {
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
factor = 0
|
factor = 0
|
||||||
NOT = { any_sub_realm_county = { development_level <= bad_development_level } }
|
NOT = { any_sub_realm_county = { prosperity_level <= bad_prosperity_level } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -6420,8 +6833,10 @@ pam_develop_clerical_court_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
|
is_available_adult = yes
|
||||||
is_at_war = no
|
is_at_war = no
|
||||||
pam_government_is_religious_playable_trigger = yes
|
pam_government_is_religious_playable_trigger = yes
|
||||||
|
short_term_treasury_or_gold >= minor_treasury_or_gold_value
|
||||||
OR = {
|
OR = {
|
||||||
any_courtier = { pam_clerical_court_ordain_candidate_trigger = yes }
|
any_courtier = { pam_clerical_court_ordain_candidate_trigger = yes }
|
||||||
any_courtier = { pam_clerical_court_pupil_trigger = yes }
|
any_courtier = { pam_clerical_court_pupil_trigger = yes }
|
||||||
|
|
|
||||||
|
|
@ -635,7 +635,8 @@ pam_extract_relic_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
always = yes
|
# Must stay at or below the lowest possible pam_extract_relic_piety_cost, or the AI cannot afford the decision
|
||||||
|
piety >= 1250
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_will_do = {
|
ai_will_do = {
|
||||||
|
|
|
||||||
|
|
@ -2095,11 +2095,16 @@ ai_movement_petition_change_laws_decision = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# Renounce Family Title
|
# Renounce Family Title
|
||||||
### Retire from Heading the [ROOT.Char.GetHouse.GetNameNoTooltip] House ###
|
### Retire from Heading House [ROOT.Char.GetHouse.GetNameNoTooltip] ###
|
||||||
renounce_noble_family_title_decision = {
|
renounce_noble_family_title_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
|
trigger = { tgp_retires_to_eastern_estate_trigger = yes }
|
||||||
reference = "gfx/interface/illustrations/event_scenes/tgp_asia_estate.dds"
|
reference = "gfx/interface/illustrations/event_scenes/tgp_asia_estate.dds"
|
||||||
}
|
}
|
||||||
|
picture = {
|
||||||
|
reference = "gfx/interface/illustrations/event_scenes/ep3_medi_estate.dds"
|
||||||
|
}
|
||||||
|
|
||||||
sort_order = 85
|
sort_order = 85
|
||||||
|
|
||||||
desc = {
|
desc = {
|
||||||
|
|
@ -2121,8 +2126,11 @@ renounce_noble_family_title_decision = {
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
any_held_title = { is_noble_family_title = yes }
|
any_held_title = { is_noble_family_title = yes }
|
||||||
NOT = { religion = religion:buddhism_religion } # Uses tgp_japan_become_a_monk_decision
|
NOR = {
|
||||||
NOT = { top_liege = root } #This is not a general abdication decision
|
religion = religion:buddhism_religion # Uses tgp_japan_become_a_monk_decision
|
||||||
|
top_liege = root # This is not a general abdication decision
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
}
|
||||||
is_house_head = yes
|
is_house_head = yes
|
||||||
is_playable_character = yes
|
is_playable_character = yes
|
||||||
has_tgp_dlc_trigger = yes
|
has_tgp_dlc_trigger = yes
|
||||||
|
|
@ -2140,15 +2148,22 @@ renounce_noble_family_title_decision = {
|
||||||
current_heir ?= { is_available_ai_adult = yes }
|
current_heir ?= { is_available_ai_adult = yes }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
trigger_if = {
|
||||||
|
limit = {
|
||||||
|
OR = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
government_has_flag = government_is_administrative
|
||||||
|
}
|
||||||
|
}
|
||||||
|
is_landed = no
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
is_valid_showing_failures_only = {
|
is_valid_showing_failures_only = {
|
||||||
is_available_adult = yes
|
is_available_adult = yes
|
||||||
is_at_war_with_liege = no
|
is_at_war_with_liege = no
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = {
|
limit = { has_realm_law_flag = celestial_retirement_law }
|
||||||
has_realm_law_flag = celestial_retirement_law
|
|
||||||
}
|
|
||||||
tgp_is_above_retirement_age_trigger = { REALM_OWNER = root }
|
tgp_is_above_retirement_age_trigger = { REALM_OWNER = root }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2162,7 +2177,13 @@ renounce_noble_family_title_decision = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
show_as_tooltip = {
|
show_as_tooltip = {
|
||||||
add_character_modifier = { modifier = ep3_renounced_estate }
|
if = {
|
||||||
|
limit = { tgp_retires_to_eastern_estate_trigger = yes }
|
||||||
|
add_character_modifier = { modifier = ep3_renounced_estate }
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
add_character_modifier = { modifier = tgp_western_renounced_estate }
|
||||||
|
}
|
||||||
custom_tooltip = renounce_noble_family_title_decision_tt
|
custom_tooltip = renounce_noble_family_title_decision_tt
|
||||||
if = {
|
if = {
|
||||||
limit = { exists = scope:new_player }
|
limit = { exists = scope:new_player }
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,8 @@ convert_to_mandala_government_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/tgp_decision_mandala.dds"
|
reference = "gfx/interface/illustrations/decisions/tgp_decision_mandala.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
|
sort_order = 40
|
||||||
desc = convert_to_mandala_government_decision_desc
|
desc = convert_to_mandala_government_decision_desc
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
|
|
@ -248,7 +249,8 @@ assimilate_to_mandala_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/tgp_decision_mandala.dds"
|
reference = "gfx/interface/illustrations/decisions/tgp_decision_mandala.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
|
sort_order = 40
|
||||||
desc = {
|
desc = {
|
||||||
first_valid = {
|
first_valid = {
|
||||||
triggered_desc = {
|
triggered_desc = {
|
||||||
|
|
@ -273,6 +275,7 @@ assimilate_to_mandala_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
is_landed = yes
|
||||||
highest_held_title_tier > tier_barony
|
highest_held_title_tier > tier_barony
|
||||||
overlord ?= { government_has_flag = government_is_mandala }
|
overlord ?= { government_has_flag = government_is_mandala }
|
||||||
NAND = {
|
NAND = {
|
||||||
|
|
@ -436,6 +439,7 @@ assimilate_to_mandala_decision = {
|
||||||
this != top_overlord
|
this != top_overlord
|
||||||
overlord = { government_has_flag = government_is_mandala }
|
overlord = { government_has_flag = government_is_mandala }
|
||||||
primary_title.tier > tier_barony
|
primary_title.tier > tier_barony
|
||||||
|
NOT = { government_has_flag = government_is_republic }
|
||||||
#Keep the tributaries Wanua
|
#Keep the tributaries Wanua
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -524,7 +528,8 @@ mandala_adopt_clan_government_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
|
sort_order = 40
|
||||||
desc = mandala_adopt_clan_government_decision_desc
|
desc = mandala_adopt_clan_government_decision_desc
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
|
|
@ -668,7 +673,7 @@ seize_mandala_capital_decision = {
|
||||||
any_sub_realm_barony = {
|
any_sub_realm_barony = {
|
||||||
title_province ?= {
|
title_province ?= {
|
||||||
has_building_with_flag = mandala_capital_building
|
has_building_with_flag = mandala_capital_building
|
||||||
has_ruined_great_building = no
|
has_ruined_great_district = no
|
||||||
}
|
}
|
||||||
kingdom ?= root.capital_county.kingdom
|
kingdom ?= root.capital_county.kingdom
|
||||||
}
|
}
|
||||||
|
|
@ -689,7 +694,7 @@ seize_mandala_capital_decision = {
|
||||||
kingdom = root.capital_county.kingdom
|
kingdom = root.capital_county.kingdom
|
||||||
title_province = {
|
title_province = {
|
||||||
has_building_with_flag = mandala_capital_building
|
has_building_with_flag = mandala_capital_building
|
||||||
has_ruined_great_building = no
|
has_ruined_great_district = no
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -698,7 +703,7 @@ seize_mandala_capital_decision = {
|
||||||
kingdom = root.capital_county.kingdom
|
kingdom = root.capital_county.kingdom
|
||||||
title_province = {
|
title_province = {
|
||||||
has_building_with_flag = mandala_capital_building
|
has_building_with_flag = mandala_capital_building
|
||||||
has_ruined_great_building = no
|
has_ruined_great_district = no
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
holder = { save_scope_as = previous_holder }
|
holder = { save_scope_as = previous_holder }
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,15 @@ visit_silk_road_market_decision = {
|
||||||
is_shown = {
|
is_shown = {
|
||||||
exists = situation:silk_road_situation
|
exists = situation:silk_road_situation
|
||||||
OR = {
|
OR = {
|
||||||
any_character_situation = { situation_type = silk_road_situation }
|
|
||||||
is_ai = no
|
is_ai = no
|
||||||
|
any_character_situation = { situation_type = silk_road_situation }
|
||||||
}
|
}
|
||||||
|
OR = {
|
||||||
|
has_tgp_dlc_trigger = yes # All Under Heaven
|
||||||
|
has_gdp_dlc_trigger = yes # Silk & Silver
|
||||||
|
}
|
||||||
|
is_playable_character = yes
|
||||||
|
|
||||||
#There is no point in showing this decision if you cannot benefit from going at all:
|
#There is no point in showing this decision if you cannot benefit from going at all:
|
||||||
OR = {
|
OR = {
|
||||||
silk_road_valid_market_to_visit_trigger = { SUB_REGION = china }
|
silk_road_valid_market_to_visit_trigger = { SUB_REGION = china }
|
||||||
|
|
@ -33,14 +39,10 @@ visit_silk_road_market_decision = {
|
||||||
silk_road_valid_market_to_visit_trigger = { SUB_REGION = transcaspia }
|
silk_road_valid_market_to_visit_trigger = { SUB_REGION = transcaspia }
|
||||||
silk_road_valid_market_to_visit_trigger = { SUB_REGION = occident }
|
silk_road_valid_market_to_visit_trigger = { SUB_REGION = occident }
|
||||||
}
|
}
|
||||||
is_playable_character = yes
|
|
||||||
|
|
||||||
has_tgp_dlc_trigger = yes
|
|
||||||
}
|
}
|
||||||
|
|
||||||
is_valid = {
|
is_valid = {
|
||||||
is_adult = yes
|
is_adult = yes
|
||||||
gold >= major_gold_value
|
|
||||||
}
|
}
|
||||||
|
|
||||||
is_valid_showing_failures_only = {
|
is_valid_showing_failures_only = {
|
||||||
|
|
@ -49,6 +51,10 @@ visit_silk_road_market_decision = {
|
||||||
is_incapable = no
|
is_incapable = no
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cost = {
|
||||||
|
gold = major_gold_value
|
||||||
|
}
|
||||||
|
|
||||||
widget = {
|
widget = {
|
||||||
gui = "decision_view_widget_option_list_generic"
|
gui = "decision_view_widget_option_list_generic"
|
||||||
controller = decision_option_list_controller
|
controller = decision_option_list_controller
|
||||||
|
|
@ -62,8 +68,8 @@ visit_silk_road_market_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = no_building_at_silk_road_market_desc
|
text = no_building_at_silk_road_market_desc
|
||||||
title:c_jingzhao = { # Chang'an
|
title:b_zhouzhi.title_province = { # Chang'an
|
||||||
any_county_province = { has_building_with_flag = silk_road_node }
|
has_building_with_flag = silk_road_node
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
|
|
@ -116,8 +122,8 @@ visit_silk_road_market_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = no_building_at_silk_road_market_desc
|
text = no_building_at_silk_road_market_desc
|
||||||
title:c_lhasa = {
|
title:b_potala.title_province = { # Lhasa
|
||||||
any_county_province = { has_building_with_flag = silk_road_node }
|
has_building_with_flag = silk_road_node
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
|
|
@ -170,8 +176,8 @@ visit_silk_road_market_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = no_building_at_silk_road_market_desc
|
text = no_building_at_silk_road_market_desc
|
||||||
title:c_lahur = {
|
title:b_lahur.title_province = { # Lahur
|
||||||
any_county_province = { has_building_with_flag = silk_road_node }
|
has_building_with_flag = silk_road_node
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
|
|
@ -224,8 +230,8 @@ visit_silk_road_market_decision = {
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = no_building_at_silk_road_market_desc
|
text = no_building_at_silk_road_market_desc
|
||||||
title:c_shazhou = { # Dunhuang
|
title:b_dunhuang_2.title_province = { # Dunhuang
|
||||||
any_county_province = { has_building_with_flag = silk_road_node }
|
has_building_with_flag = silk_road_node
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
|
|
@ -272,14 +278,14 @@ visit_silk_road_market_decision = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
item = { # Khiva
|
item = { # Gurganj
|
||||||
value = c_khiva
|
value = c_gurganj
|
||||||
is_shown = { always = yes }
|
is_shown = { always = yes }
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = no_building_at_silk_road_market_desc
|
text = no_building_at_silk_road_market_desc
|
||||||
title:c_khiva = {
|
title:b_gurganj.title_province = { # Gurganj
|
||||||
any_county_province = { has_building_with_flag = silk_road_node }
|
has_building_with_flag = silk_road_node
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
|
|
@ -287,7 +293,7 @@ visit_silk_road_market_decision = {
|
||||||
silk_road_valid_market_to_visit_trigger = { SUB_REGION = transcaspia }
|
silk_road_valid_market_to_visit_trigger = { SUB_REGION = transcaspia }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
localization = visit_silk_road_market_decision_khiva
|
localization = visit_silk_road_market_decision_gurganj
|
||||||
icon = "gfx/interface/icons/travel/icon_travel_silk_road_marketplace.dds"
|
icon = "gfx/interface/icons/travel/icon_travel_silk_road_marketplace.dds"
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 1
|
value = 1
|
||||||
|
|
@ -295,7 +301,7 @@ visit_silk_road_market_decision = {
|
||||||
limit = {
|
limit = {
|
||||||
root.location = {
|
root.location = {
|
||||||
squared_distance = {
|
squared_distance = {
|
||||||
target = title:c_khiva.title_province
|
target = title:c_gurganj.title_province
|
||||||
value <= squared_distance_small
|
value <= squared_distance_small
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -306,7 +312,7 @@ visit_silk_road_market_decision = {
|
||||||
limit = {
|
limit = {
|
||||||
root.location = {
|
root.location = {
|
||||||
squared_distance = {
|
squared_distance = {
|
||||||
target = title:c_khiva.title_province
|
target = title:c_gurganj.title_province
|
||||||
value <= squared_distance_large
|
value <= squared_distance_large
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -317,7 +323,7 @@ visit_silk_road_market_decision = {
|
||||||
limit = {
|
limit = {
|
||||||
root.location = {
|
root.location = {
|
||||||
squared_distance = {
|
squared_distance = {
|
||||||
target = title:c_khiva.title_province
|
target = title:c_gurganj.title_province
|
||||||
value > squared_distance_huge
|
value > squared_distance_huge
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -326,14 +332,14 @@ visit_silk_road_market_decision = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
item = { # Dvin
|
item = { # Tabriz
|
||||||
value = c_dvin
|
value = c_tabriz
|
||||||
is_shown = { always = yes }
|
is_shown = { always = yes }
|
||||||
is_valid = {
|
is_valid = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = no_building_at_silk_road_market_desc
|
text = no_building_at_silk_road_market_desc
|
||||||
title:c_dvin = {
|
title:b_tabriz.title_province = { # Tabriz
|
||||||
any_county_province = { has_building_with_flag = silk_road_node }
|
has_building_with_flag = silk_road_node
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
|
|
@ -341,7 +347,7 @@ visit_silk_road_market_decision = {
|
||||||
silk_road_valid_market_to_visit_trigger = { SUB_REGION = occident }
|
silk_road_valid_market_to_visit_trigger = { SUB_REGION = occident }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
localization = visit_silk_road_market_decision_dvin
|
localization = visit_silk_road_market_decision_tabriz
|
||||||
icon = "gfx/interface/icons/travel/icon_travel_silk_road_marketplace.dds"
|
icon = "gfx/interface/icons/travel/icon_travel_silk_road_marketplace.dds"
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
value = 1
|
value = 1
|
||||||
|
|
@ -349,7 +355,7 @@ visit_silk_road_market_decision = {
|
||||||
limit = {
|
limit = {
|
||||||
root.location = {
|
root.location = {
|
||||||
squared_distance = {
|
squared_distance = {
|
||||||
target = title:c_dvin.title_province
|
target = title:c_tabriz.title_province
|
||||||
value <= squared_distance_small
|
value <= squared_distance_small
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -360,7 +366,7 @@ visit_silk_road_market_decision = {
|
||||||
limit = {
|
limit = {
|
||||||
root.location = {
|
root.location = {
|
||||||
squared_distance = {
|
squared_distance = {
|
||||||
target = title:c_dvin.title_province
|
target = title:c_tabriz.title_province
|
||||||
value <= squared_distance_large
|
value <= squared_distance_large
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -371,7 +377,7 @@ visit_silk_road_market_decision = {
|
||||||
limit = {
|
limit = {
|
||||||
root.location = {
|
root.location = {
|
||||||
squared_distance = {
|
squared_distance = {
|
||||||
target = title:c_dvin.title_province
|
target = title:c_tabriz.title_province
|
||||||
value > squared_distance_huge
|
value > squared_distance_huge
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -383,11 +389,10 @@ visit_silk_road_market_decision = {
|
||||||
}
|
}
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
remove_short_term_gold = major_gold_value
|
|
||||||
switch = {
|
switch = {
|
||||||
trigger = yes
|
trigger = yes
|
||||||
scope:c_dvin = { # Dvin
|
scope:c_tabriz = { # Tabriz
|
||||||
title:c_dvin = { tgp_silk_road_decision_scope_effect = yes }
|
title:c_tabriz = { tgp_silk_road_decision_scope_effect = yes }
|
||||||
}
|
}
|
||||||
scope:c_jingzhao = { # Chang'an
|
scope:c_jingzhao = { # Chang'an
|
||||||
title:c_jingzhao = { tgp_silk_road_decision_scope_effect = yes }
|
title:c_jingzhao = { tgp_silk_road_decision_scope_effect = yes }
|
||||||
|
|
@ -401,8 +406,8 @@ visit_silk_road_market_decision = {
|
||||||
scope:c_lhasa = { # Lhasa
|
scope:c_lhasa = { # Lhasa
|
||||||
title:c_lhasa = { tgp_silk_road_decision_scope_effect = yes }
|
title:c_lhasa = { tgp_silk_road_decision_scope_effect = yes }
|
||||||
}
|
}
|
||||||
scope:c_khiva = { # Khiva
|
scope:c_gurganj = { # Gurganj
|
||||||
title:c_khiva = { tgp_silk_road_decision_scope_effect = yes }
|
title:c_gurganj = { tgp_silk_road_decision_scope_effect = yes }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -419,16 +424,22 @@ visit_silk_road_market_decision = {
|
||||||
on_arrival_event = tgp_silk_road_events.0010
|
on_arrival_event = tgp_silk_road_events.0010
|
||||||
travel_with_domicile = no
|
travel_with_domicile = no
|
||||||
return_trip = yes
|
return_trip = yes
|
||||||
on_travel_planner_cancel_on_action = silk_road_market_visit_travel_planner_cancel_on_action # here comes the refund!
|
on_travel_planner_cancel_event = tgp_silk_road_events.0011
|
||||||
players_use_planner = yes
|
players_use_planner = yes
|
||||||
#on_arrival_destinations = last
|
#on_arrival_destinations = last
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = { exists = scope:innovation_temp }
|
limit = { government_has_flag = government_is_merchant }
|
||||||
custom_tooltip = potential_innovation_at_silk_road_market_desc
|
custom_tooltip = visit_silk_road_market_merchant_rewards_tt
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:innovation_temp }
|
||||||
|
custom_tooltip = potential_innovation_at_silk_road_market_desc
|
||||||
|
}
|
||||||
|
custom_tooltip = travel_silk_road_market_innovation_warning_tt
|
||||||
}
|
}
|
||||||
custom_tooltip = travel_silk_road_market_innovation_warning_tt
|
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
root.location = {
|
root.location = {
|
||||||
|
|
|
||||||
|
|
@ -382,7 +382,8 @@ convert_to_meritocratic_decision = {
|
||||||
picture = {
|
picture = {
|
||||||
reference = "gfx/interface/illustrations/event_story/tgp_dynastic_cycle_stability.dds"
|
reference = "gfx/interface/illustrations/event_story/tgp_dynastic_cycle_stability.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = major
|
decision_group_type = realm
|
||||||
|
sort_order = 40
|
||||||
|
|
||||||
ai_check_interval_by_tier = {
|
ai_check_interval_by_tier = {
|
||||||
barony = 0
|
barony = 0
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ tribute_mission_decision_mandala = {
|
||||||
reference = "gfx/interface/illustrations/decisions/tgp_projects_mandala_capital.dds"
|
reference = "gfx/interface/illustrations/decisions/tgp_projects_mandala_capital.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = realm
|
decision_group_type = realm
|
||||||
|
sort_order = 10
|
||||||
|
|
||||||
should_create_alert = { always = yes }
|
should_create_alert = { always = yes }
|
||||||
|
|
||||||
|
|
@ -13,6 +14,7 @@ tribute_mission_decision_mandala = {
|
||||||
cooldown = { years = 5 }
|
cooldown = { years = 5 }
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
NOT = { government_has_flag = government_is_merchant }
|
||||||
is_tributary = yes
|
is_tributary = yes
|
||||||
suzerain ?= { government_has_flag = government_is_mandala }
|
suzerain ?= { government_has_flag = government_is_mandala }
|
||||||
}
|
}
|
||||||
|
|
@ -126,6 +128,8 @@ tribute_mission_decision_mandala = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
|
is_tributary = yes
|
||||||
|
suzerain ?= { government_has_flag = government_is_mandala }
|
||||||
tribute_mission_decision_ai_potential_trigger = { TARGET = suzerain }
|
tribute_mission_decision_ai_potential_trigger = { TARGET = suzerain }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -140,6 +144,7 @@ tribute_mission_decision_china = {
|
||||||
reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds"
|
reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = realm
|
decision_group_type = realm
|
||||||
|
sort_order = 10
|
||||||
|
|
||||||
should_create_alert = { always = yes }
|
should_create_alert = { always = yes }
|
||||||
|
|
||||||
|
|
@ -148,8 +153,9 @@ tribute_mission_decision_china = {
|
||||||
cooldown = { years = 5 }
|
cooldown = { years = 5 }
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_china }
|
NOT = { government_has_flag = government_is_merchant }
|
||||||
title:h_china ?= { is_title_created = yes }
|
title:h_china ?= { is_title_created = yes }
|
||||||
|
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_china }
|
||||||
}
|
}
|
||||||
|
|
||||||
is_valid_showing_failures_only = {
|
is_valid_showing_failures_only = {
|
||||||
|
|
@ -253,7 +259,8 @@ tribute_mission_decision_china = {
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_potential = {
|
ai_potential = {
|
||||||
exists = title:h_china.holder
|
NOT = { government_has_flag = government_is_merchant }
|
||||||
|
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_china }
|
||||||
tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_china.holder }
|
tribute_mission_decision_ai_potential_trigger = { TARGET = title:h_china.holder }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -274,6 +281,7 @@ tribute_mission_decision_roman_empire = {
|
||||||
reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds"
|
reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = realm
|
decision_group_type = realm
|
||||||
|
sort_order = 10
|
||||||
|
|
||||||
should_create_alert = { always = yes }
|
should_create_alert = { always = yes }
|
||||||
|
|
||||||
|
|
@ -282,6 +290,7 @@ tribute_mission_decision_roman_empire = {
|
||||||
cooldown = { years = 5 }
|
cooldown = { years = 5 }
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
NOT = { government_has_flag = government_is_merchant }
|
||||||
title:h_roman_empire ?= { is_title_created = yes }
|
title:h_roman_empire ?= { is_title_created = yes }
|
||||||
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_roman_empire }
|
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_roman_empire }
|
||||||
}
|
}
|
||||||
|
|
@ -408,6 +417,7 @@ tribute_mission_decision_eastern_roman_empire = {
|
||||||
reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds"
|
reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = realm
|
decision_group_type = realm
|
||||||
|
sort_order = 10
|
||||||
|
|
||||||
should_create_alert = { always = yes }
|
should_create_alert = { always = yes }
|
||||||
|
|
||||||
|
|
@ -416,6 +426,7 @@ tribute_mission_decision_eastern_roman_empire = {
|
||||||
cooldown = { years = 5 }
|
cooldown = { years = 5 }
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
NOT = { government_has_flag = government_is_merchant }
|
||||||
title:h_eastern_roman_empire ?= { is_title_created = yes }
|
title:h_eastern_roman_empire ?= { is_title_created = yes }
|
||||||
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_eastern_roman_empire }
|
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_eastern_roman_empire }
|
||||||
}
|
}
|
||||||
|
|
@ -542,6 +553,7 @@ tribute_mission_decision_dar_al_islam = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = realm
|
decision_group_type = realm
|
||||||
|
sort_order = 10
|
||||||
|
|
||||||
should_create_alert = { always = yes }
|
should_create_alert = { always = yes }
|
||||||
|
|
||||||
|
|
@ -550,6 +562,7 @@ tribute_mission_decision_dar_al_islam = {
|
||||||
cooldown = { years = 5 }
|
cooldown = { years = 5 }
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
NOT = { government_has_flag = government_is_merchant }
|
||||||
title:h_dar_al_islam ?= { is_title_created = yes }
|
title:h_dar_al_islam ?= { is_title_created = yes }
|
||||||
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_dar_al_islam }
|
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_dar_al_islam }
|
||||||
}
|
}
|
||||||
|
|
@ -676,6 +689,7 @@ tribute_mission_decision_india = {
|
||||||
reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds"
|
reference = "gfx/interface/illustrations/decisions/decision_golden_age.dds"
|
||||||
}
|
}
|
||||||
decision_group_type = realm
|
decision_group_type = realm
|
||||||
|
sort_order = 10
|
||||||
|
|
||||||
should_create_alert = { always = yes }
|
should_create_alert = { always = yes }
|
||||||
|
|
||||||
|
|
@ -684,6 +698,7 @@ tribute_mission_decision_india = {
|
||||||
cooldown = { years = 5 }
|
cooldown = { years = 5 }
|
||||||
|
|
||||||
is_shown = {
|
is_shown = {
|
||||||
|
NOT = { government_has_flag = government_is_merchant }
|
||||||
title:h_india ?= { is_title_created = yes }
|
title:h_india ?= { is_title_created = yes }
|
||||||
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_india }
|
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_india }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,12 @@
|
||||||
|
@camp_building_internal_slot_construction_duration_t2 = 240
|
||||||
|
@camp_building_main_slot_construction_duration_t1 = 180
|
||||||
|
@camp_building_main_slot_construction_duration_t2 = 210
|
||||||
|
@camp_building_main_slot_construction_duration_t3 = 240
|
||||||
|
@camp_building_main_slot_construction_duration_t4 = 300
|
||||||
|
@camp_building_main_slot_construction_duration_t5 = 360
|
||||||
|
@camp_building_main_slot_construction_duration_t6 = 420
|
||||||
|
|
||||||
|
|
||||||
minority_community_main_01 = {
|
minority_community_main_01 = {
|
||||||
slot_type = main
|
slot_type = main
|
||||||
internal_slots = 2
|
internal_slots = 2
|
||||||
|
|
|
||||||
|
|
@ -773,7 +773,7 @@ peasant_faction = {
|
||||||
war_keep_on_attacker_victory = yes
|
war_keep_on_attacker_victory = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
# } # NEOW: closes a disabled historical Roman-restoration conditional
|
||||||
}
|
}
|
||||||
|
|
||||||
leader_leaves = {
|
leader_leaves = {
|
||||||
|
|
|
||||||
|
|
@ -1249,20 +1249,20 @@ loot = {
|
||||||
|
|
||||||
barter = {
|
barter = {
|
||||||
texture = "gfx/interface/icons/icon_barter.dds"
|
texture = "gfx/interface/icons/icon_barter.dds"
|
||||||
alias = { bartering bartered barter_i barters trading traded trades trade }
|
alias = { bartering bartered barter_i barters }
|
||||||
requires_dlc_flag = all_under_heaven
|
requires_dlc_flag = all_under_heaven
|
||||||
}
|
}
|
||||||
|
|
||||||
barterer = {
|
barterer = {
|
||||||
texture = "gfx/interface/icons/icon_barter.dds"
|
texture = "gfx/interface/icons/icon_barter.dds"
|
||||||
parent = barter
|
parent = barter
|
||||||
alias = { barterers traders trader }
|
alias = { barterers }
|
||||||
}
|
}
|
||||||
|
|
||||||
barter_goods = {
|
barter_goods = {
|
||||||
texture = "gfx/interface/icons/icon_barter.dds"
|
texture = "gfx/interface/icons/icon_barter.dds"
|
||||||
parent = barter
|
parent = barter
|
||||||
alias = { barter_goods_i trade_goods }
|
alias = { barter_goods_i }
|
||||||
}
|
}
|
||||||
|
|
||||||
army_commander = {
|
army_commander = {
|
||||||
|
|
|
||||||
|
|
@ -249,7 +249,7 @@ e_caucasia = {
|
||||||
b_ashtarak = { # Ashtarak
|
b_ashtarak = { # Ashtarak
|
||||||
province = 8958
|
province = 8958
|
||||||
color = { 148 124 23 }
|
color = { 148 124 23 }
|
||||||
color2 = { 255 255 255 }
|
# color2 removed: invalid CK3 landed-title property in 1.21
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
c_gegharkunik = { # Gegharkunik
|
c_gegharkunik = { # Gegharkunik
|
||||||
|
|
|
||||||
|
|
@ -1031,7 +1031,7 @@ e_finland = {
|
||||||
}
|
}
|
||||||
b_uusikaupunki = { # Uusikaupunki
|
b_uusikaupunki = { # Uusikaupunki
|
||||||
province = 180
|
province = 180
|
||||||
ccolor = { 235 245 245 }
|
color = { 235 245 245 }
|
||||||
|
|
||||||
cultural_names = {
|
cultural_names = {
|
||||||
name_list_NEOW_norwegian=cn_nystad
|
name_list_NEOW_norwegian=cn_nystad
|
||||||
|
|
|
||||||
|
|
@ -356,7 +356,7 @@ k_compostelan_papacy = {
|
||||||
no_automatic_claims = yes
|
no_automatic_claims = yes
|
||||||
always_follows_primary_heir = yes
|
always_follows_primary_heir = yes
|
||||||
de_jure_drift_disabled = yes
|
de_jure_drift_disabled = yes
|
||||||
male_names = { Agapetus Alexander Anastasius Benedictus Caelestinus Callistus Clemens Dionysius Eleutherius Eutychianus Evaristus Fabianus Felix Gabriel Gelasius Gregorius Hadrianus Hilarius Honorius Innocentius Ioannes Iulius Landus Liberius Lucius Marcellus Marinus Martinus Nicolaus Pelagius Petrus Pius Raphael Sergius Silverius Silvester Stephanus Urbanus Valentinus Victor }
|
# 1.21: removed unsupported male_names title property; stored original in audit
|
||||||
}
|
}
|
||||||
|
|
||||||
d_united_grand_lodge = {
|
d_united_grand_lodge = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,13 @@
|
||||||
@crown_authority_cooldown_years = 20
|
@company_size_prestige_cost = 300
|
||||||
|
@company_size_cooldown_years = 5
|
||||||
|
@company_purpose_prestige_cost = 500
|
||||||
|
@company_purpose_cooldown_years = 5
|
||||||
|
@company_purpose_ai_will_do_malus_t3 = -30
|
||||||
|
@company_purpose_ai_will_do_malus_t2 = -20
|
||||||
|
@company_purpose_ai_will_do_bonus_t3 = 30
|
||||||
|
@company_purpose_ai_will_do_bonus_t2 = 20
|
||||||
|
@company_purpose_ai_will_do_bonus_t1 = 10
|
||||||
|
@crown_authority_cooldown_years = 20
|
||||||
@tribal_authority_cooldown_years = 10
|
@tribal_authority_cooldown_years = 10
|
||||||
@nomadic_authority_cooldown_years = 5
|
@nomadic_authority_cooldown_years = 5
|
||||||
@church_authority_cooldown_years = 20
|
@church_authority_cooldown_years = 20
|
||||||
|
|
@ -3559,3 +3568,699 @@ crowned_emperor = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
company_purpose_artisan = {
|
||||||
|
law_group_type = company_purpose
|
||||||
|
index = 1
|
||||||
|
|
||||||
|
pass_phrase = company_purpose_pass_phrase
|
||||||
|
confirmation_title = company_purpose_pass_phrase
|
||||||
|
confirmation_button_text = company_purpose_confirmation_button_text
|
||||||
|
|
||||||
|
flag = uses_company_purpose
|
||||||
|
flag = can_change_succession_laws
|
||||||
|
flag = learning_company_purpose
|
||||||
|
|
||||||
|
can_keep = { realm_law_use_company_purpose = yes }
|
||||||
|
|
||||||
|
can_pass = {
|
||||||
|
custom_description = {
|
||||||
|
subject = root
|
||||||
|
text = has_company_purpose_cooldown
|
||||||
|
NOT = { has_variable = company_purpose_cooldown }
|
||||||
|
}
|
||||||
|
custom_tooltip = {
|
||||||
|
text = company_purpose_child_blocker_tt
|
||||||
|
is_adult = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pass_cost = {
|
||||||
|
prestige = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOR = {
|
||||||
|
has_realm_law_flag = can_change_purpose_for_free
|
||||||
|
has_character_flag = free_starting_merchant_purpose_change
|
||||||
|
}
|
||||||
|
}
|
||||||
|
value = @company_purpose_prestige_cost
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
modifier = {
|
||||||
|
trait_track_artisan_xp_gain_mult = 0.15
|
||||||
|
trade_category_luxury_items_xp_gain_mult = 0.2
|
||||||
|
trade_category_books_xp_gain_mult = 0.2
|
||||||
|
trade_category_fabrics_xp_gain_mult = 0.2
|
||||||
|
trade_category_clothes_xp_gain_mult = 0.2
|
||||||
|
trade_category_dyes_xp_gain_mult = 0.2
|
||||||
|
trade_category_alum_xp_gain_mult = 0.2
|
||||||
|
trade_category_stone_xp_gain_mult = 0.2
|
||||||
|
domicile_build_gold_cost = -0.2
|
||||||
|
}
|
||||||
|
|
||||||
|
on_pass = {
|
||||||
|
set_variable = {
|
||||||
|
name = company_purpose_cooldown
|
||||||
|
years = @company_purpose_cooldown_years
|
||||||
|
}
|
||||||
|
remove_character_flag = free_starting_merchant_purpose_change
|
||||||
|
# Remove modifiers.
|
||||||
|
remove_law_related_modifiers_effect = yes
|
||||||
|
merchant_company_law_purpose_effect = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
requires_approve = {
|
||||||
|
always = no
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_will_do = {
|
||||||
|
# If we've picked a purpose, don't change it.
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { has_realm_law = company_purpose_artisan }
|
||||||
|
}
|
||||||
|
value = 0
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
# Traits.
|
||||||
|
## Education
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = education_learning }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t3
|
||||||
|
}
|
||||||
|
## Culture
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
culture = { has_cultural_tradition = tradition_artisans }
|
||||||
|
}
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t3
|
||||||
|
}
|
||||||
|
## Personality
|
||||||
|
### Calm
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = calm }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t3
|
||||||
|
}
|
||||||
|
### Diligent
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = diligent }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t3
|
||||||
|
}
|
||||||
|
### Eccentric
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = eccentric }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t3
|
||||||
|
}
|
||||||
|
### Patient
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = patient }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t3
|
||||||
|
}
|
||||||
|
### Impatient
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = impatient }
|
||||||
|
add = @company_purpose_ai_will_do_malus_t3
|
||||||
|
}
|
||||||
|
### Shy
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = shy }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
company_purpose_caravaneer = {
|
||||||
|
law_group_type = company_purpose
|
||||||
|
index = 3
|
||||||
|
|
||||||
|
pass_phrase = company_purpose_pass_phrase
|
||||||
|
confirmation_title = company_purpose_pass_phrase
|
||||||
|
confirmation_button_text = company_purpose_confirmation_button_text
|
||||||
|
|
||||||
|
flag = uses_company_purpose
|
||||||
|
flag = can_change_succession_laws
|
||||||
|
flag = diplomacy_company_purpose
|
||||||
|
|
||||||
|
can_keep = { realm_law_use_company_purpose = yes }
|
||||||
|
|
||||||
|
can_pass = {
|
||||||
|
custom_description = {
|
||||||
|
subject = root
|
||||||
|
text = has_company_purpose_cooldown
|
||||||
|
NOT = { has_variable = company_purpose_cooldown }
|
||||||
|
}
|
||||||
|
custom_tooltip = {
|
||||||
|
text = company_purpose_child_blocker_tt
|
||||||
|
is_adult = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pass_cost = {
|
||||||
|
prestige = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOR = {
|
||||||
|
has_realm_law_flag = can_change_purpose_for_free
|
||||||
|
has_character_flag = free_starting_merchant_purpose_change
|
||||||
|
}
|
||||||
|
}
|
||||||
|
value = @company_purpose_prestige_cost
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
on_pass = {
|
||||||
|
set_variable = {
|
||||||
|
name = company_purpose_cooldown
|
||||||
|
years = @company_purpose_cooldown_years
|
||||||
|
}
|
||||||
|
remove_character_flag = free_starting_merchant_purpose_change
|
||||||
|
# Remove modifiers.
|
||||||
|
remove_law_related_modifiers_effect = yes
|
||||||
|
merchant_company_law_purpose_effect = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
modifier = {
|
||||||
|
trade_category_luxury_consumption_xp_gain_mult = 0.2
|
||||||
|
trade_category_incense_xp_gain_mult = 0.2
|
||||||
|
trade_category_medicaments_xp_gain_mult = 0.2
|
||||||
|
trade_category_comforts_xp_gain_mult = 0.2
|
||||||
|
trade_category_alcohol_xp_gain_mult = 0.2
|
||||||
|
trade_category_salt_xp_gain_mult = 0.2
|
||||||
|
trade_category_beasts_of_burden_xp_gain_mult = 0.2
|
||||||
|
trait_track_caravaneer_xp_gain_mult = 0.15
|
||||||
|
ignore_negative_culture_opinion = yes
|
||||||
|
ignore_negative_opinion_of_culture = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
requires_approve = {
|
||||||
|
always = no
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_will_do = {
|
||||||
|
# If we've picked a purpose, don't change it.
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { has_realm_law = company_purpose_caravaneer }
|
||||||
|
}
|
||||||
|
value = 0
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
# Traits.
|
||||||
|
## Education
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = education_diplomacy }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t3
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = education_stewardship }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t2
|
||||||
|
}
|
||||||
|
## Cultures
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
culture = { has_cultural_tradition = tradition_caravaneers }
|
||||||
|
}
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t3
|
||||||
|
}
|
||||||
|
## Personality
|
||||||
|
### Lazy
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = lazy }
|
||||||
|
add = @company_purpose_ai_will_do_malus_t2
|
||||||
|
}
|
||||||
|
### Athletic
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = athletic }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t3
|
||||||
|
}
|
||||||
|
### Brave
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = brave }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t2
|
||||||
|
}
|
||||||
|
### Craven
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = craven }
|
||||||
|
add = @company_purpose_ai_will_do_malus_t2
|
||||||
|
}
|
||||||
|
### Stubborn
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = stubborn }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t1
|
||||||
|
}
|
||||||
|
### Fickle
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = fickle }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t2
|
||||||
|
}
|
||||||
|
### Humble
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = humble }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t2
|
||||||
|
}
|
||||||
|
### Arrogant
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = arrogant }
|
||||||
|
add = @company_purpose_ai_will_do_malus_t2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
company_purpose_creditor = {
|
||||||
|
law_group_type = company_purpose
|
||||||
|
index = 2
|
||||||
|
|
||||||
|
pass_phrase = company_purpose_pass_phrase
|
||||||
|
confirmation_title = company_purpose_pass_phrase
|
||||||
|
confirmation_button_text = company_purpose_confirmation_button_text
|
||||||
|
|
||||||
|
flag = uses_company_purpose
|
||||||
|
flag = can_change_succession_laws
|
||||||
|
flag = intrigue_company_purpose
|
||||||
|
flag = unlock_military_merchant_patron_requests
|
||||||
|
|
||||||
|
# Seize Land CB
|
||||||
|
flag = unlock_seize_realm_county_cb
|
||||||
|
|
||||||
|
can_keep = { realm_law_use_company_purpose = yes }
|
||||||
|
|
||||||
|
can_pass = {
|
||||||
|
custom_description = {
|
||||||
|
subject = root
|
||||||
|
text = has_company_purpose_cooldown
|
||||||
|
NOT = { has_variable = company_purpose_cooldown }
|
||||||
|
}
|
||||||
|
custom_tooltip = {
|
||||||
|
text = company_purpose_child_blocker_tt
|
||||||
|
is_adult = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pass_cost = {
|
||||||
|
prestige = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOR = {
|
||||||
|
has_realm_law_flag = can_change_purpose_for_free
|
||||||
|
has_character_flag = free_starting_merchant_purpose_change
|
||||||
|
}
|
||||||
|
}
|
||||||
|
value = @company_purpose_prestige_cost
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
modifier = {
|
||||||
|
trade_category_precious_metals_xp_gain_mult = 0.2
|
||||||
|
trade_category_jewelry_materials_xp_gain_mult = 0.2
|
||||||
|
trade_category_base_metals_xp_gain_mult = 0.2
|
||||||
|
trade_category_cereals_xp_gain_mult = 0.2
|
||||||
|
trade_category_meat_xp_gain_mult = 0.2
|
||||||
|
trade_category_carpentry_supplies_xp_gain_mult = 0.2
|
||||||
|
trait_track_creditor_xp_gain_mult = 0.15
|
||||||
|
}
|
||||||
|
|
||||||
|
on_pass = {
|
||||||
|
set_variable = {
|
||||||
|
name = company_purpose_cooldown
|
||||||
|
years = @company_purpose_cooldown_years
|
||||||
|
}
|
||||||
|
remove_character_flag = free_starting_merchant_purpose_change
|
||||||
|
# Remove modifiers.
|
||||||
|
remove_law_related_modifiers_effect = yes
|
||||||
|
merchant_company_law_purpose_effect = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
requires_approve = {
|
||||||
|
always = no
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_will_do = {
|
||||||
|
# If we've picked a purpose, don't change it.
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { has_realm_law = company_purpose_creditor }
|
||||||
|
}
|
||||||
|
value = 0
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
# Traits.
|
||||||
|
## Education
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = education_intrigue }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t3
|
||||||
|
}
|
||||||
|
## Personality.
|
||||||
|
### Deceitful.
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = deceitful }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t3
|
||||||
|
}
|
||||||
|
### Honest.
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = honest }
|
||||||
|
add = @company_purpose_ai_will_do_malus_t3
|
||||||
|
}
|
||||||
|
### Arbitrary.
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = arbitrary }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t3
|
||||||
|
}
|
||||||
|
### Just,
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = just }
|
||||||
|
add = @company_purpose_ai_will_do_malus_t3
|
||||||
|
}
|
||||||
|
### Generous.
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = generous }
|
||||||
|
add = @company_purpose_ai_will_do_malus_t2
|
||||||
|
}
|
||||||
|
### Arrogant.
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = arrogant }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t2
|
||||||
|
}
|
||||||
|
### Wrathful.
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = wrathful }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t1
|
||||||
|
}
|
||||||
|
### Callous.
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = callous }
|
||||||
|
add = @company_purpose_ai_will_do_bonus_t2
|
||||||
|
}
|
||||||
|
### Compassionate.
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = compassionate }
|
||||||
|
add = @company_purpose_ai_will_do_malus_t2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
company_purpose_family = {
|
||||||
|
law_group_type = company_purpose
|
||||||
|
index = 0
|
||||||
|
|
||||||
|
pass_phrase = company_purpose_pass_phrase
|
||||||
|
confirmation_title = company_purpose_pass_phrase
|
||||||
|
confirmation_button_text = company_purpose_confirmation_button_text
|
||||||
|
|
||||||
|
flag = uses_company_purpose
|
||||||
|
flag = can_change_succession_laws
|
||||||
|
flag = can_change_purpose_for_free
|
||||||
|
|
||||||
|
can_keep = { realm_law_use_company_purpose = yes }
|
||||||
|
|
||||||
|
can_pass = {
|
||||||
|
custom_description = {
|
||||||
|
subject = root
|
||||||
|
text = has_company_purpose_cooldown
|
||||||
|
NOT = { has_variable = company_purpose_cooldown }
|
||||||
|
}
|
||||||
|
custom_tooltip = {
|
||||||
|
text = company_purpose_child_blocker_tt
|
||||||
|
is_adult = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pass_cost = {
|
||||||
|
prestige = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOR = {
|
||||||
|
has_realm_law_flag = can_change_purpose_for_free
|
||||||
|
has_character_flag = free_starting_merchant_purpose_change
|
||||||
|
}
|
||||||
|
}
|
||||||
|
value = @company_purpose_prestige_cost
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
modifier = {
|
||||||
|
close_relative_opinion = 10
|
||||||
|
suzerain_opinion = 30
|
||||||
|
trade_expertise_growth_mult = 0.1
|
||||||
|
}
|
||||||
|
|
||||||
|
on_pass = {
|
||||||
|
set_variable = {
|
||||||
|
name = company_purpose_cooldown
|
||||||
|
years = @company_purpose_cooldown_years
|
||||||
|
}
|
||||||
|
remove_character_flag = free_starting_merchant_purpose_change
|
||||||
|
# Remove modifiers.
|
||||||
|
remove_law_related_modifiers_effect = yes
|
||||||
|
merchant_company_law_purpose_effect = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
requires_approve = {
|
||||||
|
always = no
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_will_do = { value = 0 }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
company_size_huge = {
|
||||||
|
law_group_type = company_size
|
||||||
|
index = 3
|
||||||
|
|
||||||
|
pass_phrase = company_size_pass_phrase
|
||||||
|
confirmation_title = company_size_confirmation_title
|
||||||
|
confirmation_button_text = company_size_confirmation_button_text
|
||||||
|
|
||||||
|
can_pass = {
|
||||||
|
has_realm_law = company_size_large
|
||||||
|
custom_description = {
|
||||||
|
subject = root
|
||||||
|
text = "has_company_size_cooldown"
|
||||||
|
NAND = {
|
||||||
|
has_variable = company_size_cooldown
|
||||||
|
NOT = {
|
||||||
|
culture = { has_innovation = innovation_all_things }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
domicile ?= {
|
||||||
|
domicile_uses_acumen = yes
|
||||||
|
acumen >= define:NDomicile|MERCHANT_ACUMEN_LEVEL_4_THRESHOLD
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
can_keep = { realm_law_use_company_purpose = yes }
|
||||||
|
|
||||||
|
pass_cost = {
|
||||||
|
prestige = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_ai = no
|
||||||
|
has_realm_law = company_size_large
|
||||||
|
}
|
||||||
|
add = @company_size_prestige_cost
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
modifier = {
|
||||||
|
trade_competitiveness_add = 40
|
||||||
|
trade_route_length_add = 10
|
||||||
|
monthly_dynasty_prestige = 0.75
|
||||||
|
}
|
||||||
|
|
||||||
|
on_pass = {
|
||||||
|
set_variable = {
|
||||||
|
name = company_size_cooldown
|
||||||
|
years = @company_size_cooldown_years
|
||||||
|
}
|
||||||
|
# Remove modifiers.
|
||||||
|
remove_law_related_modifiers_effect = yes
|
||||||
|
play_sound_effect = "event:/DLC/EP5/SFX/Stingers/ep5_mx_sting_company_size_increase"
|
||||||
|
}
|
||||||
|
|
||||||
|
requires_approve = { always = no }
|
||||||
|
|
||||||
|
ai_will_do = {
|
||||||
|
if = {
|
||||||
|
limit = { has_realm_law = company_size_large }
|
||||||
|
value = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
company_size_large = {
|
||||||
|
law_group_type = company_size
|
||||||
|
index = 2
|
||||||
|
|
||||||
|
pass_phrase = company_size_pass_phrase
|
||||||
|
confirmation_title = company_size_confirmation_title
|
||||||
|
confirmation_button_text = company_size_confirmation_button_text
|
||||||
|
|
||||||
|
can_pass = {
|
||||||
|
has_realm_law = company_size_medium
|
||||||
|
custom_description = {
|
||||||
|
subject = root
|
||||||
|
text = "has_company_size_cooldown"
|
||||||
|
NAND = {
|
||||||
|
has_variable = company_size_cooldown
|
||||||
|
NOT = {
|
||||||
|
culture = { has_innovation = innovation_all_things }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
domicile ?= {
|
||||||
|
domicile_uses_acumen = yes
|
||||||
|
acumen >= define:NDomicile|MERCHANT_ACUMEN_LEVEL_3_THRESHOLD
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
can_keep = { realm_law_use_company_purpose = yes }
|
||||||
|
|
||||||
|
pass_cost = {
|
||||||
|
prestige = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_ai = no
|
||||||
|
has_realm_law = company_size_medium
|
||||||
|
}
|
||||||
|
add = @company_size_prestige_cost
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
modifier = {
|
||||||
|
trade_competitiveness_add = 30
|
||||||
|
trade_route_length_add = 8
|
||||||
|
monthly_dynasty_prestige = 0.5
|
||||||
|
}
|
||||||
|
|
||||||
|
on_pass = {
|
||||||
|
set_variable = {
|
||||||
|
name = company_size_cooldown
|
||||||
|
years = @company_size_cooldown_years
|
||||||
|
}
|
||||||
|
# Remove modifiers.
|
||||||
|
remove_law_related_modifiers_effect = yes
|
||||||
|
play_sound_effect = "event:/DLC/EP5/SFX/Stingers/ep5_mx_sting_company_size_increase"
|
||||||
|
}
|
||||||
|
|
||||||
|
requires_approve = { always = no }
|
||||||
|
|
||||||
|
ai_will_do = {
|
||||||
|
if = {
|
||||||
|
limit = { has_realm_law = company_size_medium }
|
||||||
|
value = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
company_size_medium = {
|
||||||
|
law_group_type = company_size
|
||||||
|
index = 1
|
||||||
|
|
||||||
|
pass_phrase = company_size_pass_phrase
|
||||||
|
confirmation_title = company_size_confirmation_title
|
||||||
|
confirmation_button_text = company_size_confirmation_button_text
|
||||||
|
|
||||||
|
can_pass = {
|
||||||
|
has_realm_law = company_size_small
|
||||||
|
custom_description = {
|
||||||
|
subject = root
|
||||||
|
text = "has_company_size_cooldown"
|
||||||
|
NAND = {
|
||||||
|
has_variable = company_size_cooldown
|
||||||
|
NOT = {
|
||||||
|
culture = { has_innovation = innovation_all_things }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
domicile ?= {
|
||||||
|
domicile_uses_acumen = yes
|
||||||
|
acumen >= define:NDomicile|MERCHANT_ACUMEN_LEVEL_2_THRESHOLD
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
can_keep = { realm_law_use_company_purpose = yes }
|
||||||
|
|
||||||
|
pass_cost = {
|
||||||
|
prestige = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_ai = no
|
||||||
|
has_realm_law = company_size_small
|
||||||
|
}
|
||||||
|
add = @company_size_prestige_cost
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
modifier = {
|
||||||
|
trade_competitiveness_add = 20
|
||||||
|
trade_route_length_add = 4
|
||||||
|
monthly_dynasty_prestige = 0.25
|
||||||
|
}
|
||||||
|
|
||||||
|
on_pass = {
|
||||||
|
set_variable = {
|
||||||
|
name = company_size_cooldown
|
||||||
|
years = @company_size_cooldown_years
|
||||||
|
}
|
||||||
|
# Remove modifiers.
|
||||||
|
remove_law_related_modifiers_effect = yes
|
||||||
|
play_sound_effect = "event:/DLC/EP5/SFX/Stingers/ep5_mx_sting_company_size_increase"
|
||||||
|
}
|
||||||
|
|
||||||
|
requires_approve = { always = no }
|
||||||
|
|
||||||
|
ai_will_do = {
|
||||||
|
if = {
|
||||||
|
limit = { has_realm_law = company_size_small }
|
||||||
|
value = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
company_size_small = {
|
||||||
|
law_group_type = company_size
|
||||||
|
index = 0
|
||||||
|
|
||||||
|
pass_phrase = company_size_pass_phrase
|
||||||
|
confirmation_title = company_size_confirmation_title
|
||||||
|
confirmation_button_text = company_size_confirmation_button_text
|
||||||
|
|
||||||
|
can_pass = {
|
||||||
|
NOR = {
|
||||||
|
has_realm_law = company_size_medium
|
||||||
|
has_realm_law = company_size_large
|
||||||
|
has_realm_law = company_size_huge
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
can_keep = { realm_law_use_company_purpose = yes }
|
||||||
|
|
||||||
|
modifier = {
|
||||||
|
}
|
||||||
|
|
||||||
|
on_pass = {
|
||||||
|
# Remove modifiers.
|
||||||
|
remove_law_related_modifiers_effect = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
requires_approve = { always = no }
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -2491,3 +2491,290 @@ same_faith_succession_law = {
|
||||||
faith = same_faith
|
faith = same_faith
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# CK3 1.21 Silk & Silver: required succession law retained from vanilla.
|
||||||
|
republican_despot_succession_law = {
|
||||||
|
law_group_type = succession_order_laws
|
||||||
|
index = 20
|
||||||
|
|
||||||
|
modifier = {
|
||||||
|
character_capital_popular_opinion_add = -25
|
||||||
|
}
|
||||||
|
|
||||||
|
can_have = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
highest_held_title_tier >= tier_county
|
||||||
|
liege = {
|
||||||
|
OR = {
|
||||||
|
this = root
|
||||||
|
NOT = { government_has_flag = government_is_republic }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
can_pass = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
capital_county = {
|
||||||
|
county_control >= county_control_baseline
|
||||||
|
}
|
||||||
|
has_realm_law = republic_assembly_authority_legislative
|
||||||
|
has_realm_law = republic_assembly_term_length_indefinite
|
||||||
|
has_realm_law = republic_end_term_law_1
|
||||||
|
has_realm_law = republic_vassal_refusal_2_treason
|
||||||
|
has_realm_law = republic_title_revocation_2_allowed
|
||||||
|
has_realm_law = republic_retract_vassal_2_allowed
|
||||||
|
has_realm_law = republic_banishment_3_unrestricted
|
||||||
|
has_realm_law = republic_execution_3_unrestricted
|
||||||
|
}
|
||||||
|
|
||||||
|
succession = {
|
||||||
|
order_of_succession = inheritance
|
||||||
|
traversal_order = children
|
||||||
|
rank = oldest
|
||||||
|
title_division = single_heir
|
||||||
|
}
|
||||||
|
|
||||||
|
flag = advanced_succession_law
|
||||||
|
flag = can_designate_heirs
|
||||||
|
|
||||||
|
modifier = {
|
||||||
|
player_heir_opinion = 20
|
||||||
|
close_relative_opinion = 10
|
||||||
|
republic_government_opinion = -20
|
||||||
|
}
|
||||||
|
|
||||||
|
revoke_cost = {
|
||||||
|
prestige = change_hre_title_succession_law_prestige_cost
|
||||||
|
}
|
||||||
|
pass_cost = {
|
||||||
|
prestige = gdp_republican_despot_law_prestige_cost
|
||||||
|
}
|
||||||
|
|
||||||
|
requires_approve = { government_has_flag = government_is_republic }
|
||||||
|
voting_session = { government_has_flag = government_is_republic }
|
||||||
|
|
||||||
|
on_pass = {
|
||||||
|
capital_county = { add_popular_opinion = -25 }
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_approval = {
|
||||||
|
value = {
|
||||||
|
value = -100
|
||||||
|
desc = LAW_BASE_RELUCTANCE_DESC
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_will_do = {
|
||||||
|
value = 0
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
house ?= {
|
||||||
|
has_house_aspiration_parameter = republic_signorial
|
||||||
|
}
|
||||||
|
}
|
||||||
|
add = 2
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
OR = {
|
||||||
|
has_trait = ambitious
|
||||||
|
has_trait = arrogant
|
||||||
|
}
|
||||||
|
}
|
||||||
|
add = 1
|
||||||
|
}
|
||||||
|
# Grace period
|
||||||
|
multiply = ai_law_grace_period_value
|
||||||
|
}
|
||||||
|
|
||||||
|
potential = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
gdp_is_assembly_head_trigger = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# CK3 1.21 Silk & Silver: required succession law retained from vanilla.
|
||||||
|
merchant_succession_law = {
|
||||||
|
law_group_type = succession_order_laws
|
||||||
|
index = 36
|
||||||
|
|
||||||
|
can_keep = {
|
||||||
|
government_has_flag = government_is_merchant
|
||||||
|
}
|
||||||
|
can_have = {
|
||||||
|
government_has_flag = government_is_merchant
|
||||||
|
}
|
||||||
|
can_pass = {
|
||||||
|
government_has_flag = government_is_merchant
|
||||||
|
}
|
||||||
|
should_start_with = {
|
||||||
|
government_has_flag = government_is_merchant
|
||||||
|
}
|
||||||
|
should_show_for_title = { # Never show this in the UI, just apply it through script
|
||||||
|
always = no
|
||||||
|
}
|
||||||
|
can_remove_from_title = {
|
||||||
|
always = no
|
||||||
|
}
|
||||||
|
succession = {
|
||||||
|
order_of_succession = inheritance
|
||||||
|
traversal_order = children
|
||||||
|
rank = oldest
|
||||||
|
title_division = single_heir
|
||||||
|
exclude_rulers = yes
|
||||||
|
limit_to_courtiers = yes
|
||||||
|
}
|
||||||
|
flag = can_designate_heirs
|
||||||
|
|
||||||
|
potential = {
|
||||||
|
government_has_flag = government_is_merchant
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# CK3 1.21 Silk & Silver: required succession law retained from vanilla.
|
||||||
|
republican_elective_succession_law = {
|
||||||
|
law_group_type = succession_order_laws
|
||||||
|
index = 37
|
||||||
|
|
||||||
|
can_keep = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
highest_held_title_tier >= tier_county
|
||||||
|
liege = {
|
||||||
|
OR = {
|
||||||
|
this = root
|
||||||
|
NOT = { government_has_flag = government_is_republic }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
can_have = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
highest_held_title_tier >= tier_county
|
||||||
|
}
|
||||||
|
can_pass = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
}
|
||||||
|
should_start_with = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
highest_held_title_tier >= tier_county
|
||||||
|
}
|
||||||
|
|
||||||
|
succession = {
|
||||||
|
allow_same_successor = yes
|
||||||
|
order_of_succession = election
|
||||||
|
election_type = republican_elective
|
||||||
|
use_term_length = yes
|
||||||
|
}
|
||||||
|
|
||||||
|
modifier = {
|
||||||
|
short_reign_duration_mult = -2
|
||||||
|
}
|
||||||
|
|
||||||
|
flag = elective_succession_law
|
||||||
|
flag = succession_uses_term_length
|
||||||
|
|
||||||
|
revoke_cost = {
|
||||||
|
prestige = {
|
||||||
|
value = change_title_succession_law_prestige_cost
|
||||||
|
multiply = gdp_republic_revoke_title_law_cost_scale_value
|
||||||
|
}
|
||||||
|
gold = {
|
||||||
|
add = {
|
||||||
|
value = 1000
|
||||||
|
desc = BASE
|
||||||
|
}
|
||||||
|
value = gdp_republic_revoke_title_law_monetary_cost_value
|
||||||
|
multiply = gdp_republic_revoke_title_law_cost_scale_value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pass_cost = {
|
||||||
|
prestige = change_title_succession_law_prestige_cost
|
||||||
|
treasury_or_gold = gdp_republic_pass_title_law_monetary_cost_value
|
||||||
|
}
|
||||||
|
|
||||||
|
requires_approve = { government_has_flag = government_is_republic }
|
||||||
|
voting_session = { government_has_flag = government_is_republic }
|
||||||
|
|
||||||
|
ai_approval = {
|
||||||
|
value = {
|
||||||
|
value = 100
|
||||||
|
desc = LAW_BASE_WILLINGNESS_DESC
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_will_do = {
|
||||||
|
value = 10 # TODO_GDP - Add proper AI values and weights
|
||||||
|
}
|
||||||
|
|
||||||
|
potential = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
gdp_is_assembly_head_trigger = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# CK3 1.21 Silk & Silver: required succession law retained from vanilla.
|
||||||
|
republican_appointment_succession_law = {
|
||||||
|
law_group_type = succession_order_laws
|
||||||
|
index = 38
|
||||||
|
|
||||||
|
can_keep = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
highest_held_title_tier >= tier_county
|
||||||
|
liege = {
|
||||||
|
this != root
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
}
|
||||||
|
}
|
||||||
|
can_have = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
highest_held_title_tier >= tier_county
|
||||||
|
liege = {
|
||||||
|
this != root
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
}
|
||||||
|
}
|
||||||
|
can_pass = {
|
||||||
|
}
|
||||||
|
should_start_with = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
highest_held_title_tier >= tier_county
|
||||||
|
liege = {
|
||||||
|
this != root
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
}
|
||||||
|
}
|
||||||
|
succession = {
|
||||||
|
order_of_succession = appointment
|
||||||
|
appointment_type = republic_governor
|
||||||
|
}
|
||||||
|
flag = advanced_succession_law
|
||||||
|
flag = appointment_type_succession
|
||||||
|
modifier = {
|
||||||
|
}
|
||||||
|
pass_cost = {
|
||||||
|
prestige = change_succession_law_prestige_cost
|
||||||
|
}
|
||||||
|
revoke_cost = {
|
||||||
|
prestige = change_succession_law_prestige_cost
|
||||||
|
}
|
||||||
|
|
||||||
|
ai_will_do = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
OR = {
|
||||||
|
has_realm_law = confederate_partition_succession_law
|
||||||
|
has_realm_law = partition_succession_law
|
||||||
|
has_realm_law = high_partition_succession_law
|
||||||
|
}
|
||||||
|
}
|
||||||
|
value = 3
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
potential = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
gdp_is_assembly_head_trigger = no
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -228,16 +228,16 @@ on_county_occupied = {
|
||||||
change_county_control = county_control_loss_value
|
change_county_control = county_control_loss_value
|
||||||
random_list = {
|
random_list = {
|
||||||
25 = {
|
25 = {
|
||||||
change_development_progress_with_overflow = -10
|
change_prosperity_progress_with_overflow = -10
|
||||||
}
|
}
|
||||||
25 = {
|
25 = {
|
||||||
change_development_progress_with_overflow = -15
|
change_prosperity_progress_with_overflow = -15
|
||||||
}
|
}
|
||||||
25 = {
|
25 = {
|
||||||
change_development_progress_with_overflow = -20
|
change_prosperity_progress_with_overflow = -20
|
||||||
}
|
}
|
||||||
25 = {
|
25 = {
|
||||||
change_development_progress_with_overflow = -25
|
change_prosperity_progress_with_overflow = -25
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -396,6 +396,7 @@ on_siege_completion = {
|
||||||
siege.0032 # Chance to steal an artifact from holy site
|
siege.0032 # Chance to steal an artifact from holy site
|
||||||
faction_demand.1010 #Reinforce populist rebels
|
faction_demand.1010 #Reinforce populist rebels
|
||||||
faction_demand.1110 #Reinforce peasant rebels
|
faction_demand.1110 #Reinforce peasant rebels
|
||||||
|
gdp_burgher.0030
|
||||||
siege.1001 #Someone I care about was immured here...
|
siege.1001 #Someone I care about was immured here...
|
||||||
intrigue_scheming.1804 # I had genuine/fake info about the defenses. Follows up intrigue_scheming.1801 so this won't actually trigger after every siege
|
intrigue_scheming.1804 # I had genuine/fake info about the defenses. Follows up intrigue_scheming.1801 so this won't actually trigger after every siege
|
||||||
}
|
}
|
||||||
|
|
@ -421,7 +422,7 @@ on_siege_completion = {
|
||||||
title = successful_sieges_give_piety_toast
|
title = successful_sieges_give_piety_toast
|
||||||
left_icon = root
|
left_icon = root
|
||||||
add_piety = minor_piety_gain
|
add_piety = minor_piety_gain
|
||||||
scope:barony.county = { change_development_progress_with_overflow = -2 }
|
scope:barony.county = { change_prosperity_progress_with_overflow = -2 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -435,7 +436,7 @@ on_siege_completion = {
|
||||||
title = tenet_aniconism_siege_destruction_toast
|
title = tenet_aniconism_siege_destruction_toast
|
||||||
left_icon = root
|
left_icon = root
|
||||||
add_piety = minor_piety_gain
|
add_piety = minor_piety_gain
|
||||||
scope:barony.county = { change_development_progress_with_overflow = -3 }
|
scope:barony.county = { change_prosperity_progress_with_overflow = -3 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -453,7 +454,7 @@ on_siege_completion = {
|
||||||
title = extinction_of_dharma_siege_toast
|
title = extinction_of_dharma_siege_toast
|
||||||
left_icon = root
|
left_icon = root
|
||||||
add_piety = minor_piety_gain
|
add_piety = minor_piety_gain
|
||||||
scope:barony.county = { change_development_progress_with_overflow = -3 }
|
scope:barony.county = { change_prosperity_progress_with_overflow = -3 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -477,7 +478,7 @@ on_siege_completion = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_legend_chapter_trigger = { CHAPTER = extra_deed }
|
has_legend_chapter_trigger = { CHAPTER = extra_deed }
|
||||||
scope:barony.county.development_level >= good_development_level
|
scope:barony.county.prosperity_level >= good_prosperity_level
|
||||||
NOT = {
|
NOT = {
|
||||||
promoted_legend ?= {
|
promoted_legend ?= {
|
||||||
has_legend_chapter = {
|
has_legend_chapter = {
|
||||||
|
|
@ -687,9 +688,21 @@ on_siege_looting = {
|
||||||
domicile ?= { change_provisions = adventurer_siege_provisions_amount }
|
domicile ?= { change_provisions = adventurer_siege_provisions_amount }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_province_modifier = {
|
trade_market = {
|
||||||
modifier = recently_looted_modifier
|
add_trade_market_modifier = {
|
||||||
years = 5
|
modifier = gdp_market_recently_sieged_capacity_modifier
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
county = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
holder = {
|
||||||
|
NOT = { has_perk = a_mans_home_perk }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
change_county_control = -5
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -710,6 +723,26 @@ on_siege_looting = {
|
||||||
tgp_treasury_raided_effect = yes
|
tgp_treasury_raided_effect = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
scope:barony.trade_market = {
|
||||||
|
every_character_in_market = {
|
||||||
|
limit = { government_allows = profit_trade_routes }
|
||||||
|
send_interface_message = {
|
||||||
|
type = msg_raid_lost
|
||||||
|
title = msg_army_siege_affects_trade_title
|
||||||
|
left_icon = root
|
||||||
|
right_icon = scope:barony
|
||||||
|
desc = msg_army_siege_affects_trade_desc
|
||||||
|
show_as_tooltip = {
|
||||||
|
scope:barony.trade_market = {
|
||||||
|
add_trade_market_modifier = {
|
||||||
|
modifier = gdp_market_recently_sieged_capacity_modifier
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -762,6 +795,134 @@ on_army_enter_province = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
# Army movement damages Trade
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
# Prevent same army owner affecting many markets in quick succession
|
||||||
|
NOT = { exists = var:army_movement_trade_market_cooldown }
|
||||||
|
scope:army ?= {
|
||||||
|
# Prevent same army affecting many markets in quick succession
|
||||||
|
NOT = { exists = var:army_movement_trade_market_cooldown }
|
||||||
|
# Ensure tiny armies are not messing up trade
|
||||||
|
army_size > 250
|
||||||
|
location = {
|
||||||
|
barony ?= {
|
||||||
|
# Prevent same market being affected too often
|
||||||
|
NOT = { exists = trade_market.var:army_movement_trade_market_cooldown }
|
||||||
|
# Ignore occupied land
|
||||||
|
barony_controller != scope:army_owner
|
||||||
|
}
|
||||||
|
# Prevent damaging own or allied markets directly (overlapping is fine)
|
||||||
|
county.holder ?= {
|
||||||
|
save_temporary_scope_as = county_holder
|
||||||
|
OR = {
|
||||||
|
root = { is_causing_raid_hostility_towards = scope:county_holder }
|
||||||
|
is_at_war_with = root
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
random = {
|
||||||
|
chance = 1
|
||||||
|
modifier = {
|
||||||
|
add = {
|
||||||
|
value = scope:army.army_size
|
||||||
|
multiply = 0.005
|
||||||
|
max = 10
|
||||||
|
}
|
||||||
|
}
|
||||||
|
modifier = {
|
||||||
|
factor = 0.5
|
||||||
|
scope:army.location.barony.trade_market = { has_trade_market_modifier = gdp_market_army_movement_capacity_modifier }
|
||||||
|
}
|
||||||
|
scope:army = {
|
||||||
|
location = {
|
||||||
|
save_scope_as = army_province
|
||||||
|
barony.trade_market = {
|
||||||
|
save_scope_as = trade_market
|
||||||
|
random_list = {
|
||||||
|
1 = {
|
||||||
|
trigger = {
|
||||||
|
any_trade_good_with_surplus = {}
|
||||||
|
}
|
||||||
|
random_trade_good_with_surplus = { save_scope_as = trade_good }
|
||||||
|
}
|
||||||
|
1 = {}
|
||||||
|
}
|
||||||
|
if = { # Increase price of a locally traded good
|
||||||
|
limit = { exists = scope:trade_good }
|
||||||
|
add_trade_good_price_modifier = {
|
||||||
|
type = buy_add
|
||||||
|
trade_good_type = scope:trade_good
|
||||||
|
value = 0.01
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
|
every_character_in_market = {
|
||||||
|
limit = { government_allows = profit_trade_routes }
|
||||||
|
send_interface_message = {
|
||||||
|
type = msg_army_affects_trade
|
||||||
|
title = msg_army_movement_affects_trade_title
|
||||||
|
left_icon = root
|
||||||
|
right_icon = scope:army.location.barony
|
||||||
|
desc = msg_army_movement_affects_trade_desc
|
||||||
|
show_as_tooltip = {
|
||||||
|
scope:trade_market = {
|
||||||
|
add_trade_good_price_modifier = {
|
||||||
|
type = buy_add
|
||||||
|
trade_good_type = scope:trade_good
|
||||||
|
value = 0.01
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else = { # Disrupt local prices across the market
|
||||||
|
add_trade_market_modifier = {
|
||||||
|
modifier = gdp_market_army_movement_capacity_modifier
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
|
every_character_in_market = {
|
||||||
|
limit = { government_allows = profit_trade_routes }
|
||||||
|
send_interface_message = {
|
||||||
|
type = msg_army_affects_trade
|
||||||
|
title = msg_army_movement_affects_trade_title
|
||||||
|
left_icon = root
|
||||||
|
right_icon = scope:army.location.barony
|
||||||
|
desc = msg_army_movement_affects_trade_desc
|
||||||
|
show_as_tooltip = {
|
||||||
|
scope:trade_market = {
|
||||||
|
add_trade_market_modifier = {
|
||||||
|
modifier = gdp_market_army_movement_capacity_modifier
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# Prevent same trade market being affected too often
|
||||||
|
set_variable = {
|
||||||
|
name = army_movement_trade_market_cooldown
|
||||||
|
months = 6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# Prevent same army affecting trade markets too often
|
||||||
|
set_variable = {
|
||||||
|
name = army_movement_trade_market_cooldown
|
||||||
|
months = 6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# Prevent same army owner affecting trade markets too often
|
||||||
|
set_variable = {
|
||||||
|
name = army_movement_trade_market_cooldown
|
||||||
|
months = 6
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -839,6 +1000,15 @@ on_raid_action_completion = {
|
||||||
type = msg_raid_completed
|
type = msg_raid_completed
|
||||||
left_icon = scope:county.holder
|
left_icon = scope:county.holder
|
||||||
right_icon = scope:barony
|
right_icon = scope:barony
|
||||||
|
desc = msg_raid_completed_desc
|
||||||
|
show_as_tooltip = {
|
||||||
|
scope:barony.trade_market = {
|
||||||
|
add_trade_market_modifier = {
|
||||||
|
modifier = gdp_market_recently_raided_capacity_modifier
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -880,10 +1050,18 @@ on_raid_action_completion = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scope:barony.title_province = {
|
scope:barony = {
|
||||||
add_province_modifier = {
|
title_province = {
|
||||||
modifier = recently_looted_modifier
|
add_province_modifier = {
|
||||||
years = 5
|
modifier = recently_looted_modifier
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trade_market = {
|
||||||
|
add_trade_market_modifier = {
|
||||||
|
modifier = gdp_market_recently_raided_capacity_modifier
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
}
|
}
|
||||||
county = {
|
county = {
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -895,16 +1073,16 @@ on_raid_action_completion = {
|
||||||
change_county_control = raid_county_control_loss_value
|
change_county_control = raid_county_control_loss_value
|
||||||
random_list = {
|
random_list = {
|
||||||
25 = {
|
25 = {
|
||||||
change_development_progress_with_overflow = -2
|
change_prosperity_progress_with_overflow = -2
|
||||||
}
|
}
|
||||||
25 = {
|
25 = {
|
||||||
change_development_progress_with_overflow = -3
|
change_prosperity_progress_with_overflow = -3
|
||||||
}
|
}
|
||||||
25 = {
|
25 = {
|
||||||
change_development_progress_with_overflow = -4
|
change_prosperity_progress_with_overflow = -4
|
||||||
}
|
}
|
||||||
25 = {
|
25 = {
|
||||||
change_development_progress_with_overflow = -5
|
change_prosperity_progress_with_overflow = -5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -922,6 +1100,15 @@ on_raid_action_completion = {
|
||||||
type = msg_raid_lost
|
type = msg_raid_lost
|
||||||
left_icon = scope:raider
|
left_icon = scope:raider
|
||||||
right_icon = scope:barony
|
right_icon = scope:barony
|
||||||
|
desc = msg_raid_lost_desc
|
||||||
|
show_as_tooltip = {
|
||||||
|
scope:barony.trade_market = {
|
||||||
|
add_trade_market_modifier = {
|
||||||
|
modifier = gdp_market_recently_raided_capacity_modifier
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,10 +37,18 @@ on_barter_action_completion = {
|
||||||
|
|
||||||
show_as_tooltip = {
|
show_as_tooltip = {
|
||||||
add_loot = scope:value
|
add_loot = scope:value
|
||||||
scope:barony.title_province = {
|
scope:barony = {
|
||||||
add_province_modifier = {
|
title_province = {
|
||||||
modifier = recently_bartered_modifier
|
add_province_modifier = {
|
||||||
years = 5
|
modifier = recently_bartered_modifier
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trade_market = {
|
||||||
|
add_trade_market_modifier = {
|
||||||
|
modifier = gdp_market_bartering_trade_modifier
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -81,11 +89,18 @@ on_barter_action_completion = {
|
||||||
desc = msg_barter_completed_holder_desc
|
desc = msg_barter_completed_holder_desc
|
||||||
left_icon = scope:barterer
|
left_icon = scope:barterer
|
||||||
right_icon = scope:barony
|
right_icon = scope:barony
|
||||||
|
scope:barony = {
|
||||||
scope:barony.title_province = {
|
title_province = {
|
||||||
add_province_modifier = {
|
add_province_modifier = {
|
||||||
modifier = recently_bartered_modifier
|
modifier = recently_bartered_modifier
|
||||||
years = 5
|
years = 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trade_market = {
|
||||||
|
add_trade_market_modifier = {
|
||||||
|
modifier = gdp_market_bartering_trade_modifier
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -183,44 +183,45 @@ on_combat_end_winner = {
|
||||||
any_character_artifact = {
|
any_character_artifact = {
|
||||||
is_equipped = yes
|
is_equipped = yes
|
||||||
artifact_slot_type = primary_armament
|
artifact_slot_type = primary_armament
|
||||||
NOT = { has_variable = artifact_battles_won_var }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
every_side_knight = {
|
if = {
|
||||||
random_character_artifact = {
|
limit = {
|
||||||
limit = {
|
any_side_knight = {
|
||||||
is_equipped = yes
|
any_character_artifact = {
|
||||||
artifact_slot_type = primary_armament
|
is_equipped = yes
|
||||||
NOT = { has_variable = artifact_battles_won_var }
|
artifact_slot_type = primary_armament
|
||||||
|
NOT = { has_variable = artifact_battles_won_var }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
set_variable = {
|
}
|
||||||
name = artifact_battles_won_var
|
every_side_knight = {
|
||||||
value = 1
|
random_character_artifact = {
|
||||||
|
limit = {
|
||||||
|
is_equipped = yes
|
||||||
|
artifact_slot_type = primary_armament
|
||||||
|
NOT = { has_variable = artifact_battles_won_var }
|
||||||
|
}
|
||||||
|
set_variable = {
|
||||||
|
name = artifact_battles_won_var
|
||||||
|
value = 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
else = {
|
||||||
else_if = {
|
every_side_knight = {
|
||||||
limit = {
|
random_character_artifact = {
|
||||||
any_side_knight = {
|
limit = {
|
||||||
any_character_artifact = {
|
is_equipped = yes
|
||||||
is_equipped = yes
|
artifact_slot_type = primary_armament
|
||||||
artifact_slot_type = primary_armament
|
has_variable = artifact_battles_won_var
|
||||||
has_variable = artifact_battles_won_var
|
}
|
||||||
}
|
change_variable = {
|
||||||
}
|
name = artifact_battles_won_var
|
||||||
}
|
add = 1
|
||||||
every_side_knight = {
|
}
|
||||||
random_character_artifact = {
|
|
||||||
limit = {
|
|
||||||
is_equipped = yes
|
|
||||||
artifact_slot_type = primary_armament
|
|
||||||
has_variable = artifact_battles_won_var
|
|
||||||
}
|
|
||||||
change_variable = {
|
|
||||||
name = artifact_battles_won_var
|
|
||||||
add = 1
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -280,44 +281,45 @@ on_combat_end_winner = {
|
||||||
any_character_artifact = {
|
any_character_artifact = {
|
||||||
is_equipped = yes
|
is_equipped = yes
|
||||||
artifact_slot_type = armor
|
artifact_slot_type = armor
|
||||||
NOT = { has_variable = artifact_battles_won_var }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
every_side_knight = {
|
if = {
|
||||||
random_character_artifact = {
|
limit = {
|
||||||
limit = {
|
any_side_knight = {
|
||||||
is_equipped = yes
|
any_character_artifact = {
|
||||||
artifact_slot_type = armor
|
is_equipped = yes
|
||||||
NOT = { has_variable = artifact_battles_won_var }
|
artifact_slot_type = armor
|
||||||
|
NOT = { has_variable = artifact_battles_won_var }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
set_variable = {
|
}
|
||||||
name = artifact_battles_won_var
|
every_side_knight = {
|
||||||
value = 1
|
random_character_artifact = {
|
||||||
|
limit = {
|
||||||
|
is_equipped = yes
|
||||||
|
artifact_slot_type = armor
|
||||||
|
NOT = { has_variable = artifact_battles_won_var }
|
||||||
|
}
|
||||||
|
set_variable = {
|
||||||
|
name = artifact_battles_won_var
|
||||||
|
value = 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
else = {
|
||||||
else_if = {
|
every_side_knight = {
|
||||||
limit = {
|
random_character_artifact = {
|
||||||
any_side_knight = {
|
limit = {
|
||||||
any_character_artifact = {
|
is_equipped = yes
|
||||||
is_equipped = yes
|
artifact_slot_type = armor
|
||||||
artifact_slot_type = armor
|
has_variable = artifact_battles_won_var
|
||||||
has_variable = artifact_battles_won_var
|
}
|
||||||
}
|
change_variable = {
|
||||||
}
|
name = artifact_battles_won_var
|
||||||
}
|
add = 1
|
||||||
every_side_knight = {
|
}
|
||||||
random_character_artifact = {
|
|
||||||
limit = {
|
|
||||||
is_equipped = yes
|
|
||||||
artifact_slot_type = armor
|
|
||||||
has_variable = artifact_battles_won_var
|
|
||||||
}
|
|
||||||
change_variable = {
|
|
||||||
name = artifact_battles_won_var
|
|
||||||
add = 1
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -431,7 +433,7 @@ on_combat_end_winner = {
|
||||||
value = {
|
value = {
|
||||||
value = 0
|
value = 0
|
||||||
add = root.enemy_side.side_max_army_size
|
add = root.enemy_side.side_max_army_size
|
||||||
divide = 100
|
divide = 400
|
||||||
min = 5
|
min = 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -465,7 +467,7 @@ on_combat_end_winner = {
|
||||||
value = {
|
value = {
|
||||||
value = 0
|
value = 0
|
||||||
add = root.enemy_side.side_max_army_size
|
add = root.enemy_side.side_max_army_size
|
||||||
divide = 100
|
divide = 400
|
||||||
min = 5
|
min = 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -482,6 +484,20 @@ on_combat_end_winner = {
|
||||||
every_side_commander = {
|
every_side_commander = {
|
||||||
commander_trait_leveling_leveling_effect = { XP = 1 }
|
commander_trait_leveling_leveling_effect = { XP = 1 }
|
||||||
pam_miles_christi_fulfillment_from_combat_effect = yes
|
pam_miles_christi_fulfillment_from_combat_effect = yes
|
||||||
|
if = {
|
||||||
|
limit = { can_gain_military_career_merit_trigger = yes }
|
||||||
|
send_interface_message = {
|
||||||
|
type = msg_military_merit_gain
|
||||||
|
title = msg_military_merit_battle_won
|
||||||
|
left_icon = this
|
||||||
|
right_icon = root.enemy_side.side_primary_participant
|
||||||
|
change_merit = military_career_battle_commander_merit_value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
every_side_knight = {
|
||||||
|
limit = { can_gain_military_career_merit_trigger = yes }
|
||||||
|
change_merit = military_career_battle_knight_merit_value
|
||||||
}
|
}
|
||||||
|
|
||||||
# Miles Christi holy weapon victories
|
# Miles Christi holy weapon victories
|
||||||
|
|
@ -525,7 +541,7 @@ on_combat_end_winner = {
|
||||||
on_combat_end_loser = {
|
on_combat_end_loser = {
|
||||||
events = {
|
events = {
|
||||||
combat_event.0002 # Defeated commander loses shot at getting 'The Undefeated' nickname.
|
combat_event.0002 # Defeated commander loses shot at getting 'The Undefeated' nickname.
|
||||||
almohad.0003 # Check whether Ibn Tumert should die
|
# NEOW 2555: event not loaded. almohad.0003 # Check whether Ibn Tumert should die
|
||||||
fp1_shieldmaiden.0031 # Track shieldmaiden levelling.
|
fp1_shieldmaiden.0031 # Track shieldmaiden levelling.
|
||||||
combat_event.2111 # Battle Lost: glory goes down.
|
combat_event.2111 # Battle Lost: glory goes down.
|
||||||
}
|
}
|
||||||
|
|
@ -696,8 +712,8 @@ on_combat_end_loser = {
|
||||||
modifier = {
|
modifier = {
|
||||||
factor = accolade_progress # scales with accolade progress
|
factor = accolade_progress # scales with accolade progress
|
||||||
}
|
}
|
||||||
modifier = { # must have an eligible knight
|
if = {
|
||||||
NOT = {
|
limit = { # must have an eligible knight
|
||||||
root = {
|
root = {
|
||||||
any_side_knight = {
|
any_side_knight = {
|
||||||
can_unlock_accolade_attribute_trigger = {
|
can_unlock_accolade_attribute_trigger = {
|
||||||
|
|
@ -706,42 +722,41 @@ on_combat_end_loser = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
factor = 0
|
save_scope_as = accolade_liege
|
||||||
}
|
set_variable = {
|
||||||
save_scope_as = accolade_liege
|
name = accolade_progress
|
||||||
set_variable = {
|
value = 0
|
||||||
name = accolade_progress
|
|
||||||
value = 0
|
|
||||||
}
|
|
||||||
root = {
|
|
||||||
random_side_knight = {
|
|
||||||
limit = {
|
|
||||||
can_unlock_accolade_attribute_trigger = {
|
|
||||||
ATTRIBUTE = disciplinarian
|
|
||||||
}
|
|
||||||
}
|
|
||||||
weight = {
|
|
||||||
base = 1
|
|
||||||
modifier = {
|
|
||||||
add = 50
|
|
||||||
is_acclaimed = yes
|
|
||||||
}
|
|
||||||
}
|
|
||||||
save_scope_as = accolade_knight
|
|
||||||
}
|
}
|
||||||
}
|
root = {
|
||||||
send_interface_message = {
|
random_side_knight = {
|
||||||
type = msg_accolade_eligibility
|
limit = {
|
||||||
title = accolade_disciplinarian_unlock.t
|
can_unlock_accolade_attribute_trigger = {
|
||||||
left_icon = scope:accolade_knight
|
ATTRIBUTE = disciplinarian
|
||||||
right_icon = scope:accolade_liege
|
}
|
||||||
custom_tooltip = accolade_disciplinarian_unlock.tt
|
}
|
||||||
scope:accolade_knight = {
|
weight = {
|
||||||
set_variable = {
|
base = 1
|
||||||
name = disciplinarian_attribute_unlock
|
modifier = {
|
||||||
value = yes
|
add = 50
|
||||||
|
is_acclaimed = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
save_scope_as = accolade_knight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
send_interface_message = {
|
||||||
|
type = msg_accolade_eligibility
|
||||||
|
title = accolade_disciplinarian_unlock.t
|
||||||
|
left_icon = scope:accolade_knight
|
||||||
|
right_icon = scope:accolade_liege
|
||||||
|
custom_tooltip = accolade_disciplinarian_unlock.tt
|
||||||
|
scope:accolade_knight = {
|
||||||
|
set_variable = {
|
||||||
|
name = disciplinarian_attribute_unlock
|
||||||
|
value = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,10 @@ on_death = {
|
||||||
|
|
||||||
add_character_flag = { flag = about_to_die_but_not_dead_yet_flag } # Used in perk calc
|
add_character_flag = { flag = about_to_die_but_not_dead_yet_flag } # Used in perk calc
|
||||||
|
|
||||||
|
merchant_inspector_clear_specialized_market_effect = yes
|
||||||
|
|
||||||
|
burgher_clear_sponsor_links_effect = yes
|
||||||
|
|
||||||
# Legend inheritance
|
# Legend inheritance
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -2414,9 +2418,39 @@ on_death = {
|
||||||
if = {
|
if = {
|
||||||
limit = { is_valid_for_legitimacy_change = yes }
|
limit = { is_valid_for_legitimacy_change = yes }
|
||||||
add_legitimacy = massive_legitimacy_loss
|
add_legitimacy = massive_legitimacy_loss
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
### GDP ###
|
||||||
|
gdp_merchant_charter_patron_death_effect = yes
|
||||||
|
# NEOW 2555: historical Italian Guelph/Ghibelline succession disabled.
|
||||||
|
#Sort out the next Guelph & Ghibelline leader
|
||||||
|
# if = {
|
||||||
|
# limit = {
|
||||||
|
# exists = situation:guelph_ghibelline
|
||||||
|
# OR = {
|
||||||
|
# exists = var:guelph_leader
|
||||||
|
# exists = var:ghibelline_leader
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
# try_set_up_new_gg_leader_effect = yes
|
||||||
|
# }
|
||||||
|
|
||||||
|
# Allow the player to pick great schism stance when dying and becoming an heir that already has one
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_ai = no
|
||||||
|
player_heir ?= {
|
||||||
|
has_variable = pam_schism_stance
|
||||||
|
}
|
||||||
|
}
|
||||||
|
player_heir = {
|
||||||
|
remove_variable = pam_schism_stance
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# # PAM - Catalysts
|
|
||||||
|
# NEOW 2555: previously disabled PAM short-reign catalyst kept disabled.
|
||||||
|
# PAM - Catalysts
|
||||||
# if = {
|
# if = {
|
||||||
# limit = {
|
# limit = {
|
||||||
# pam_head_of_rite_had_short_reign_trigger = yes
|
# pam_head_of_rite_had_short_reign_trigger = yes
|
||||||
|
|
|
||||||
29
common/on_action/dlc/fp2/fp2_other_decision_on_actions.txt
Normal file
29
common/on_action/dlc/fp2/fp2_other_decision_on_actions.txt
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
#On actions relating to maintenance and effects of Inspirations.
|
||||||
|
|
||||||
|
fp2_struggle_council_toledo_organize = {
|
||||||
|
random_events = {
|
||||||
|
100 = fp2_other_decisions.0700
|
||||||
|
}
|
||||||
|
fallback = fp2_struggle_council_toledo_fallback
|
||||||
|
}
|
||||||
|
|
||||||
|
fp2_struggle_council_toledo_attend = {
|
||||||
|
random_events = {
|
||||||
|
100 = fp2_other_decisions.0701
|
||||||
|
}
|
||||||
|
fallback = fp2_struggle_council_toledo_fallback
|
||||||
|
}
|
||||||
|
|
||||||
|
fp2_struggle_council_toledo_debate = {
|
||||||
|
random_events = {
|
||||||
|
100 = fp2_other_decisions.0702
|
||||||
|
}
|
||||||
|
fallback = fp2_struggle_council_toledo_fallback
|
||||||
|
}
|
||||||
|
|
||||||
|
fp2_struggle_council_toledo_fallback = {
|
||||||
|
events = {
|
||||||
|
# NEOW 2555: event not loaded. fp2_other_decisions.0703
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -1016,6 +1016,151 @@ on_game_start = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Silk & Silver: initialize NEOW merchant and republic rulers.
|
||||||
|
every_independent_ruler = {
|
||||||
|
if = {
|
||||||
|
limit = { has_gdp_dlc_trigger = yes }
|
||||||
|
### GDP MERCHANT SETUP ###
|
||||||
|
if = {
|
||||||
|
limit = { government_has_flag = government_is_merchant }
|
||||||
|
# add_gold cannot be negative, so wipe then grant instead of (50 - gold).
|
||||||
|
if = {
|
||||||
|
limit = { gold > 0 }
|
||||||
|
remove_short_term_gold = gold
|
||||||
|
}
|
||||||
|
add_gold = 50
|
||||||
|
if = {
|
||||||
|
limit = { prestige > 25 }
|
||||||
|
add_prestige = {
|
||||||
|
value = 25
|
||||||
|
subtract = prestige
|
||||||
|
}
|
||||||
|
}
|
||||||
|
save_temporary_scope_as = merchant_scope
|
||||||
|
# Set CoA
|
||||||
|
primary_title = {
|
||||||
|
set_coa = scope:merchant_scope.house
|
||||||
|
set_variable = { name = merchant_creation_reason value = flag:historical }
|
||||||
|
set_variable = gdp_starting_merchant_company
|
||||||
|
}
|
||||||
|
random_held_title = {
|
||||||
|
limit = { is_noble_family_title = yes }
|
||||||
|
set_coa = holder.top_liege.house
|
||||||
|
}
|
||||||
|
# And tally our numbers for performance purposes.
|
||||||
|
add_to_global_variable_list = {
|
||||||
|
name = merchants_tally
|
||||||
|
target = this.primary_title
|
||||||
|
}
|
||||||
|
# Ruler-designer merchants spawn on the selected county; snap them to that market's capital.
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_from_ruler_designer = yes
|
||||||
|
exists = location.barony.trade_market.trade_market_owner.title_province
|
||||||
|
}
|
||||||
|
location.barony.trade_market.trade_market_owner.title_province = { save_temporary_scope_as = merchant_market_capital }
|
||||||
|
random_held_title = {
|
||||||
|
limit = { is_noble_family_title = yes }
|
||||||
|
set_capital_county = scope:merchant_market_capital.county
|
||||||
|
}
|
||||||
|
domicile ?= { move_domicile = scope:merchant_market_capital }
|
||||||
|
set_location = scope:merchant_market_capital
|
||||||
|
}
|
||||||
|
start_tributary_interaction_effect = {
|
||||||
|
TRIBUTARY = this
|
||||||
|
SUZERAIN = domicile.domicile_location.county.holder # county holder
|
||||||
|
}
|
||||||
|
# Players start with a clean slate and build their company from the ground up.
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_ai = no
|
||||||
|
}
|
||||||
|
add_character_flag = free_starting_merchant_purpose_change
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
OR = {
|
||||||
|
has_realm_law = company_purpose_artisan
|
||||||
|
has_realm_law = company_purpose_caravaneer
|
||||||
|
has_realm_law = company_purpose_creditor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
add_realm_law_skip_effects = company_purpose_family
|
||||||
|
merchant_company_law_remove_purpose_effect = yes
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
OR = {
|
||||||
|
has_realm_law = company_size_medium
|
||||||
|
has_realm_law = company_size_large
|
||||||
|
has_realm_law = company_size_huge
|
||||||
|
}
|
||||||
|
}
|
||||||
|
add_realm_law_skip_effects = company_size_small
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# Starting company purposes.
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_ai = yes
|
||||||
|
NOR = {
|
||||||
|
has_realm_law = company_purpose_artisan
|
||||||
|
has_realm_law = company_purpose_caravaneer
|
||||||
|
has_realm_law = company_purpose_creditor
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# Set some starting Company purposes
|
||||||
|
switch = {
|
||||||
|
trigger = highest_skill
|
||||||
|
learning = { add_realm_law_skip_effects = company_purpose_artisan }
|
||||||
|
diplomacy = { add_realm_law_skip_effects = company_purpose_caravaneer }
|
||||||
|
martial = { add_realm_law_skip_effects = company_purpose_creditor }
|
||||||
|
intrigue = { add_realm_law_skip_effects = company_purpose_creditor }
|
||||||
|
}
|
||||||
|
# Courtiers.
|
||||||
|
trigger_event = gdp_merchant.1001
|
||||||
|
}
|
||||||
|
gdp_update_usury_reputation_effect = yes
|
||||||
|
trigger_event = gdp_merchant.1003
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = { is_ai = yes }
|
||||||
|
set_starting_company_size_effect = yes
|
||||||
|
set_starting_company_acumen_effect = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
### GDP REPUBLIC SETUP ###
|
||||||
|
else_if = {
|
||||||
|
limit = { government_has_flag = government_is_republic }
|
||||||
|
every_noble_family = {
|
||||||
|
# Ensure Noble Family CoA match House
|
||||||
|
set_coa = holder.house
|
||||||
|
holder ?= {
|
||||||
|
# Consistent starting cash
|
||||||
|
if = {
|
||||||
|
limit = { gold > 0 }
|
||||||
|
remove_short_term_gold = gold
|
||||||
|
}
|
||||||
|
add_gold = 50
|
||||||
|
save_scope_as = nf_holder
|
||||||
|
if = {
|
||||||
|
limit = { is_landed = yes }
|
||||||
|
capital_province = { save_scope_as = domicile_location }
|
||||||
|
}
|
||||||
|
# Ensure holders of historical noble family titles are the default house heads
|
||||||
|
house ?= {
|
||||||
|
if = {
|
||||||
|
limit = { house_head != scope:nf_holder }
|
||||||
|
set_house_head = scope:nf_holder
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# To prevent the Season Changes event from triggering on game start
|
# To prevent the Season Changes event from triggering on game start
|
||||||
situation:the_great_steppe ?= {
|
situation:the_great_steppe ?= {
|
||||||
every_participant_group = {
|
every_participant_group = {
|
||||||
|
|
@ -1033,246 +1178,54 @@ on_game_start = {
|
||||||
limit = {
|
limit = {
|
||||||
has_cp3_dlc_trigger = yes
|
has_cp3_dlc_trigger = yes
|
||||||
}
|
}
|
||||||
title:b_barcelona.title_province = { add_special_building_slot = drassanes_01 } #1892
|
title:b_barcelona.title_province = { add_special_district_slot = drassanes_01_district } #1892
|
||||||
title:b_merv.title_province = { add_special_building = kyz_kala_01 } #4238
|
title:b_merv.title_province = { add_special_district = kyz_kala_01_district } #4238
|
||||||
if = { limit = { game_start_date >= 1178.10.1 } title:b_cluny.title_province = { add_special_building = cluny_abbey_02 } } #2304
|
if = { limit = { game_start_date >= 1178.10.1 } title:b_cluny.title_province = { add_special_district = cluny_abbey_01_district special_district = { add_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_if = { limit = { game_start_date >= 1066.9.15 } title:b_cluny.title_province = { add_special_district = cluny_abbey_01_district } }
|
||||||
else = { title:b_cluny.title_province = { add_special_building_slot = cluny_abbey_01 } }
|
else = { title:b_cluny.title_province = { add_special_district_slot = cluny_abbey_01_district } }
|
||||||
title:b_york.title_province = { add_special_building = york_walls_01 } #1595
|
title:b_york.title_province = { add_special_district = york_walls_01_district } #1595
|
||||||
title:b_damascus.title_province = { add_special_building = damascus_mosque_01 } #5924
|
title:b_damascus.title_province = { add_special_district = damascus_mosque_01_district } #5924
|
||||||
title:b_lhasa.title_province = { add_special_building = jokhang_01 } #9237
|
title:b_lhasa.title_province = { add_special_district = jokhang_01_district } #9237
|
||||||
if = { limit = { game_start_date >= 1178.10.1 } title:b_schmalkalden.title_province = { add_special_building = wartburg_01 } } #3010
|
if = { limit = { game_start_date >= 1178.10.1 } title:b_schmalkalden.title_province = { add_special_district = wartburg_01_district } } #3010
|
||||||
else = { title:b_schmalkalden.title_province = { add_special_building_slot = wartburg_01 } }
|
else = { title:b_schmalkalden.title_province = { add_special_district_slot = wartburg_01_district } }
|
||||||
title:b_lalibela.title_province = { add_special_building_slot = beta_giyorgis_01 } #8301
|
title:b_lalibela.title_province = { add_special_district_slot = beta_giyorgis_01_district } #8301
|
||||||
if = { limit = { game_start_date >= 1066.9.15 } title:b_novgorod.title_province = { add_special_building = holy_wisdom_01 } } #5137
|
if = { limit = { game_start_date >= 1066.9.15 } title:b_novgorod.title_province = { add_special_district = holy_wisdom_01_district } } #5137
|
||||||
else = { title:b_novgorod.title_province = { add_special_building_slot = holy_wisdom_01 } }
|
else = { title:b_novgorod.title_province = { add_special_district_slot = holy_wisdom_01_district } }
|
||||||
title:b_kano.title_province = { add_special_building_slot = kano_walls_01 } #6519
|
title:b_kano.title_province = { add_special_district_slot = kano_walls_01_district } #6519
|
||||||
title:b_somapur.title_province = { add_special_building = somapura_university_01 } #848
|
title:b_somapur.title_province = { add_special_district = somapura_university_01_district } #848
|
||||||
if = { limit = { game_start_date >= 1178.10.1 } title:b_firenze.title_province = { add_special_building = duomo_florence_02 } } #2543
|
if = { limit = { game_start_date >= 1178.10.1 } title:b_firenze.title_province = { add_special_district = duomo_florence_01_district } } #2543
|
||||||
else = { title:b_firenze.title_province = { add_special_building = duomo_florence_01 } }
|
else = { title:b_firenze.title_province = { add_special_district = duomo_florence_01_district } }
|
||||||
title:b_konarak.title_province = { add_special_building_slot = konark_temple_01 } #928
|
title:b_konarak.title_province = { add_special_district_slot = konark_temple_01_district } #928
|
||||||
title:b_fes.title_province = { add_special_building = al_qarawiyyin_university_01 } #4694
|
title:b_fes.title_province = { add_special_district = al_qarawiyyin_university_01_district } #4694
|
||||||
title:b_kairouan.title_province = { add_special_building = kairouan_basins_01 } #4594
|
title:b_kairouan.title_province = { add_special_district = kairouan_basins_01_district } #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_al-ghaba.title_province = { add_special_district = ghana_palace_01_district } #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
|
title:b_visegrad_hun.title_province = { add_special_district_slot = visegrad_castle_01_district } #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
|
if = { limit = { game_start_date >= 1161.9.15 } title:b_leczyca.title_province = { add_special_district = wawel_cathedral_01_district } } #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 } }
|
else = { title:b_leczyca.title_province = { add_special_district_slot = wawel_cathedral_01_district } }
|
||||||
title:b_vatapi.title_province = { add_special_building = vatapi_caves_01 } #1198
|
title:b_vatapi.title_province = { add_special_district = vatapi_caves_01_district } #1198
|
||||||
if = { limit = { game_start_date >= 1178.10.1 } title:b_jaisalmer.title_province = { add_special_building = jaisalmer_fort_01 } } #3387
|
if = { limit = { game_start_date >= 1178.10.1 } title:b_jaisalmer.title_province = { add_special_district = jaisalmer_fort_01_district } } #3387
|
||||||
else = { title:b_jaisalmer.title_province = { add_special_building_slot = jaisalmer_fort_01 } } #3387
|
else = { title:b_jaisalmer.title_province = { add_special_district_slot = jaisalmer_fort_01_district } } #3387
|
||||||
}
|
}
|
||||||
|
|
||||||
### RELIGIOUS THINGS ###
|
### RELIGIOUS THINGS ###
|
||||||
# Set up Holy Site Buildings to be buildable in Holy Sites
|
# Set up Holy Site Buildings to be buildable in Holy Sites
|
||||||
religion:islam_religion = {
|
|
||||||
every_faith = {
|
|
||||||
every_holy_site = {
|
|
||||||
limit = {
|
|
||||||
title_province = {
|
|
||||||
has_special_building_slot = no
|
|
||||||
}
|
|
||||||
}
|
|
||||||
title_province = {
|
|
||||||
add_special_building_slot = holy_site_mosque_01
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
religion:eastern_orthodox_religion = {
|
|
||||||
every_faith = {
|
|
||||||
every_holy_site = {
|
|
||||||
limit = {
|
|
||||||
title_province = {
|
|
||||||
has_special_building_slot = no
|
|
||||||
}
|
|
||||||
}
|
|
||||||
title_province = {
|
|
||||||
add_special_building_slot = holy_site_cathedral_01
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
religion:catholic_religion = {
|
|
||||||
every_faith = {
|
|
||||||
every_holy_site = {
|
|
||||||
limit = {
|
|
||||||
title_province = {
|
|
||||||
has_special_building_slot = no
|
|
||||||
}
|
|
||||||
}
|
|
||||||
title_province = {
|
|
||||||
add_special_building_slot = holy_site_cathedral_01
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
religion:protestant_religion = {
|
|
||||||
every_faith = {
|
|
||||||
every_holy_site = {
|
|
||||||
limit = {
|
|
||||||
title_province = {
|
|
||||||
has_special_building_slot = no
|
|
||||||
}
|
|
||||||
}
|
|
||||||
title_province = {
|
|
||||||
add_special_building_slot = holy_site_cathedral_01
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
religion:zoroastrianism_religion = {
|
|
||||||
every_faith = {
|
|
||||||
every_holy_site = {
|
|
||||||
limit = {
|
|
||||||
title_province = {
|
|
||||||
has_special_building_slot = no
|
|
||||||
}
|
|
||||||
}
|
|
||||||
title_province = {
|
|
||||||
add_special_building_slot = holy_site_fire_temple_01
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
religion:buddhism_religion = {
|
|
||||||
every_faith = {
|
|
||||||
every_holy_site = {
|
|
||||||
limit = {
|
|
||||||
title_province = {
|
|
||||||
has_special_building_slot = no
|
|
||||||
}
|
|
||||||
}
|
|
||||||
title_province = {
|
|
||||||
add_special_building_slot = holy_site_buddhist_grand_temple_01
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
# religion:shintoism_religion = {
|
|
||||||
# every_faith = {
|
|
||||||
# every_holy_site = {
|
|
||||||
# limit = {
|
|
||||||
# title_province = {
|
|
||||||
# has_special_building_slot = no
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# title_province = {
|
|
||||||
# add_special_building_slot = holy_site_japanese_temple_01
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# religion:taoism_religion = {
|
|
||||||
# every_faith = {
|
|
||||||
# every_holy_site = {
|
|
||||||
# limit = {
|
|
||||||
# title_province = {
|
|
||||||
# has_special_building_slot = no
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# title_province = {
|
|
||||||
# add_special_building_slot = holy_site_chinese_temple_01
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# religion:confucianism_religion = {
|
|
||||||
# every_faith = {
|
|
||||||
# every_holy_site = {
|
|
||||||
# limit = {
|
|
||||||
# title_province = {
|
|
||||||
# has_special_building_slot = no
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# title_province = {
|
|
||||||
# add_special_building_slot = holy_site_chinese_temple_01
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# every_religion_global = {
|
|
||||||
# limit = {
|
|
||||||
# OR = {
|
|
||||||
# this = religion:hinduism_religion
|
|
||||||
# this = religion:jainism_religion
|
|
||||||
# this = religion:tani_religion
|
|
||||||
# this = religion:bon_religion
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# every_faith = {
|
|
||||||
# every_holy_site = {
|
|
||||||
# limit = {
|
|
||||||
# title_province = {
|
|
||||||
# has_special_building_slot = no
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# title_province = {
|
|
||||||
# add_special_building_slot = holy_site_indian_grand_temple_01
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# every_religion_global = {
|
|
||||||
# limit = {
|
|
||||||
# OR = {
|
|
||||||
# this = religion:satsana_phi_religion
|
|
||||||
# this = religion:dayawism_religion
|
|
||||||
# this = religion:hantuism_religion
|
|
||||||
# this = religion:satsana_phi_religion
|
|
||||||
# this = religion:kaharingan_religion
|
|
||||||
# this = religion:tolotang_religion
|
|
||||||
# this = religion:aluk_religion
|
|
||||||
# this = religion:dab_qhuas_religion
|
|
||||||
# this = religion:biliku_religion
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# every_faith = {
|
|
||||||
# every_holy_site = {
|
|
||||||
# limit = {
|
|
||||||
# title_province = {
|
|
||||||
# has_special_building_slot = no
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# title_province = {
|
|
||||||
# add_special_building_slot = holy_site_se_asia_pagan_temple_01
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
every_religion_global = {
|
|
||||||
limit = {
|
|
||||||
is_in_family = rf_pagan
|
|
||||||
}
|
|
||||||
every_faith = {
|
|
||||||
every_holy_site = {
|
|
||||||
limit = {
|
|
||||||
title_province = {
|
|
||||||
has_special_building_slot = no
|
|
||||||
}
|
|
||||||
}
|
|
||||||
title_province = {
|
|
||||||
add_special_building_slot = holy_site_pagan_grand_temple_01
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
every_religion_global = {
|
every_religion_global = {
|
||||||
every_faith = {
|
every_faith = {
|
||||||
every_holy_site = {
|
save_scope_as = holy_site_faith
|
||||||
|
every_holy_site_barony = {
|
||||||
limit = {
|
limit = {
|
||||||
title_province = {
|
title_province = {
|
||||||
has_special_building_slot = no
|
has_special_district_slot = no
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
title_province = {
|
title_province = {
|
||||||
add_special_building_slot = holy_site_other_grand_temple_01
|
add_holy_site_fallback_special_district_slot_effect = { FAITH = scope:holy_site_faith }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# # If your capital on game start is Mecca, you get the Hajjaj trait (since you can't Hajj to your capital)
|
# If your capital on game start is Mecca, you get the Hajjaj trait (since you can't Hajj to your capital)
|
||||||
# title:b_makka.county.holder = {
|
# title:b_makka.county.holder = {
|
||||||
# if = {
|
# if = {
|
||||||
# limit = {
|
# limit = {
|
||||||
|
|
@ -1372,59 +1325,59 @@ on_game_start = {
|
||||||
title:b_fes.title_province = {
|
title:b_fes.title_province = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_special_building_slot = no #Depends on DLC
|
has_special_district_slot = no #Depends on DLC
|
||||||
}
|
}
|
||||||
add_special_building_slot = generic_university
|
add_special_district_slot = generic_university_district
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
title:b_somapur.title_province = {
|
title:b_somapur.title_province = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_special_building_slot = no #Depends on DLC
|
has_special_district_slot = no #Depends on DLC
|
||||||
}
|
}
|
||||||
add_special_building_slot = generic_university
|
add_special_district_slot = generic_university_district
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#title:b_bologna.title_province = { add_special_building_slot = generic_university } # Added in province history
|
#title:b_bologna.title_province = { add_special_district_slot = generic_university_district } # Added in province history
|
||||||
title:b_salamanca.title_province = { add_special_building_slot = generic_university }
|
title:b_salamanca.title_province = { add_special_district_slot = generic_university_district }
|
||||||
title:b_madrid.title_province = { add_special_building_slot = generic_university }
|
title:b_madrid.title_province = { add_special_district_slot = generic_university_district }
|
||||||
#title:b_oxford.title_province = { add_special_building_slot = generic_university } # Added in province history
|
#title:b_oxford.title_province = { add_special_district_slot = generic_university_district } # Added in province history
|
||||||
title:b_cambridge.title_province = { add_special_building_slot = generic_university }
|
title:b_cambridge.title_province = { add_special_district_slot = generic_university_district }
|
||||||
title:b_padua.title_province = { add_special_building_slot = generic_university }
|
title:b_padua.title_province = { add_special_district_slot = generic_university_district }
|
||||||
title:b_coimbra.title_province = { add_special_building_slot = generic_university }
|
title:b_coimbra.title_province = { add_special_district_slot = generic_university_district }
|
||||||
title:b_napoli.title_province = { add_special_building_slot = generic_university }
|
title:b_napoli.title_province = { add_special_district_slot = generic_university_district }
|
||||||
title:b_milano.title_province = { add_special_building_slot = generic_university }
|
title:b_milano.title_province = { add_special_district_slot = generic_university_district }
|
||||||
title:b_vienna.title_province = { add_special_building_slot = generic_university }
|
title:b_vienna.title_province = { add_special_district_slot = generic_university_district }
|
||||||
title:b_praha.title_province = { add_special_building_slot = generic_university }
|
title:b_praha.title_province = { add_special_district_slot = generic_university_district }
|
||||||
title:b_perugia.title_province = { add_special_building_slot = generic_university }
|
title:b_perugia.title_province = { add_special_district_slot = generic_university_district }
|
||||||
title:b_malappuram.title_province = { add_special_building_slot = generic_university }
|
title:b_malappuram.title_province = { add_special_district_slot = generic_university_district }
|
||||||
title:b_janakpur.title_province = { add_special_building_slot = generic_university }
|
title:b_janakpur.title_province = { add_special_district_slot = generic_university_district }
|
||||||
title:b_uppsala.title_province = { add_special_building_slot = generic_university }
|
title:b_uppsala.title_province = { add_special_district_slot = generic_university_district }
|
||||||
title:b_montlhery.title_province = { add_special_building_slot = generic_university } # Technically should be Paris, but that's occupied by Notre Dame
|
title:b_montlhery.title_province = { add_special_district_slot = generic_university_district } # Technically should be Paris, but that's occupied by Notre Dame
|
||||||
title:b_qartajana.title_province = { add_special_building_slot = generic_university } # Technically should be Tunis, but that's occupied by a cathedral
|
title:b_qartajana.title_province = { add_special_district_slot = generic_university_district } # Technically should be Tunis, but that's occupied by a cathedral
|
||||||
title:b_wazwan.title_province = { add_special_building_slot = generic_university } # Technically should be Isfahan, but that's occupied by the Friday Mosque
|
title:b_wazwan.title_province = { add_special_district_slot = generic_university_district } # Technically should be Isfahan, but that's occupied by the Friday Mosque
|
||||||
title:b_sarsar.title_province = { add_special_building_slot = generic_university } # Technically should be Baghdad, but that's occupied by the House of Wisdom
|
title:b_sarsar.title_province = { add_special_district_slot = generic_university_district } # Technically should be Baghdad, but that's occupied by the House of Wisdom
|
||||||
title:b_speyer.title_province = { add_special_building_slot = generic_university } # 1350ish, should be in Heidelberg but that's a church
|
title:b_speyer.title_province = { add_special_district_slot = generic_university_district } # 1350ish, should be in Heidelberg but that's a church
|
||||||
title:b_krakow.title_province = { add_special_building_slot = generic_university } # 1364
|
title:b_krakow.title_province = { add_special_district_slot = generic_university_district } # 1364
|
||||||
title:b_pisa.title_province = { add_special_building_slot = generic_university } # 1350ish
|
title:b_pisa.title_province = { add_special_district_slot = generic_university_district } # 1350ish
|
||||||
title:b_rostock.title_province = { add_special_building_slot = generic_university } # 1400ish
|
title:b_rostock.title_province = { add_special_district_slot = generic_university_district } # 1400ish
|
||||||
title:b_turin.title_province = { add_special_building_slot = generic_university } # 1400ish
|
title:b_turin.title_province = { add_special_district_slot = generic_university_district } # 1400ish
|
||||||
title:b_ferrara.title_province = { add_special_building_slot = generic_university } # 1400ish
|
title:b_ferrara.title_province = { add_special_district_slot = generic_university_district } # 1400ish
|
||||||
title:b_leipzig.title_province = { add_special_building_slot = generic_university } # 1400ish, a city holding
|
title:b_leipzig.title_province = { add_special_district_slot = generic_university_district } # 1400ish, a city holding
|
||||||
title:b_messina.title_province = { add_special_building_slot = generic_university } # 1400ish, should be in Catania but that's a church
|
title:b_messina.title_province = { add_special_district_slot = generic_university_district } # 1400ish, should be in Catania but that's a church
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_cp3_dlc_trigger = yes
|
has_cp3_dlc_trigger = yes
|
||||||
}
|
}
|
||||||
title:b_sitges.title_province = { add_special_building_slot = generic_university } # Should be Barcelona but that location has another building now
|
title:b_sitges.title_province = { add_special_district_slot = generic_university_district } # Should be Barcelona but that location has another building now
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
title:b_barcelona.title_province = { add_special_building_slot = generic_university } # 1450ish, but still fun to build
|
title:b_barcelona.title_province = { add_special_district_slot = generic_university_district } # 1450ish, but still fun to build
|
||||||
}
|
}
|
||||||
title:b_dumbarton.title_province = { add_special_building_slot = generic_university } # 1450ish, but still fun to build
|
title:b_dumbarton.title_province = { add_special_district_slot = generic_university_district } # 1450ish, but still fun to build
|
||||||
title:b_bidar.title_province = { add_special_building_slot = generic_university } # 1450ish, but still fun to build
|
title:b_bidar.title_province = { add_special_district_slot = generic_university_district } # 1450ish, but still fun to build
|
||||||
title:b_changsha.title_province = {
|
title:b_changsha.title_province = {
|
||||||
add_special_building_slot = generic_university
|
add_special_district_slot = generic_university_district
|
||||||
}
|
}
|
||||||
|
|
||||||
### GREAT WALL OF CHINA ###
|
### GREAT WALL OF CHINA ###
|
||||||
|
|
@ -2755,7 +2708,7 @@ on_game_start = {
|
||||||
add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:sichuan_myanmar_earthquake_region }
|
add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:sichuan_myanmar_earthquake_region }
|
||||||
add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:south_china_coastaline_earthquake_region }
|
add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:south_china_coastaline_earthquake_region }
|
||||||
add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:north_china_earthquake_region }
|
add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:north_china_earthquake_region }
|
||||||
add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:mongolia_baikal_earthquake_region }
|
# add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:mongolia_baikal_earthquake_region } # NEOW 2555: Mongolian region not in mod map
|
||||||
add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:central_asian_earthquake_region }
|
add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:central_asian_earthquake_region }
|
||||||
|
|
||||||
### TGP Flood Regions
|
### TGP Flood Regions
|
||||||
|
|
@ -2792,7 +2745,7 @@ on_game_start = {
|
||||||
add_to_global_variable_list = { name = flood_region_list target = geographical_region:yangtze_river_region }
|
add_to_global_variable_list = { name = flood_region_list target = geographical_region:yangtze_river_region }
|
||||||
add_to_global_variable_list = { name = flood_region_list target = geographical_region:yellow_river_region }
|
add_to_global_variable_list = { name = flood_region_list target = geographical_region:yellow_river_region }
|
||||||
##### HISTORICAL HOUSE RELATIONS - deliberately placed above blocs
|
##### HISTORICAL HOUSE RELATIONS - deliberately placed above blocs
|
||||||
tgp_setup_historical_house_relation_effect = yes
|
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. tgp_setup_historical_house_relation_effect = yes
|
||||||
##### TGP JAPAN #####
|
##### TGP JAPAN #####
|
||||||
if = {
|
if = {
|
||||||
limit = { has_tgp_dlc_trigger = yes }
|
limit = { has_tgp_dlc_trigger = yes }
|
||||||
|
|
@ -2847,6 +2800,12 @@ on_game_start = {
|
||||||
on_game_start_after_lobby = {
|
on_game_start_after_lobby = {
|
||||||
effect = {
|
effect = {
|
||||||
disable_succession_calculation = yes
|
disable_succession_calculation = yes
|
||||||
|
|
||||||
|
# Silk & Silver: spawn compatible merchants around NEOW player realms.
|
||||||
|
if = {
|
||||||
|
limit = { has_gdp_dlc_trigger = yes }
|
||||||
|
every_player = { gdp_create_starting_merchants_near_player_effect = yes }
|
||||||
|
}
|
||||||
|
|
||||||
# To prevent the Season Changes event from triggering on game start
|
# To prevent the Season Changes event from triggering on game start
|
||||||
situation:the_great_steppe ?= {
|
situation:the_great_steppe ?= {
|
||||||
|
|
@ -3670,7 +3629,7 @@ on_game_start_after_lobby = {
|
||||||
# has_trait = dull
|
# has_trait = dull
|
||||||
# has_trait = intellect_bad
|
# has_trait = intellect_bad
|
||||||
# location.county ?= {
|
# location.county ?= {
|
||||||
# development_level <= bad_development_level
|
# prosperity_level <= bad_prosperity_level
|
||||||
# }
|
# }
|
||||||
# }
|
# }
|
||||||
# }
|
# }
|
||||||
|
|
@ -15811,7 +15770,7 @@ on_game_start_after_lobby = {
|
||||||
}
|
}
|
||||||
|
|
||||||
### DYNASTY TRACKING SETUP
|
### DYNASTY TRACKING SETUP
|
||||||
japan_dynasty_tracker_setup_effect = yes
|
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. japan_dynasty_tracker_setup_effect = yes
|
||||||
|
|
||||||
|
|
||||||
### TGP NOBLE FAMILIES & DOMICILE SETUP ###
|
### TGP NOBLE FAMILIES & DOMICILE SETUP ###
|
||||||
|
|
@ -16144,15 +16103,15 @@ on_game_start_after_lobby = {
|
||||||
# }
|
# }
|
||||||
every_in_list = {
|
every_in_list = {
|
||||||
list = holder_to_learn_chinese
|
list = holder_to_learn_chinese
|
||||||
tgp_learn_chinese_effect_game_start = yes
|
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. tgp_learn_chinese_effect_game_start = yes
|
||||||
if = {
|
if = {
|
||||||
limit = { is_independent_ruler = yes }
|
limit = { is_independent_ruler = yes }
|
||||||
every_noble_family = {
|
every_noble_family = {
|
||||||
holder ?= {
|
holder ?= {
|
||||||
tgp_learn_chinese_effect_game_start = yes
|
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. tgp_learn_chinese_effect_game_start = yes
|
||||||
house = {
|
house = {
|
||||||
every_house_member = {
|
every_house_member = {
|
||||||
tgp_learn_chinese_effect_game_start = yes
|
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. tgp_learn_chinese_effect_game_start = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -16176,7 +16135,7 @@ on_game_start_after_lobby = {
|
||||||
has_holding = yes
|
has_holding = yes
|
||||||
}
|
}
|
||||||
generate_building = yes
|
generate_building = yes
|
||||||
brewery_counter_start_effect = yes
|
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. brewery_counter_start_effect = yes
|
||||||
}
|
}
|
||||||
every_domicile = {
|
every_domicile = {
|
||||||
limit = { exists = owner }
|
limit = { exists = owner }
|
||||||
|
|
@ -16200,9 +16159,9 @@ on_game_start_after_lobby = {
|
||||||
owner.culture ?= { has_innovation = innovation_city_planning }
|
owner.culture ?= { has_innovation = innovation_city_planning }
|
||||||
}
|
}
|
||||||
add_domicile_building = japanese_manor_main_02
|
add_domicile_building = japanese_manor_main_02
|
||||||
add_random_internal_japanese_manor_building = yes
|
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. add_random_internal_japanese_manor_building = yes
|
||||||
}
|
}
|
||||||
fill_external_japanese_manor_building_effect = yes
|
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. fill_external_japanese_manor_building_effect = yes
|
||||||
}
|
}
|
||||||
east_asian_estate = {
|
east_asian_estate = {
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -16238,57 +16197,57 @@ on_game_start_after_lobby = {
|
||||||
generate_building = yes
|
generate_building = yes
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
county.development_level >= 8
|
county.prosperity_level >= 8
|
||||||
}
|
}
|
||||||
generate_building = yes
|
generate_building = yes
|
||||||
generate_building = yes
|
generate_building = yes
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
county.development_level >= 10
|
county.prosperity_level >= 10
|
||||||
}
|
}
|
||||||
generate_building = yes
|
generate_building = yes
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
county.development_level >= 12
|
county.prosperity_level >= 12
|
||||||
}
|
}
|
||||||
generate_building = yes
|
generate_building = yes
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
county.development_level >= 14
|
county.prosperity_level >= 14
|
||||||
}
|
}
|
||||||
generate_building = yes
|
generate_building = yes
|
||||||
generate_building = yes
|
generate_building = yes
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
county.development_level >= 16
|
county.prosperity_level >= 16
|
||||||
}
|
}
|
||||||
generate_building = yes
|
generate_building = yes
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
county.development_level >= 18
|
county.prosperity_level >= 18
|
||||||
}
|
}
|
||||||
generate_building = yes
|
generate_building = yes
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
county.development_level >= 20
|
county.prosperity_level >= 20
|
||||||
}
|
}
|
||||||
generate_building = yes
|
generate_building = yes
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
county.development_level >= 25
|
county.prosperity_level >= 25
|
||||||
}
|
}
|
||||||
generate_building = yes
|
generate_building = yes
|
||||||
generate_building = yes
|
generate_building = yes
|
||||||
generate_building = yes
|
generate_building = yes
|
||||||
}
|
}
|
||||||
brewery_counter_start_effect = yes
|
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. brewery_counter_start_effect = yes
|
||||||
}
|
}
|
||||||
every_domicile = {
|
every_domicile = {
|
||||||
#if = { # Left in if we want adventurers to spawn with stuff
|
#if = { # Left in if we want adventurers to spawn with stuff
|
||||||
|
|
@ -16444,7 +16403,7 @@ on_game_start_after_lobby = {
|
||||||
owner.culture ?= { has_innovation = innovation_city_planning }
|
owner.culture ?= { has_innovation = innovation_city_planning }
|
||||||
}
|
}
|
||||||
add_domicile_building = japanese_manor_main_02
|
add_domicile_building = japanese_manor_main_02
|
||||||
add_random_internal_japanese_manor_building = yes
|
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. add_random_internal_japanese_manor_building = yes
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -16455,10 +16414,10 @@ on_game_start_after_lobby = {
|
||||||
add_domicile_building = japanese_manor_main_03
|
add_domicile_building = japanese_manor_main_03
|
||||||
while = {
|
while = {
|
||||||
count = 2
|
count = 2
|
||||||
add_random_internal_japanese_manor_building = yes
|
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. add_random_internal_japanese_manor_building = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fill_external_japanese_manor_building_effect = yes
|
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. fill_external_japanese_manor_building_effect = yes
|
||||||
}
|
}
|
||||||
east_asian_estate = {
|
east_asian_estate = {
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -16781,6 +16740,40 @@ on_game_start_after_lobby = {
|
||||||
}
|
}
|
||||||
set_global_variable = game_has_started
|
set_global_variable = game_has_started
|
||||||
|
|
||||||
|
# Silk & Silver: finish merchant and republic setup after NEOW world initialization.
|
||||||
|
if = {
|
||||||
|
limit = { has_gdp_dlc_trigger = yes }
|
||||||
|
every_domicile = {
|
||||||
|
limit = {
|
||||||
|
is_domicile_type = merchant_company
|
||||||
|
owner ?= {
|
||||||
|
OR = {
|
||||||
|
has_realm_law = company_size_large
|
||||||
|
has_realm_law = company_size_huge
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
gdp_raise_starting_company_buildings_effect = { FROM = 01 TO = 02 }
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
owner = { has_realm_law = company_size_huge }
|
||||||
|
}
|
||||||
|
gdp_raise_starting_company_buildings_effect = { FROM = 02 TO = 03 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
every_player = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
}
|
||||||
|
house = {
|
||||||
|
set_house_aspiration = { type = republic_no_ambition }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
gdp_trade_envoys_resume_idle_traders_effect = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
enable_and_run_succession_calculation = yes
|
enable_and_run_succession_calculation = yes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -16789,6 +16782,8 @@ on_game_start_after_lobby = {
|
||||||
historical_artifacts.0050
|
historical_artifacts.0050
|
||||||
historical_artifacts.0023 # Historical Artifacts Generator
|
historical_artifacts.0023 # Historical Artifacts Generator
|
||||||
coronation_events.0302 # ACH crown giveaway
|
coronation_events.0302 # ACH crown giveaway
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,49 @@ on_artifact_changed_owner = {
|
||||||
on_action = on_artifact_claim_gained
|
on_action = on_artifact_claim_gained
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
gdp_menagerie_artifact_has_active_story_trigger = { CHARACTER = scope:old_owner ARTIFACT = scope:artifact }
|
||||||
|
}
|
||||||
|
scope:old_owner = {
|
||||||
|
random_owned_story = {
|
||||||
|
limit = {
|
||||||
|
story_type = story_cycle_menagerie
|
||||||
|
var:artifact_type ?= scope:artifact
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
scope:artifact = { artifact_type = creature }
|
||||||
|
scope:owner = {
|
||||||
|
domicile ?= { is_domicile_type = merchant_company }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
make_story_owner = scope:owner
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
end_story = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# GDP Associate promise
|
||||||
|
scope:owner = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
var:associate_request_type ?= flag:artifact
|
||||||
|
var:associate_request_merchant ?= scope:old_owner
|
||||||
|
scope:old_owner = {
|
||||||
|
any_in_list = {
|
||||||
|
variable = associate_requests
|
||||||
|
this = scope:owner
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scope:old_owner = {
|
||||||
|
gdp_merchant_associate_promise_completed_merchant_effect = { ASSOCIATE = scope:owner }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Re-identify the Chad/Ironside skull whenever it changes hands.
|
# Re-identify the Chad/Ironside skull whenever it changes hands.
|
||||||
|
|
|
||||||
537
common/on_action/prison_on_actions.txt
Normal file
537
common/on_action/prison_on_actions.txt
Normal file
|
|
@ -0,0 +1,537 @@
|
||||||
|
#On actions directing prison-related events
|
||||||
|
#Note that prison stress events are handled through the Stress on-actions.
|
||||||
|
|
||||||
|
|
||||||
|
# Code on-action: character being imprisoned in root scope
|
||||||
|
# imprisoning character set as scope:imprisoner
|
||||||
|
on_imprison = {
|
||||||
|
effect = { # You no longer make such decisions over your life :(
|
||||||
|
# EP2: Cancel associated activity and travel plan if they exist
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
exists = involved_activity
|
||||||
|
involved_activity.activity_host = root
|
||||||
|
}
|
||||||
|
invalidate_activity = root.involved_activity
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
exists = involved_activity
|
||||||
|
}
|
||||||
|
remove_from_activity = involved_activity
|
||||||
|
}
|
||||||
|
|
||||||
|
current_travel_plan ?= {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
travel_plan_owner = root
|
||||||
|
}
|
||||||
|
abort_travel_plan = yes
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
remove_character = root
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
has_character_flag = travel_option_added_character
|
||||||
|
}
|
||||||
|
remove_character_flag = travel_option_added_character
|
||||||
|
}
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = { has_character_modifier = gaining_weight_modifier }
|
||||||
|
remove_character_modifier = gaining_weight_modifier
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_character_modifier = losing_weight_modifier }
|
||||||
|
remove_character_modifier = losing_weight_modifier
|
||||||
|
}
|
||||||
|
if = { # from event hold_court.6140
|
||||||
|
limit = {
|
||||||
|
scope:imprisoner = {
|
||||||
|
has_character_modifier = 6140_pet_modifier
|
||||||
|
OR = {
|
||||||
|
has_trait = torturer
|
||||||
|
has_trait = callous
|
||||||
|
has_trait = sadistic
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
add_character_modifier = 6140_animal_guardian_modifier
|
||||||
|
}
|
||||||
|
|
||||||
|
# Struggle Catalysts
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_important_or_vip_struggle_character = yes
|
||||||
|
any_character_struggle = {
|
||||||
|
involvement = involved
|
||||||
|
activate_struggle_catalyst_secondary_character_involvement_involved_trigger = {
|
||||||
|
CATALYST = catalyst_imprison_important
|
||||||
|
CHAR = scope:imprisoner
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
every_character_struggle = {
|
||||||
|
involvement = involved
|
||||||
|
limit = {
|
||||||
|
activate_struggle_catalyst_secondary_character_involvement_involved_trigger = {
|
||||||
|
CATALYST = catalyst_imprison_important
|
||||||
|
CHAR = scope:imprisoner
|
||||||
|
}
|
||||||
|
}
|
||||||
|
activate_struggle_catalyst = {
|
||||||
|
catalyst = catalyst_imprison_important
|
||||||
|
character = scope:imprisoner
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
has_trait = fp3_struggle_supporter
|
||||||
|
any_character_struggle = {
|
||||||
|
activate_struggle_catalyst_secondary_character_involvement_either_trigger = {
|
||||||
|
CATALYST = catalyst_imprison_supporter
|
||||||
|
CHAR = scope:imprisoner
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
every_character_struggle = {
|
||||||
|
limit = {
|
||||||
|
activate_struggle_catalyst_secondary_character_involvement_either_trigger = {
|
||||||
|
CATALYST = catalyst_imprison_supporter
|
||||||
|
CHAR = scope:imprisoner
|
||||||
|
}
|
||||||
|
}
|
||||||
|
activate_struggle_catalyst = {
|
||||||
|
catalyst = catalyst_imprison_supporter
|
||||||
|
character = scope:imprisoner
|
||||||
|
}
|
||||||
|
log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_imprison_supporter }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
has_trait = fp3_struggle_detractor
|
||||||
|
any_character_struggle = {
|
||||||
|
activate_struggle_catalyst_secondary_character_involvement_either_trigger = {
|
||||||
|
CATALYST = catalyst_imprison_detractor
|
||||||
|
CHAR = scope:imprisoner
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
every_character_struggle = {
|
||||||
|
limit = {
|
||||||
|
activate_struggle_catalyst_secondary_character_involvement_either_trigger = {
|
||||||
|
CATALYST = catalyst_imprison_detractor
|
||||||
|
CHAR = scope:imprisoner
|
||||||
|
}
|
||||||
|
}
|
||||||
|
activate_struggle_catalyst = {
|
||||||
|
catalyst = catalyst_imprison_detractor
|
||||||
|
character = scope:imprisoner
|
||||||
|
}
|
||||||
|
log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_imprison_detractor }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
has_pam_dlc_trigger = yes
|
||||||
|
any_held_title = { is_head_of_faith = yes }
|
||||||
|
scope:imprisoner = {
|
||||||
|
religion = religion:christianity_religion
|
||||||
|
any_character_situation = {
|
||||||
|
situation_type = the_christian_church
|
||||||
|
situation_top_has_catalyst = catalyst_the_christian_church_ruler_imprisons_head_of_faith
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
situation:the_christian_church = {
|
||||||
|
trigger_situation_catalyst = catalyst_the_christian_church_ruler_imprisons_head_of_faith
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#Guelphs & Ghibellines
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
OR = {
|
||||||
|
is_guelph_leader_trigger = yes
|
||||||
|
is_ghibelline_leader_trigger = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
gg_triggered_catalyst_effect = {
|
||||||
|
ACTOR = scope:imprisoner
|
||||||
|
RECIPIENT = root
|
||||||
|
CATALYST = catalyst_gg_leader_imprisoned
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Memory system
|
||||||
|
create_character_memory = {
|
||||||
|
type = imprisoned
|
||||||
|
participants = { imprisoner = scope:imprisoner }
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_adult = no
|
||||||
|
}
|
||||||
|
scope:new_memory = {
|
||||||
|
set_variable = childhood_memory
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
has_bp2_dlc_trigger = yes
|
||||||
|
is_adult = yes
|
||||||
|
any_memory = {
|
||||||
|
memory_type = imprisoned
|
||||||
|
has_variable = childhood_memory
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_event = {
|
||||||
|
id = bp2_yearly.4031
|
||||||
|
days = 10
|
||||||
|
}
|
||||||
|
} #You were imprisoned as a child, and guess what? You are imprisoned as an adult. Congratulations!
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
OR = {
|
||||||
|
is_of_major_interest_trigger = { CHARACTER = scope:imprisoner }
|
||||||
|
AND = {
|
||||||
|
exists = scope:imprisoner.primary_title.tier
|
||||||
|
highest_held_title_tier >= scope:imprisoner.primary_title.tier
|
||||||
|
}
|
||||||
|
highest_held_title_tier >= tier_kingdom
|
||||||
|
}
|
||||||
|
}
|
||||||
|
root = { save_scope_as = prisoner_memory }
|
||||||
|
scope:imprisoner = { # We must buffer this memory via events, otherwise the imprisonment shows up before tyranny/faction wars end
|
||||||
|
trigger_event = error_suppression.0003
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = { # Set up so you can't banish realm priests, and so that they transfer their gold to the next realm priest if possible
|
||||||
|
limit = {
|
||||||
|
is_theocratic_lessee = yes
|
||||||
|
}
|
||||||
|
add_character_flag = realm_priest
|
||||||
|
save_scope_as = realm_priest_transfer
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
exists = liege
|
||||||
|
}
|
||||||
|
liege = {
|
||||||
|
trigger_event = {
|
||||||
|
days = 2 # Queued, so we can check the pulse in parallel
|
||||||
|
id = prison.8000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
has_bp2_dlc_trigger = yes
|
||||||
|
scope:imprisoner = {
|
||||||
|
any_memory = {
|
||||||
|
memory_type = relative_died
|
||||||
|
any_memory_participant = {
|
||||||
|
exists = this.killer
|
||||||
|
killer = {
|
||||||
|
is_imprisoned_by = root
|
||||||
|
}
|
||||||
|
}
|
||||||
|
has_variable = childhood_memory
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scope:imprisoner = {
|
||||||
|
trigger_event = {
|
||||||
|
id = bp2_yearly.4001
|
||||||
|
days = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
house ?= {
|
||||||
|
change_house_relation_effect = {
|
||||||
|
HOUSE = scope:imprisoner.house
|
||||||
|
VALUE = house_relation_damage_medium_value
|
||||||
|
REASON = imprisonment
|
||||||
|
CHAR = scope:imprisoner
|
||||||
|
TARGET_CHAR = root
|
||||||
|
TITLE = scope:dummy_gender
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Paiza
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
reverse_has_opinion_modifier = {
|
||||||
|
target = scope:imprisoner
|
||||||
|
modifier = gravely_abused_paiza_authority
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scope:imprisoner = {
|
||||||
|
add_character_flag = {
|
||||||
|
flag = paiza_abuse_punished
|
||||||
|
years = 15
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Charter
|
||||||
|
if = {
|
||||||
|
limit = { government_has_flag = government_is_merchant }
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
reverse_has_opinion_modifier = {
|
||||||
|
target = scope:imprisoner
|
||||||
|
modifier = gravely_abused_charter_authority_opinion
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scope:imprisoner = {
|
||||||
|
add_character_flag = {
|
||||||
|
flag = merchant_charter_abuse_punished
|
||||||
|
years = 50
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
suzerain ?= scope:imprisoner
|
||||||
|
}
|
||||||
|
# Destroy charters of imprisoned merchants
|
||||||
|
merchant_charter_destroy_held_charters_effect = {
|
||||||
|
MERCHANT = this
|
||||||
|
PATRON = scope:imprisoner
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Partner contracts
|
||||||
|
if = {
|
||||||
|
limit = { exists = var:partner_contract }
|
||||||
|
trade_opportunity_partner_invalidated_effect = { PARTNER = this }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
events = {
|
||||||
|
prison_notification.0001
|
||||||
|
stewardship_duty.1066 # You imprison your client and prevent them from working for you.
|
||||||
|
# NEOW 2555: event not loaded. bookmark.0003 # King Aella gets imprisoned by one of Ragnarr Lodbrok's sons
|
||||||
|
martial_authority.2052 # Right-Hand Person Imprisoned (by you)
|
||||||
|
martial_authority.2053 # Right-Hand Person Imprisoned (by someone else)
|
||||||
|
diarchy.0001 # You're forced into a regency
|
||||||
|
delay = {
|
||||||
|
days = { 1 180 }
|
||||||
|
}
|
||||||
|
diarchy.8021 # The AI captures their co-emperor.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Code on-action: character released from prison in root scope. Does not fire when "released" due to dying
|
||||||
|
# imprisoning character set as scope:imprisoner
|
||||||
|
on_release_from_prison = {
|
||||||
|
effect = {
|
||||||
|
# We give you a cool chapter if you escaped from prison lol
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
has_legend_chapter_trigger = { CHAPTER = extra_deed }
|
||||||
|
NOT = {
|
||||||
|
promoted_legend ?= {
|
||||||
|
has_legend_chapter = {
|
||||||
|
name = extra_deed
|
||||||
|
localization_key = legend_chapter_extra_deed_recent_imprisonment
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
random = {
|
||||||
|
chance = 75
|
||||||
|
send_interface_toast = {
|
||||||
|
title = legend_chapter_change_toast
|
||||||
|
left_icon = root
|
||||||
|
promoted_legend = {
|
||||||
|
set_legend_chapter = {
|
||||||
|
name = extra_deed
|
||||||
|
localization_key = legend_chapter_extra_deed_recent_imprisonment
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { # Uses flag to stop escape + release memories being created at same time
|
||||||
|
NOT = { has_character_flag = escaped_from_prison_flag }
|
||||||
|
}
|
||||||
|
create_character_memory = {
|
||||||
|
type = released_from_prison_memory
|
||||||
|
|
||||||
|
participants = {
|
||||||
|
imprisoner = scope:imprisoner
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# No prison, no problem.
|
||||||
|
if = {
|
||||||
|
limit = { has_character_modifier = gruesome_festivals_designated_sacrifice_fp1_modifier }
|
||||||
|
remove_character_modifier = gruesome_festivals_designated_sacrifice_fp1_modifier
|
||||||
|
}
|
||||||
|
if = { #from event hold_court.6140
|
||||||
|
limit = { has_character_modifier = 6140_animal_guardian_modifier }
|
||||||
|
remove_character_modifier = 6140_animal_guardian_modifier
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_character_flag = realm_priest }
|
||||||
|
remove_character_flag = realm_priest
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_character_flag = rival_on_exit_prison }
|
||||||
|
remove_character_flag = rival_on_exit_prison
|
||||||
|
|
||||||
|
# imprisoner has to still be valid and alive
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
scope:imprisoner ?= { is_alive = yes }
|
||||||
|
}
|
||||||
|
set_relation_rival_effect = {
|
||||||
|
TARGET = scope:imprisoner
|
||||||
|
REASON = rival_was_kept_in_jail
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_variable = imprisoned_by_diarch }
|
||||||
|
remove_variable = imprisoned_by_diarch
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_character_flag = being_prisonbroken_by_laamp }
|
||||||
|
remove_character_flag = being_prisonbroken_by_laamp
|
||||||
|
}
|
||||||
|
scope:imprisoner ?= {
|
||||||
|
gdp_clear_indicted_character_effect = { TARGET = root }
|
||||||
|
}
|
||||||
|
# Struggle bonus
|
||||||
|
}
|
||||||
|
|
||||||
|
events = {
|
||||||
|
prison.0001 # Remove imprisoned_me modifier, consume imprisonment reasons the imprisoner had
|
||||||
|
prison_notification.2001
|
||||||
|
intrigue_dread.4010 # Interrupts this event chain for the imprisoner when their prisoner is freed.
|
||||||
|
human_sacrifice.0003 # Is the character marked for human sacrifice?
|
||||||
|
martial_authority.2054 # Right-hand wo/man released
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
################
|
||||||
|
# MAINTENANCE
|
||||||
|
################
|
||||||
|
quarterly_prison_maintenance_pulse = {
|
||||||
|
trigger = {
|
||||||
|
any_prisoner = { }
|
||||||
|
}
|
||||||
|
effect = { #Fire the correct events for all prisoners
|
||||||
|
every_prisoner = {
|
||||||
|
limit = {
|
||||||
|
is_in_prison_type = house_arrest
|
||||||
|
}
|
||||||
|
trigger_event = {
|
||||||
|
days = 1 # Queued, so we can check the pulse in parallel
|
||||||
|
on_action = house_arrest_ongoing
|
||||||
|
}
|
||||||
|
}
|
||||||
|
every_prisoner = {
|
||||||
|
limit = {
|
||||||
|
is_in_prison_type = dungeon
|
||||||
|
}
|
||||||
|
trigger_event = {
|
||||||
|
days = 1 # Queued, so we can check the pulse in parallel
|
||||||
|
on_action = dungeon_ongoing
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
########
|
||||||
|
#Dungeon on_actions
|
||||||
|
########
|
||||||
|
dungeon_ongoing = {
|
||||||
|
trigger = {
|
||||||
|
exists = imprisoner #Don't fire if we've been released since the on_action was called.
|
||||||
|
}
|
||||||
|
|
||||||
|
random_events = {
|
||||||
|
chance_to_happen = 50
|
||||||
|
500 = 0
|
||||||
|
100 = dungeon_ongoing.0001 #Crazy neighbor bothers you
|
||||||
|
200 = dungeon_ongoing.0002 #Wait patiently - or not
|
||||||
|
100 = dungeon_ongoing.0003 #Guards threaten you with violence
|
||||||
|
200 = dungeon_ongoing.0004 #A wound becomes infected
|
||||||
|
50 = dungeon_ongoing.0005 #Infection passes
|
||||||
|
200 = dungeon_ongoing.0006 #Prison has low standards - unless you are Content
|
||||||
|
100 = dungeon_ongoing.0007 #It is terrible to be Ambitious and in prison
|
||||||
|
100 = dungeon_ongoing.0008 #Impatient, and have stayed in the dungeon "forever"
|
||||||
|
100 = dungeon_ongoing.0009 #You prison pet is there to comfort you
|
||||||
|
100 = dungeon_ongoing.0010 #Write to a relative asking for help
|
||||||
|
100 = dungeon_ongoing.0015 #A friend or relative pays your ransom
|
||||||
|
100 = dungeon_ongoing.9006 #You can't afford ransom and barter for release
|
||||||
|
|
||||||
|
#Long-term imprisonment events:
|
||||||
|
500 = dungeon_ongoing.9001 #Become ill
|
||||||
|
500 = dungeon_ongoing.9002 #Become pneumonic
|
||||||
|
500 = dungeon_ongoing.9003 #Gain stress
|
||||||
|
500 = dungeon_ongoing.9004 #Gain stress
|
||||||
|
500 = dungeon_ongoing.9005 #Prison Pet Dies
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#######
|
||||||
|
# House Arrest on_actions
|
||||||
|
#######
|
||||||
|
house_arrest_ongoing = {
|
||||||
|
trigger = {
|
||||||
|
exists = imprisoner #Don't fire if we've been released since the on_action was called.
|
||||||
|
}
|
||||||
|
|
||||||
|
random_events = {
|
||||||
|
100 = house_arrest_ongoing.0001 #To be ambitious is terrible
|
||||||
|
100 = house_arrest_ongoing.0002 #To be arrogant is terrible
|
||||||
|
100 = house_arrest_ongoing.0003 #Missing love ones
|
||||||
|
100 = house_arrest_ongoing.0004 #Friend at court helps you
|
||||||
|
100 = house_arrest_ongoing.0005 #Rival at court is a nuisance
|
||||||
|
100 = dungeon_ongoing.0010 #Write to a relative asking for help
|
||||||
|
100 = dungeon_ongoing.0015 #A friend or relative pays your ransom
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#########
|
||||||
|
# Escape from prison (attempt)
|
||||||
|
#########
|
||||||
|
escape_from_prison = {
|
||||||
|
events = {
|
||||||
|
prison.9000
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
escape_from_prison_success = {
|
||||||
|
random_events = {
|
||||||
|
1 = prison.9001 #You escaped!
|
||||||
|
100 = prison.9002 #You escaped thanks to your prison pet
|
||||||
|
100 = prison.9003 #You escape with friend or close family member
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
escape_from_prison_failure = {
|
||||||
|
random_events = {
|
||||||
|
10 = prison.9501 #You're still stuck, buttercup... :(
|
||||||
|
100 = prison.9502 #You and your prison pet failed
|
||||||
|
100 = prison.9503 #Your friend or close family member leave you behind
|
||||||
|
200 = fp1_shieldmaiden.0011 #Your imprisoner's shieldmaiden stymies your escape.
|
||||||
|
50 = prison.9504 #Rival sabotages escape
|
||||||
|
5 = prison.9505 #Become wounded
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2,6 +2,32 @@
|
||||||
# scope:character: The character that paid for the construction, if available
|
# scope:character: The character that paid for the construction, if available
|
||||||
on_building_completed = {
|
on_building_completed = {
|
||||||
effect = {
|
effect = {
|
||||||
|
# Notify the merchant who sponsored this construction, if any
|
||||||
|
if = {
|
||||||
|
limit = { has_variable = merchant_construction_sponsor }
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
var:merchant_construction_sponsor ?= { is_alive = yes }
|
||||||
|
}
|
||||||
|
barony = { save_scope_as = barony }
|
||||||
|
var:merchant_construction_sponsor = {
|
||||||
|
send_interface_message = {
|
||||||
|
type = msg_sponsored_building_done
|
||||||
|
title = merchant_sponsor_construction_complete_title
|
||||||
|
desc = merchant_sponsor_construction_complete_desc
|
||||||
|
right_icon = scope:barony
|
||||||
|
add_trait_xp = {
|
||||||
|
trait = lifestyle_merchant
|
||||||
|
track = artisan
|
||||||
|
value = merchant_sponsor_construction_xp_value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
remove_variable = merchant_construction_sponsor
|
||||||
|
remove_variable = merchant_construction_cost
|
||||||
|
}
|
||||||
|
|
||||||
# Bonus only come with buildings acctually constructed by you
|
# Bonus only come with buildings acctually constructed by you
|
||||||
scope:character ?= {
|
scope:character ?= {
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -50,7 +76,7 @@ on_building_completed = {
|
||||||
title = building_temples_gives_development_toast
|
title = building_temples_gives_development_toast
|
||||||
left_icon = root.county
|
left_icon = root.county
|
||||||
root.county = {
|
root.county = {
|
||||||
change_development_progress_with_overflow = minor_development_progress_gain
|
change_prosperity_progress_with_overflow = minor_prosperity_progress_gain
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = dev_gain_cooldown
|
name = dev_gain_cooldown
|
||||||
value = yes
|
value = yes
|
||||||
|
|
@ -73,7 +99,7 @@ on_building_completed = {
|
||||||
title = tenet_pentarchy_development_growth_in_holy_sites_toast
|
title = tenet_pentarchy_development_growth_in_holy_sites_toast
|
||||||
left_icon = scope:character
|
left_icon = scope:character
|
||||||
root.county = {
|
root.county = {
|
||||||
change_development_progress_with_overflow = medium_development_progress_gain
|
change_prosperity_progress_with_overflow = medium_prosperity_progress_gain
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = dev_gain_cooldown
|
name = dev_gain_cooldown
|
||||||
value = yes
|
value = yes
|
||||||
|
|
@ -91,7 +117,7 @@ on_building_completed = {
|
||||||
NOT = { county = { has_variable = dev_gain_cooldown } }
|
NOT = { county = { has_variable = dev_gain_cooldown } }
|
||||||
}
|
}
|
||||||
county = {
|
county = {
|
||||||
change_development_progress_with_overflow = 25
|
change_prosperity_progress_with_overflow = 25
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = dev_gain_cooldown
|
name = dev_gain_cooldown
|
||||||
value = yes
|
value = yes
|
||||||
|
|
@ -244,14 +270,14 @@ on_building_completed = {
|
||||||
random = {
|
random = {
|
||||||
chance = 10
|
chance = 10
|
||||||
modifier = {
|
modifier = {
|
||||||
add = county.development_level
|
add = county.prosperity_level
|
||||||
}
|
}
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = number_prestigious_new_guests
|
name = number_prestigious_new_guests
|
||||||
value = 1
|
value = 1
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = { county.development_level >= max_development_level }
|
limit = { county.prosperity_level >= max_prosperity_level }
|
||||||
|
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = holding_quality
|
name = holding_quality
|
||||||
|
|
@ -259,28 +285,28 @@ on_building_completed = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = { county.development_level >= great_development_level }
|
limit = { county.prosperity_level >= great_prosperity_level }
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = holding_quality
|
name = holding_quality
|
||||||
value = 3
|
value = 3
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = { county.development_level >= good_development_level }
|
limit = { county.prosperity_level >= good_prosperity_level }
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = holding_quality
|
name = holding_quality
|
||||||
value = 2
|
value = 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = { county.development_level >= medium_development_level }
|
limit = { county.prosperity_level >= medium_prosperity_level }
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = holding_quality
|
name = holding_quality
|
||||||
value = 2
|
value = 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = { county.development_level >= bad_development_level }
|
limit = { county.prosperity_level >= bad_prosperity_level }
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = holding_quality
|
name = holding_quality
|
||||||
value = 1
|
value = 1
|
||||||
|
|
@ -317,7 +343,7 @@ on_building_completed = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
county = { change_development_progress_with_overflow = 10 }
|
county = { change_prosperity_progress_with_overflow = 10 }
|
||||||
}
|
}
|
||||||
|
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -552,7 +578,7 @@ on_building_completed = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
county = { change_development_progress = minor_development_progress_gain }
|
county = { change_prosperity_progress = minor_prosperity_progress_gain }
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
scope:character ?= { has_character_modifier = the_city_builder_modifier }
|
scope:character ?= { has_character_modifier = the_city_builder_modifier }
|
||||||
|
|
@ -903,6 +929,21 @@ on_building_cancelled = {
|
||||||
limit = { has_variable = pam_temple_holding_under_construction }
|
limit = { has_variable = pam_temple_holding_under_construction }
|
||||||
remove_variable = pam_temple_holding_under_construction
|
remove_variable = pam_temple_holding_under_construction
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_variable = merchant_construction_sponsor }
|
||||||
|
barony = { save_scope_as = barony }
|
||||||
|
var:merchant_construction_sponsor = {
|
||||||
|
send_interface_toast = {
|
||||||
|
type = event_toast_effect_neutral
|
||||||
|
title = merchant_sponsor_construction_cancel_title
|
||||||
|
left_icon = scope:character
|
||||||
|
right_icon = scope:barony
|
||||||
|
add_short_term_gold = root.var:merchant_construction_cost
|
||||||
|
}
|
||||||
|
}
|
||||||
|
remove_variable = merchant_construction_sponsor
|
||||||
|
remove_variable = merchant_construction_cost
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -916,17 +957,17 @@ on_holding_razed = {
|
||||||
left_icon = scope:province.barony
|
left_icon = scope:province.barony
|
||||||
add_gold = {
|
add_gold = {
|
||||||
value = minor_gold_value
|
value = minor_gold_value
|
||||||
add = scope:province.county.development_level
|
add = scope:province.county.prosperity_level
|
||||||
}
|
}
|
||||||
scope:province = {
|
scope:province = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
this = county.title_province
|
this = county.title_province
|
||||||
county.development_level >= 1
|
county.prosperity_level >= 1
|
||||||
}
|
}
|
||||||
county = {
|
county = {
|
||||||
change_development_progress_with_overflow = {
|
change_prosperity_progress_with_overflow = {
|
||||||
value = scope:province.county.development_level
|
value = scope:province.county.prosperity_level
|
||||||
multiply = 10
|
multiply = 10
|
||||||
multiply = -1
|
multiply = -1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,7 @@ on_faith_created = {
|
||||||
limit = { faith = root }
|
limit = { faith = root }
|
||||||
pam_on_conversion_effect = yes
|
pam_on_conversion_effect = yes
|
||||||
remove_character_modifier = religious_reformer_modifier
|
remove_character_modifier = religious_reformer_modifier
|
||||||
|
gdp_update_usury_reputation_effect = yes
|
||||||
# If you have a legend maybe we change it?
|
# If you have a legend maybe we change it?
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -260,7 +261,7 @@ on_faith_created = {
|
||||||
# if = {
|
# if = {
|
||||||
# limit = {
|
# limit = {
|
||||||
# exists = situation:the_christian_church
|
# exists = situation:the_christian_church
|
||||||
# religion = religion:christianity_religion
|
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
# }
|
# }
|
||||||
# root.main_rite.head_of_rite ?= { recalculate_participant_group = situation:the_christian_church }
|
# root.main_rite.head_of_rite ?= { recalculate_participant_group = situation:the_christian_church }
|
||||||
# }
|
# }
|
||||||
|
|
@ -777,6 +778,7 @@ on_faith_conversion = {
|
||||||
pam_on_conversion_effect = yes
|
pam_on_conversion_effect = yes
|
||||||
pam_remove_forbidden_personal_tenet_secret_if_invalid_effect = yes
|
pam_remove_forbidden_personal_tenet_secret_if_invalid_effect = yes
|
||||||
update_syncretism_personal_tenet_effect = yes
|
update_syncretism_personal_tenet_effect = yes
|
||||||
|
gdp_update_usury_reputation_effect = yes
|
||||||
# EP3 - State Faith
|
# EP3 - State Faith
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -1144,9 +1146,9 @@ on_rite_change = {
|
||||||
# limit = {
|
# limit = {
|
||||||
# highest_held_title_tier >= tier_county
|
# highest_held_title_tier >= tier_county
|
||||||
# scope:old_faith ?= {
|
# scope:old_faith ?= {
|
||||||
# religion = religion:christianity_religion
|
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
# }
|
# }
|
||||||
# religion != religion:christianity_religion
|
# NOR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
# situation:the_christian_church ?= {
|
# situation:the_christian_church ?= {
|
||||||
# situation_top_has_catalyst = catalyst_the_christian_church_ruler_converted_from_christianity
|
# situation_top_has_catalyst = catalyst_the_christian_church_ruler_converted_from_christianity
|
||||||
# }
|
# }
|
||||||
|
|
@ -1159,9 +1161,9 @@ on_rite_change = {
|
||||||
# limit = {
|
# limit = {
|
||||||
# highest_held_title_tier >= tier_county
|
# highest_held_title_tier >= tier_county
|
||||||
# scope:old_faith ?= {
|
# scope:old_faith ?= {
|
||||||
# religion != religion:christianity_religion
|
# NOR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
# }
|
# }
|
||||||
# religion = religion:christianity_religion
|
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
# situation:the_christian_church ?= {
|
# situation:the_christian_church ?= {
|
||||||
# situation_top_has_catalyst = catalyst_the_christian_church_ruler_converted_to_christianity
|
# situation_top_has_catalyst = catalyst_the_christian_church_ruler_converted_to_christianity
|
||||||
# }
|
# }
|
||||||
|
|
@ -1590,7 +1592,7 @@ pagan_conversion_pulse = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
capital_province.county = {
|
capital_province.county = {
|
||||||
development_level >= 7 #lower than the regular requirement to make sure some rulers can convert
|
prosperity_level >= 7 #lower than the regular requirement to make sure some rulers can convert
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_else_if = {
|
trigger_else_if = {
|
||||||
|
|
@ -1598,12 +1600,12 @@ pagan_conversion_pulse = {
|
||||||
current_date <= 1000.1.1
|
current_date <= 1000.1.1
|
||||||
}
|
}
|
||||||
capital_province.county = {
|
capital_province.county = {
|
||||||
development_level >= 6 #lower than the regular requirement to make sure some rulers can convert
|
prosperity_level >= 6 #lower than the regular requirement to make sure some rulers can convert
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_else = {
|
trigger_else = {
|
||||||
capital_province.county = {
|
capital_province.county = {
|
||||||
development_level >= 5 #lower than the regular requirement to make sure some rulers can convert
|
prosperity_level >= 5 #lower than the regular requirement to make sure some rulers can convert
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1629,7 +1631,7 @@ pagan_conversion_pulse = {
|
||||||
}
|
}
|
||||||
|
|
||||||
events = {
|
events = {
|
||||||
global_religion.0001 #Pagan reformed by neighbor, spouse, soulmate, friend, or geographic location
|
# NEOW 2555: event not loaded. global_religion.0001 #Pagan reformed by neighbor, spouse, soulmate, friend, or geographic location
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2027,3 +2029,156 @@ on_character_holy_site_created = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
on_rite_updated = {
|
||||||
|
events = {
|
||||||
|
}
|
||||||
|
|
||||||
|
effect = {
|
||||||
|
root = {
|
||||||
|
save_scope_as = rite
|
||||||
|
}
|
||||||
|
every_in_global_list = {
|
||||||
|
variable = merchants_tally
|
||||||
|
limit = {
|
||||||
|
holder ?= {
|
||||||
|
rite = scope:rite
|
||||||
|
}
|
||||||
|
}
|
||||||
|
holder = {
|
||||||
|
gdp_update_usury_reputation_effect = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if = { # slient it for EC since EC has unique event to inform
|
||||||
|
limit = {
|
||||||
|
exists = scope:changed_tenets_or_doctrines
|
||||||
|
OR = {
|
||||||
|
NOT = {
|
||||||
|
faith = { has_variable = ecumenical_council_ongoing }
|
||||||
|
}
|
||||||
|
exists = scope:consume_rite_edit_token
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# The message icon slot must never be left unset, hence the fall-through to the rite itself
|
||||||
|
if = {
|
||||||
|
limit = { any_in_list = { list = added_tenets count >= 1 } }
|
||||||
|
every_in_list = {
|
||||||
|
list = added_tenets
|
||||||
|
save_scope_as = rite_change_icon
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { any_in_list = { list = added_doctrines count >= 1 } }
|
||||||
|
every_in_list = {
|
||||||
|
list = added_doctrines
|
||||||
|
save_scope_as = rite_change_icon
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { any_in_list = { list = removed_tenets count >= 1 } }
|
||||||
|
every_in_list = {
|
||||||
|
list = removed_tenets
|
||||||
|
save_scope_as = rite_change_icon
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { any_in_list = { list = removed_doctrines count >= 1 } }
|
||||||
|
every_in_list = {
|
||||||
|
list = removed_doctrines
|
||||||
|
save_scope_as = rite_change_icon
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { any_in_list = { list = changed_tenet_status count >= 1 } }
|
||||||
|
every_in_list = {
|
||||||
|
list = changed_tenet_status
|
||||||
|
save_scope_as = rite_change_icon
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
root = { save_scope_as = rite_change_icon }
|
||||||
|
}
|
||||||
|
|
||||||
|
every_player = {
|
||||||
|
limit = {
|
||||||
|
OR = {
|
||||||
|
rite = root
|
||||||
|
AND = {
|
||||||
|
faith = root.faith
|
||||||
|
root.faith.main_rite = root
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
send_interface_message = {
|
||||||
|
type = msg_rite_updated
|
||||||
|
title = msg_rite_updated
|
||||||
|
left_icon = scope:rite_change_icon
|
||||||
|
|
||||||
|
show_as_tooltip = {
|
||||||
|
every_in_list = {
|
||||||
|
list = removed_doctrines
|
||||||
|
root = { remove_rite_doctrine = prev }
|
||||||
|
}
|
||||||
|
every_in_list = {
|
||||||
|
list = added_doctrines
|
||||||
|
root = { add_rite_doctrine = prev }
|
||||||
|
}
|
||||||
|
every_in_list = {
|
||||||
|
list = removed_tenets
|
||||||
|
root = { remove_rite_tenet = prev }
|
||||||
|
}
|
||||||
|
every_in_list = {
|
||||||
|
list = added_tenets
|
||||||
|
root = { add_rite_tenet = prev }
|
||||||
|
}
|
||||||
|
every_in_list = {
|
||||||
|
list = changed_tenet_status
|
||||||
|
save_temporary_scope_as = tenet
|
||||||
|
root = {
|
||||||
|
if = {
|
||||||
|
limit = { has_tenet_status = { tenet = scope:tenet status = permitted } }
|
||||||
|
faith = { set_tenet_status = { tenet = scope:tenet status = permitted } }
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { has_tenet_status = { tenet = scope:tenet status = prohibited } }
|
||||||
|
faith = { set_tenet_status = { tenet = scope:tenet status = prohibited } }
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { has_tenet_status = { tenet = scope:tenet status = known } }
|
||||||
|
faith = { set_tenet_status = { tenet = scope:tenet status = known } }
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { has_tenet_status = { tenet = scope:tenet status = unknown } }
|
||||||
|
faith = { set_tenet_status = { tenet = scope:tenet status = unknown } }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pam_personal_tenet_rite_update_fulfillment_effect = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
head_of_rite ?= {
|
||||||
|
trigger_event = faith_creation.0004 # Update HoF succession law
|
||||||
|
trigger_event = faith_creation.0001 # Temporal rel head setup
|
||||||
|
trigger_event = faith_creation.0002 # Spiritual rel head setup
|
||||||
|
trigger_event = faith_creation.0011 # Restore Temporal rel head
|
||||||
|
trigger_event = faith_creation.0012 # Restore Spiritual rel head
|
||||||
|
trigger_event = faith_creation.1100 # Destroy HoF title if no longer valid
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
exists = scope:changed_tenets_or_doctrines
|
||||||
|
exists = scope:consume_rite_edit_token
|
||||||
|
}
|
||||||
|
set_variable = {
|
||||||
|
name = has_edited_a_rite
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
#On actions handling the Roman Restoration notification events.
|
||||||
|
|
||||||
|
on_action_roman_restoration_pulse = {
|
||||||
|
trigger = {
|
||||||
|
roman_restoration_is_valid_roman_empire_trigger = yes
|
||||||
|
NOT = { has_ep3_dlc_trigger = yes }
|
||||||
|
}
|
||||||
|
events = {
|
||||||
|
#Restored Roman Provinces events.
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0010
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0011
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0012
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0013
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0014
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0015
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0016
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0017
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0018
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0019
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0020
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0021
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0022
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0023
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0024
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
on_action_orthodox_pentarchy_pulse = {
|
||||||
|
trigger = {
|
||||||
|
NOT = { has_ep3_dlc_trigger = yes }
|
||||||
|
}
|
||||||
|
events = {
|
||||||
|
#Byzantines restoring the Pentarchy.
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0104
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0105
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0106
|
||||||
|
# NEOW 2555: event not loaded. roman_restoration.0107
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -239,7 +239,7 @@ on_title_destroyed = {
|
||||||
# limit = {
|
# limit = {
|
||||||
# scope:landed_title = {
|
# scope:landed_title = {
|
||||||
# has_clerical_region = yes
|
# has_clerical_region = yes
|
||||||
# root = { religion = religion:christianity_religion }
|
# root = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } }
|
||||||
# }
|
# }
|
||||||
# }
|
# }
|
||||||
# situation:the_christian_church.situation_sub_region:core = {
|
# situation:the_christian_church.situation_sub_region:core = {
|
||||||
|
|
@ -254,6 +254,10 @@ on_title_destroyed = {
|
||||||
# scope:title = the title that changes hands
|
# scope:title = the title that changes hands
|
||||||
# scope:previous_holder = previous holder. Might be dead
|
# scope:previous_holder = previous holder. Might be dead
|
||||||
on_title_gain = {
|
on_title_gain = {
|
||||||
|
on_actions = {
|
||||||
|
gdp_league_focus_on_title_gain
|
||||||
|
}
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -305,23 +309,48 @@ on_title_gain = {
|
||||||
if = {
|
if = {
|
||||||
limit = { clerical_elector_title ?= scope:title }
|
limit = { clerical_elector_title ?= scope:title }
|
||||||
pam_strip_illegal_cardinalate_effect = yes
|
pam_strip_illegal_cardinalate_effect = yes
|
||||||
|
if = {
|
||||||
|
limit = { clerical_elector_title ?= scope:title }
|
||||||
|
add_character_flag = cardinal_flag
|
||||||
|
situation:the_christian_church ?= {
|
||||||
|
add_manual_participant = prev
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# Also catches a sitting Head of Faith who is handed a cardinalate
|
||||||
|
pam_vacate_head_of_faith_cardinalate_effect = yes
|
||||||
|
}
|
||||||
|
# A cardinal handed the Church seat must vacate the cardinalate
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
scope:title = {
|
||||||
|
OR = {
|
||||||
|
is_head_of_faith = yes
|
||||||
|
this = title:k_papal_state
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pam_vacate_head_of_faith_cardinalate_effect = yes
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
exists = clerical_elector_title
|
scope:transfer_type = flag:election
|
||||||
scope:title = clerical_elector_title
|
government_has_flag = government_is_republic
|
||||||
}
|
}
|
||||||
add_character_flag = cardinal_flag
|
scope:title = {
|
||||||
situation:the_christian_church ?= {
|
every_full_assembly_member = {
|
||||||
add_manual_participant = prev
|
if = {
|
||||||
}
|
limit = {
|
||||||
}
|
has_character_modifier = gdp_popular_mandate_modifier
|
||||||
# Unconditional: also catches a sitting Head of Faith who is handed a cardinalate
|
}
|
||||||
pam_vacate_head_of_faith_cardinalate_effect = yes
|
remove_character_modifier = gdp_popular_mandate_modifier
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
scope:title = { has_clerical_region = yes }
|
scope:title = { has_clerical_region = yes }
|
||||||
religion = religion:christianity_religion
|
OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
}
|
}
|
||||||
situation:the_christian_church ?= {
|
situation:the_christian_church ?= {
|
||||||
add_manual_participant = prev
|
add_manual_participant = prev
|
||||||
|
|
@ -334,7 +363,7 @@ on_title_gain = {
|
||||||
scope:transfer_type = flag:inheritance
|
scope:transfer_type = flag:inheritance
|
||||||
scope:transfer_type = flag:appointment_succession
|
scope:transfer_type = flag:appointment_succession
|
||||||
}
|
}
|
||||||
religion = religion:christianity_religion
|
OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
OR = {
|
OR = {
|
||||||
scope:title = { has_clerical_region = yes }
|
scope:title = { has_clerical_region = yes }
|
||||||
scope:title = { has_title_law = clerical_appointment_law }
|
scope:title = { has_title_law = clerical_appointment_law }
|
||||||
|
|
@ -359,7 +388,7 @@ on_title_gain = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
pam_government_is_religious_playable_trigger = yes
|
pam_government_is_religious_playable_trigger = yes
|
||||||
religion != religion:christianity_religion
|
NOR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
NOT = { exists = primary_heir }
|
NOT = { exists = primary_heir }
|
||||||
}
|
}
|
||||||
pam_seed_monk_courtiers_effect = yes
|
pam_seed_monk_courtiers_effect = yes
|
||||||
|
|
@ -443,7 +472,7 @@ on_title_gain = {
|
||||||
# The challenger registers only after the title change
|
# The challenger registers only after the title change
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
religion = religion:christianity_religion
|
OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
pam_title_is_church_seat_trigger = { TITLE = scope:title }
|
pam_title_is_church_seat_trigger = { TITLE = scope:title }
|
||||||
}
|
}
|
||||||
pam_family_becomes_prelate_effect = {
|
pam_family_becomes_prelate_effect = {
|
||||||
|
|
@ -453,7 +482,7 @@ on_title_gain = {
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
religion = religion:christianity_religion
|
OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
scope:title = { has_clerical_region = yes }
|
scope:title = { has_clerical_region = yes }
|
||||||
NOT = {
|
NOT = {
|
||||||
any_held_title = {
|
any_held_title = {
|
||||||
|
|
@ -472,7 +501,7 @@ on_title_gain = {
|
||||||
pam_the_christian_church_clergy_gained_landed_title_catalyst_effect = yes
|
pam_the_christian_church_clergy_gained_landed_title_catalyst_effect = yes
|
||||||
#if = {
|
#if = {
|
||||||
# limit = {
|
# limit = {
|
||||||
# religion = religion:christianity_religion
|
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
# scope:title = { has_clerical_region = yes }
|
# scope:title = { has_clerical_region = yes }
|
||||||
# exists = scope:previous_holder
|
# exists = scope:previous_holder
|
||||||
# }
|
# }
|
||||||
|
|
@ -2489,7 +2518,10 @@ on_title_gain = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
is_governor = yes
|
is_governor = yes
|
||||||
NOT = { has_trait = governor }
|
NOR = {
|
||||||
|
has_trait = governor
|
||||||
|
has_character_flag = gdp_founding_republic
|
||||||
|
}
|
||||||
scope:title = {
|
scope:title = {
|
||||||
tier >= root.main_administrative_tier
|
tier >= root.main_administrative_tier
|
||||||
}
|
}
|
||||||
|
|
@ -2919,6 +2951,41 @@ on_title_gain = {
|
||||||
scope:title = { update_dynamic_coa = yes }
|
scope:title = { update_dynamic_coa = yes }
|
||||||
|
|
||||||
### MEMORIES - SHOULD STAY AT BOTTOM ###
|
### MEMORIES - SHOULD STAY AT BOTTOM ###
|
||||||
|
# Creation effects stash these on the character, as on_title_gain fires before they can set them on the title
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
exists = var:pending_adventurer_flavor_char
|
||||||
|
scope:title = { is_landless_type_title = yes }
|
||||||
|
NOT = { exists = scope:title.var:adventurer_flavor_char }
|
||||||
|
}
|
||||||
|
scope:title = {
|
||||||
|
set_variable = {
|
||||||
|
name = adventurer_creation_reason
|
||||||
|
value = root.var:pending_adventurer_creation_reason
|
||||||
|
}
|
||||||
|
set_variable = {
|
||||||
|
name = adventurer_flavor_char
|
||||||
|
value = root.var:pending_adventurer_flavor_char
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
exists = var:pending_merchant_flavor_char
|
||||||
|
scope:title = { gdp_merchant_company_title_trigger = yes }
|
||||||
|
NOT = { exists = scope:title.var:merchant_flavor_char }
|
||||||
|
}
|
||||||
|
scope:title = {
|
||||||
|
set_variable = {
|
||||||
|
name = merchant_creation_reason
|
||||||
|
value = root.var:pending_merchant_creation_reason
|
||||||
|
}
|
||||||
|
set_variable = {
|
||||||
|
name = merchant_flavor_char
|
||||||
|
value = root.var:pending_merchant_flavor_char
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
# Ascended to the throne
|
# Ascended to the throne
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -2968,6 +3035,45 @@ on_title_gain = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { exists = scope:title.var:merchant_flavor_char }
|
||||||
|
create_character_memory = {
|
||||||
|
type = became_merchant_memory
|
||||||
|
participants = {
|
||||||
|
flavor_character = scope:title.var:merchant_flavor_char
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#Only children should get childhood memories
|
||||||
|
if = {
|
||||||
|
limit = { is_adult = no }
|
||||||
|
scope:new_memory = { set_variable = childhood_memory }
|
||||||
|
}
|
||||||
|
scope:new_memory = {
|
||||||
|
save_scope_as = became_merchant_memory
|
||||||
|
set_variable = {
|
||||||
|
name = landless_title
|
||||||
|
value = scope:title
|
||||||
|
}
|
||||||
|
set_variable = {
|
||||||
|
name = reason
|
||||||
|
value = scope:transfer_type
|
||||||
|
}
|
||||||
|
set_variable = {
|
||||||
|
name = merchant_creation_reason
|
||||||
|
value = scope:title.var:merchant_creation_reason
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:lost_primary_title }
|
||||||
|
set_variable = {
|
||||||
|
name = old_primary_title
|
||||||
|
value = scope:lost_primary_title
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = { # Error suppression
|
||||||
|
limit = { exists = var:landless_title }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
else = {
|
else = {
|
||||||
# Overwrite if there is a more specific Reason
|
# Overwrite if there is a more specific Reason
|
||||||
root = {
|
root = {
|
||||||
|
|
@ -3324,9 +3430,9 @@ on_title_gain = {
|
||||||
# if = {
|
# if = {
|
||||||
# limit = {
|
# limit = {
|
||||||
# scope:title = title:c_jerusalem
|
# scope:title = title:c_jerusalem
|
||||||
# religion = religion:christianity_religion
|
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
# scope:previous_holder ?= {
|
# scope:previous_holder ?= {
|
||||||
# NOT = { religion = religion:christianity_religion }
|
# NOT = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } }
|
||||||
# }
|
# }
|
||||||
# NOR = {
|
# NOR = {
|
||||||
# scope:transfer_type = flag:created
|
# scope:transfer_type = flag:created
|
||||||
|
|
@ -3345,9 +3451,9 @@ on_title_gain = {
|
||||||
# limit = {
|
# limit = {
|
||||||
# scope:title.tier = tier_county
|
# scope:title.tier = tier_county
|
||||||
# NOT = { scope:title = title:c_jerusalem }
|
# NOT = { scope:title = title:c_jerusalem }
|
||||||
# religion = religion:christianity_religion
|
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
# scope:previous_holder ?= {
|
# scope:previous_holder ?= {
|
||||||
# NOT = { religion = religion:christianity_religion }
|
# NOT = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } }
|
||||||
# }
|
# }
|
||||||
# NOR = {
|
# NOR = {
|
||||||
# scope:transfer_type = flag:created
|
# scope:transfer_type = flag:created
|
||||||
|
|
@ -3409,22 +3515,72 @@ on_title_gain = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#########
|
||||||
|
# GDP #
|
||||||
|
#########
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
scope:title = { gdp_merchant_company_title_trigger = yes }
|
||||||
|
NOT = { has_trait = lifestyle_merchant }
|
||||||
|
government_has_flag = government_is_merchant # exclude patricians
|
||||||
|
}
|
||||||
|
add_trait = lifestyle_merchant
|
||||||
|
}
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
has_gdp_dlc_trigger = yes
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { scope:title = { is_noble_family_title = yes } }
|
||||||
|
hanseatic_sync_family_head_benefits_effect = { CHARACTER = root }
|
||||||
|
scope:previous_holder ?= {
|
||||||
|
hanseatic_sync_family_head_benefits_effect = { CHARACTER = this }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
scope:title = {
|
||||||
|
tier = tier_county
|
||||||
|
is_noble_family_title = no
|
||||||
|
}
|
||||||
|
}
|
||||||
|
hanseatic_sync_county_benefits_effect = { COUNTY = scope:title }
|
||||||
|
}
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
scope:title = { is_landless_type_title = no }
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_trait = dealbreaker }
|
||||||
|
remove_trait = dealbreaker
|
||||||
|
}
|
||||||
|
every_secret = {
|
||||||
|
type = secret_dealbreaker
|
||||||
|
remove_secret = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
events = {
|
events = {
|
||||||
roman_restoration.0005 #New Roman Emperor gets Augustus trait. (old holder, if still alive, loses it)
|
# NEOW 2555: event not loaded. roman_restoration.0005 #New Roman Emperor gets Augustus trait. (old holder, if still alive, loses it)
|
||||||
roman_restoration.0199 #Restoring the Pentarchy.
|
# NEOW 2555: event not loaded. roman_restoration.0199 #Restoring the Pentarchy.
|
||||||
title_event.0021 # Rename/recolor Britannia based on founder's culture; applied immediately on creation
|
# NEOW 2555: event not loaded. title_event.0021 # Rename/recolor Britannia based on founder's culture; applied immediately on creation
|
||||||
delay = { days = 1 }
|
delay = { days = 1 }
|
||||||
NEOW_grant_title.001
|
# NEOW 2555: event not loaded. NEOW_grant_title.001
|
||||||
realm_maintenance.2001 #Big notification about inheriting emperor tier title
|
realm_maintenance.2001 #Big notification about inheriting emperor tier title
|
||||||
british_isles.1032 # Danelaw-England partition calc.
|
# NEOW 2555: event not loaded. british_isles.1032 # Danelaw-England partition calc.
|
||||||
title_event.0001 # Rename West Francia to France
|
# NEOW 2555: event not loaded. title_event.0001 # Rename West Francia to France
|
||||||
title_event.0002 # Rename East Francia to Germany
|
# NEOW 2555: event not loaded. title_event.0002 # Rename East Francia to Germany
|
||||||
title_event.0011 # Asturias becomes Leon upon emergence of Castille
|
# NEOW 2555: event not loaded. title_event.0011 # Asturias becomes Leon upon emergence of Castille
|
||||||
# If we weren't already in a diarchy but should be, put us in one.
|
# If we weren't already in a diarchy but should be, put us in one.
|
||||||
diarchy.0011
|
diarchy.0011
|
||||||
ep3_emperor_yearly.2020 # EP3: The Patriarch refuses to crown you as new emperor because you have a criminal trait
|
ep3_emperor_yearly.2020 # EP3: The Patriarch refuses to crown you as new emperor because you have a criminal trait
|
||||||
empire_faith_gate.0001 # Empire Faith Gate: contested-empire legitimacy on empire gain
|
empire_faith_gate.0001 # Empire Faith Gate: contested-empire legitimacy on empire gain
|
||||||
|
gdp_merchant_family.9010 # Merhcant child
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3475,30 +3631,22 @@ on_title_gain_inheritance = {
|
||||||
becomes_independent = { change = scope:change }
|
becomes_independent = { change = scope:change }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# if = {
|
|
||||||
# limit = {
|
#########
|
||||||
# scope:title = {
|
# GDP #
|
||||||
# OR = {
|
#########
|
||||||
# this = title:e_mongol_empire
|
gdp_merchant_patron_change_on_title_transfer_effect = yes
|
||||||
# AND = {
|
# CE3 achievement: Where There's a Will — inherited from the murdered cleric
|
||||||
# exists = global_var:greatest_of_khans_title
|
if = {
|
||||||
# this = global_var:greatest_of_khans_title
|
limit = {
|
||||||
# }
|
exists = var:ce3_will_victim
|
||||||
# }
|
scope:previous_holder ?= var:ce3_will_victim
|
||||||
# }
|
}
|
||||||
# has_character_flag = gain_mongol_succession_dread
|
add_achievement_global_variable_effect = {
|
||||||
# }
|
VARIABLE = ce3_13_where_theres_a_will_achievement_unlocked
|
||||||
# add_dread = 50
|
VALUE = yes
|
||||||
# }
|
}
|
||||||
# else_if = {
|
}
|
||||||
# limit = {
|
|
||||||
# OR = {
|
|
||||||
# scope:title = title:h_roman_empire
|
|
||||||
# scope:title = title:h_eastern_roman_empire
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
# set_variable = uses_custom_caesar_flavourization
|
|
||||||
# }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -3622,7 +3770,11 @@ on_title_gain_usurpation = {
|
||||||
# scope:new_holder = new holder.
|
# scope:new_holder = new holder.
|
||||||
on_title_lost = {
|
on_title_lost = {
|
||||||
events = {
|
events = {
|
||||||
british_isles.1033 # Danelaw-England partition calc.
|
# NEOW 2555: event not loaded. british_isles.1033 # Danelaw-England partition calc.
|
||||||
|
}
|
||||||
|
|
||||||
|
on_actions = {
|
||||||
|
gdp_league_focus_on_title_lost
|
||||||
}
|
}
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
|
|
@ -3874,6 +4026,31 @@ on_title_lost = {
|
||||||
# EP3 LAAMP SUPPORTER INVALIDATION
|
# EP3 LAAMP SUPPORTER INVALIDATION
|
||||||
ep3_laamp_supporter_invalidated_effect = yes
|
ep3_laamp_supporter_invalidated_effect = yes
|
||||||
|
|
||||||
|
# GDP REPUBLIC DESTRUCTION - last landed county lost
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
gdp_holds_republic_title_trigger = yes # title loser is a republic leader
|
||||||
|
scope:title = { # lost title is landed county
|
||||||
|
tier = tier_county
|
||||||
|
is_landless_type_title = no
|
||||||
|
is_noble_family_title = no
|
||||||
|
}
|
||||||
|
NOT = { # lost title is last held landed county
|
||||||
|
any_held_county = {
|
||||||
|
is_landless_type_title = no
|
||||||
|
is_noble_family_title = no
|
||||||
|
NOT = { this = scope:title }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
random_held_title = {
|
||||||
|
limit = { gdp_is_republic_title_trigger = yes }
|
||||||
|
save_scope_as = republic_title
|
||||||
|
}
|
||||||
|
# Destroy title - this triggers on_title_destroyed and on_vassal_change
|
||||||
|
scope:new_holder = { destroy_title = scope:republic_title }
|
||||||
|
}
|
||||||
|
|
||||||
# EP3 - Handle admin estates when they end up outside the realm
|
# EP3 - Handle admin estates when they end up outside the realm
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -4198,61 +4375,62 @@ on_title_lost = {
|
||||||
# BP3 - Inspector perks cleanup effect
|
# BP3 - Inspector perks cleanup effect
|
||||||
landless_inspector_cleanup_modifier = yes
|
landless_inspector_cleanup_modifier = yes
|
||||||
|
|
||||||
#End Greatest of Khans story if title was lost
|
# NEOW 2555: disabled Great Khan event has no live title-transfer hook.
|
||||||
if = {
|
#End Greatest of Khans story if title was lost
|
||||||
limit = {
|
# if = {
|
||||||
any_owned_story = {
|
# limit = {
|
||||||
story_type = story_greatest_of_khans
|
# any_owned_story = {
|
||||||
}
|
# story_type = story_greatest_of_khans
|
||||||
global_var:greatest_of_khans_title ?= {
|
# }
|
||||||
this = scope:title
|
# global_var:greatest_of_khans_title ?= {
|
||||||
}
|
# this = scope:title
|
||||||
OR = {
|
# }
|
||||||
NOT = {
|
# OR = {
|
||||||
exists = scope:new_holder
|
# NOT = {
|
||||||
}
|
# exists = scope:new_holder
|
||||||
scope:new_holder = {
|
# }
|
||||||
NOR = {
|
# scope:new_holder = {
|
||||||
AND = {
|
# NOR = {
|
||||||
exists = dynasty
|
# AND = {
|
||||||
dynasty ?= root.dynasty
|
# exists = dynasty
|
||||||
}
|
# dynasty ?= root.dynasty
|
||||||
is_grandchild_of = root
|
# }
|
||||||
is_child_of = root
|
# is_grandchild_of = root
|
||||||
}
|
# is_child_of = root
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
if = {
|
# }
|
||||||
limit = {
|
# if = {
|
||||||
is_alive = yes
|
# limit = {
|
||||||
}
|
# is_alive = yes
|
||||||
trigger_event = {
|
# }
|
||||||
id = mpo_greatest_of_khans.0040
|
# trigger_event = {
|
||||||
days = 1
|
# id = mpo_greatest_of_khans.0040
|
||||||
}
|
# days = 1
|
||||||
}
|
# }
|
||||||
else_if = {
|
# }
|
||||||
limit = {
|
# else_if = {
|
||||||
exists = root.player_heir
|
# limit = {
|
||||||
exists = root.dynasty
|
# exists = root.player_heir
|
||||||
player_heir.dynasty ?= root.dynasty
|
# exists = root.dynasty
|
||||||
}
|
# player_heir.dynasty ?= root.dynasty
|
||||||
player_heir ?= {
|
# }
|
||||||
trigger_event = {
|
# player_heir ?= {
|
||||||
id = mpo_greatest_of_khans.0040
|
# trigger_event = {
|
||||||
days = 1
|
# id = mpo_greatest_of_khans.0040
|
||||||
}
|
# days = 1
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
else = {
|
# }
|
||||||
every_owned_story = {
|
# else = {
|
||||||
limit = { story_type = story_greatest_of_khans }
|
# every_owned_story = {
|
||||||
end_story = yes
|
# limit = { story_type = story_greatest_of_khans }
|
||||||
}
|
# end_story = yes
|
||||||
remove_character_modifier = the_great_khan_modifier
|
# }
|
||||||
}
|
# remove_character_modifier = the_great_khan_modifier
|
||||||
}
|
# }
|
||||||
|
# }
|
||||||
#Coronation loyalty modifier
|
#Coronation loyalty modifier
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -4402,6 +4580,26 @@ on_title_lost = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else_if = { # Liegeless Patricians become Merchants or go to the pool
|
||||||
|
limit = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
NOT = { has_character_flag = government_republic_conversion_protection }
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { exists = var:republic_destroyer }
|
||||||
|
var:republic_destroyer = { save_scope_as = destroyer }
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
# due to effect order we cannot be sure this is the destroyer
|
||||||
|
scope:new_holder = { save_scope_as = destroyer }
|
||||||
|
set_variable = {
|
||||||
|
name = republic_destroyer
|
||||||
|
value = scope:destroyer
|
||||||
|
weeks = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
gdp_destroyed_republic_patrician_effect = { DESTROYER = scope:destroyer }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -4440,18 +4638,79 @@ on_title_lost = {
|
||||||
#########
|
#########
|
||||||
# PAM #
|
# PAM #
|
||||||
#########
|
#########
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
scope:title = {
|
||||||
|
has_clerical_region = yes
|
||||||
|
root = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } }
|
||||||
|
scope:new_holder = { NOT = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } } }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
situation:the_christian_church.situation_sub_region:core = {
|
||||||
|
remove_clerical_realm_from_sub_region = scope:title
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#########
|
||||||
|
# GDP #
|
||||||
|
#########
|
||||||
|
# NEOW 2555: 1178 Guelph/Ghibelline title changes remain disabled.
|
||||||
|
#GG: Account for custom-made HRE and Popes in 1178
|
||||||
# if = {
|
# if = {
|
||||||
# limit = {
|
# limit = {
|
||||||
# scope:title = {
|
# game_start_date = 1178.10.1
|
||||||
# has_clerical_region = yes
|
# scope:new_holder = { is_from_ruler_designer = yes }
|
||||||
# root = { religion = religion:christianity_religion }
|
|
||||||
# scope:new_holder = { NOT = { religion = religion:christianity_religion } }
|
|
||||||
# }
|
|
||||||
# }
|
# }
|
||||||
# situation:the_christian_church.situation_sub_region:core = {
|
# #Ghibellines/HRE
|
||||||
# remove_clerical_realm_from_sub_region = scope:landed_title
|
# if = {
|
||||||
|
# limit = {
|
||||||
|
# scope:title = { this = title:e_hre }
|
||||||
|
# }
|
||||||
|
# remove_variable = ghibelline_leader
|
||||||
|
# scope:new_holder = { set_variable = ghibelline_leader }
|
||||||
|
# recalculate_participant_group = situation:guelph_ghibelline
|
||||||
|
# }
|
||||||
|
# #Guelphs
|
||||||
|
# if = {
|
||||||
|
# limit = {
|
||||||
|
# scope:title = { this = title:d_commune_verona }
|
||||||
|
# }
|
||||||
|
# remove_variable = guelph_leader
|
||||||
|
# scope:new_holder = { set_variable = guelph_leader }
|
||||||
|
# recalculate_participant_group = situation:guelph_ghibelline
|
||||||
# }
|
# }
|
||||||
# }
|
# }
|
||||||
|
# #GG: You don't get to be a leader as landless, sorry
|
||||||
|
# if = {
|
||||||
|
# limit = {
|
||||||
|
# exists = situation:guelph_ghibelline
|
||||||
|
# OR = {
|
||||||
|
# has_variable = guelph_leader
|
||||||
|
# has_variable = ghibelline_leader
|
||||||
|
# }
|
||||||
|
# is_landed = no
|
||||||
|
# }
|
||||||
|
# try_set_up_new_gg_leader_effect = yes
|
||||||
|
# }
|
||||||
|
|
||||||
|
gdp_merchant_patron_change_on_title_transfer_effect = yes
|
||||||
|
burgher_broken_charter_effect = yes
|
||||||
|
if = {
|
||||||
|
limit = { scope:title = { is_noble_family_title = yes } }
|
||||||
|
hanseatic_sync_family_head_benefits_effect = { CHARACTER = root }
|
||||||
|
scope:new_holder ?= {
|
||||||
|
hanseatic_sync_family_head_benefits_effect = { CHARACTER = this }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
scope:title = {
|
||||||
|
tier = tier_county
|
||||||
|
is_noble_family_title = no
|
||||||
|
}
|
||||||
|
}
|
||||||
|
hanseatic_sync_county_benefits_effect = { COUNTY = scope:title }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -5180,6 +5439,54 @@ on_vassal_change = {
|
||||||
resolve_title_and_vassal_change = scope:change
|
resolve_title_and_vassal_change = scope:change
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
### If a republic family becomes independent or part of a non-Republic...
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
NOT = { has_character_flag = gdp_becoming_patrician }
|
||||||
|
NOT = { has_character_flag = government_republic_conversion_protection }
|
||||||
|
is_landed = no
|
||||||
|
any_held_title = { is_noble_family_title = yes }
|
||||||
|
liege = {
|
||||||
|
OR = {
|
||||||
|
this = root # independent
|
||||||
|
NOT = { government_has_flag = government_is_republic }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# Become a Merchant or go to the pool
|
||||||
|
if = {
|
||||||
|
limit = { exists = var:republic_destroyer }
|
||||||
|
var:republic_destroyer = { save_scope_as = destroyer }
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
# due to effect order we cannot be sure this is the destroyer
|
||||||
|
scope:old_liege = { save_scope_as = destroyer }
|
||||||
|
set_variable = {
|
||||||
|
name = republic_destroyer
|
||||||
|
value = scope:destroyer
|
||||||
|
weeks = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
gdp_destroyed_republic_patrician_effect = { DESTROYER = scope:destroyer }
|
||||||
|
}
|
||||||
|
### A landed republic governor becomes independent to form a new republic
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
is_landed = yes
|
||||||
|
this = highest_liege_matching_rule:uses_assembly
|
||||||
|
NOT = { has_character_flag = gdp_recently_founded_republic }
|
||||||
|
scope:old_liege = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
is_alive = yes
|
||||||
|
is_landed = yes
|
||||||
|
this = highest_liege_matching_rule:uses_assembly
|
||||||
|
this != root
|
||||||
|
}
|
||||||
|
}
|
||||||
|
gdp_found_a_republic_effect = yes
|
||||||
|
}
|
||||||
# Empire Faith Gate: sync the empire-holders list when an empire-tier ruler gains or loses independence.
|
# Empire Faith Gate: sync the empire-holders list when an empire-tier ruler gains or loses independence.
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -5530,9 +5837,58 @@ on_realm_capital_change = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
is_landed = no
|
is_landed = no
|
||||||
is_in_army = no
|
should_in_default_location_trigger = yes
|
||||||
is_travelling = no
|
}
|
||||||
NOT = { exists = involved_activity }
|
set_location_to_default = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# In republics - move patricians to realm capital
|
||||||
|
if = {
|
||||||
|
limit = { gdp_is_assembly_head_trigger = yes }
|
||||||
|
capital_province = { save_scope_as = capital_province }
|
||||||
|
# Move the ruler's capital and domicile
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
any_held_title = { is_noble_family_title = yes }
|
||||||
|
}
|
||||||
|
every_held_title = {
|
||||||
|
limit = {
|
||||||
|
is_noble_family_title = yes
|
||||||
|
}
|
||||||
|
set_capital_county = scope:capital_province.county
|
||||||
|
}
|
||||||
|
domicile ?= {
|
||||||
|
move_domicile = scope:capital_province
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_landed = no
|
||||||
|
should_in_default_location_trigger = yes
|
||||||
|
}
|
||||||
|
set_location_to_default = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# And the same for all patrician vassals
|
||||||
|
every_vassal = {
|
||||||
|
limit = {
|
||||||
|
exists = domicile
|
||||||
|
domicile = { is_domicile_type = merchant_company }
|
||||||
|
}
|
||||||
|
every_held_title = {
|
||||||
|
limit = {
|
||||||
|
is_noble_family_title = yes
|
||||||
|
}
|
||||||
|
set_capital_county = scope:capital_province.county
|
||||||
|
}
|
||||||
|
domicile ?= {
|
||||||
|
move_domicile = scope:capital_province
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_landed = no
|
||||||
|
should_in_default_location_trigger = yes
|
||||||
}
|
}
|
||||||
set_location_to_default = yes
|
set_location_to_default = yes
|
||||||
}
|
}
|
||||||
|
|
@ -5548,3 +5904,68 @@ on_realm_capital_change = {
|
||||||
# Not called if new primary title is the same as the previous primary title
|
# Not called if new primary title is the same as the previous primary title
|
||||||
on_primary_title_change = {
|
on_primary_title_change = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
on_term_ended_events = {
|
||||||
|
effect = {
|
||||||
|
if = {
|
||||||
|
limit = { scope:previous_holder = scope:new_holder }
|
||||||
|
# Re-elected (root)
|
||||||
|
scope:title ?= {
|
||||||
|
every_full_assembly_member = {
|
||||||
|
limit = {
|
||||||
|
is_ai = no
|
||||||
|
}
|
||||||
|
trigger_event = republic_event.0051
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
# Elected (root = winner)
|
||||||
|
scope:title ?= {
|
||||||
|
every_full_assembly_member = {
|
||||||
|
limit = {
|
||||||
|
is_ai = no
|
||||||
|
}
|
||||||
|
trigger_event = republic_event.0050
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
on_term_ended = {
|
||||||
|
on_actions = { on_term_ended_events }
|
||||||
|
effect = {
|
||||||
|
if = {
|
||||||
|
limit = { scope:previous_holder = scope:new_holder }
|
||||||
|
every_player = {
|
||||||
|
limit = {
|
||||||
|
OR = {
|
||||||
|
this = root
|
||||||
|
is_vassal_or_below_of = root
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { this = root }
|
||||||
|
send_interface_toast = {
|
||||||
|
type = event_toast_effect_good
|
||||||
|
title = term_ended_reelected_toast_self
|
||||||
|
left_icon = scope:title
|
||||||
|
custom_tooltip = term_ended_reelected_toast_self.desc
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
send_interface_toast = {
|
||||||
|
type = event_toast_effect_neutral
|
||||||
|
title = term_ended_reelected_toast
|
||||||
|
left_icon = scope:new_holder
|
||||||
|
right_icon = scope:title
|
||||||
|
custom_tooltip = term_ended_reelected_toast.desc
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ on_travel_plan_movement = {
|
||||||
|
|
||||||
events = {
|
events = {
|
||||||
mpo_special_flavor_events.0001
|
mpo_special_flavor_events.0001
|
||||||
|
gdp_travel_events.2000
|
||||||
}
|
}
|
||||||
|
|
||||||
# Increment the count of how many provinces the character has passed through
|
# Increment the count of how many provinces the character has passed through
|
||||||
|
|
@ -32,6 +33,12 @@ on_travel_plan_movement = {
|
||||||
passive_rite_learning_travel_province_effect = yes
|
passive_rite_learning_travel_province_effect = yes
|
||||||
# Wandering Lifestyle XP
|
# Wandering Lifestyle XP
|
||||||
wandering_lifestyle_exp_post_travel_effect = yes
|
wandering_lifestyle_exp_post_travel_effect = yes
|
||||||
|
# Merchant Power at Home replacement
|
||||||
|
merchant_market_familiarity_travel_effect = yes
|
||||||
|
# Merchant Souvenirs Aplenty replacement
|
||||||
|
merchant_souvenirs_aplenty_travel_effect = yes
|
||||||
|
# Merchant Travel Logs bonus
|
||||||
|
merchant_travel_logs_danger_xp_effect = yes
|
||||||
# Increase xp for traveler trait
|
# Increase xp for traveler trait
|
||||||
traveler_progress_point_gain_effect = { CHANGE = 1 RANDOM_CHANGE = 1 }
|
traveler_progress_point_gain_effect = { CHANGE = 1 RANDOM_CHANGE = 1 }
|
||||||
# Increment the count of how many provinces the character has passed through
|
# Increment the count of how many provinces the character has passed through
|
||||||
|
|
@ -595,6 +602,41 @@ on_travel_plan_movement = {
|
||||||
}
|
}
|
||||||
trigger_event = travel_events.2310
|
trigger_event = travel_events.2310
|
||||||
}
|
}
|
||||||
|
# Merchant capstone
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
current_travel_plan.current_location = {
|
||||||
|
any_province_domicile = {
|
||||||
|
has_domicile_parameter = company_curiosity_visitors
|
||||||
|
owner = {
|
||||||
|
NOT = {
|
||||||
|
is_target_in_variable_list = {
|
||||||
|
name = gdp_merchant_8020_cooldown
|
||||||
|
target = root
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
save_scope_as = visitor
|
||||||
|
current_travel_plan.current_location = {
|
||||||
|
random_province_domicile = {
|
||||||
|
limit = {
|
||||||
|
has_domicile_parameter = company_curiosity_visitors
|
||||||
|
owner = {
|
||||||
|
NOT = {
|
||||||
|
is_target_in_variable_list = {
|
||||||
|
name = gdp_merchant_8020_cooldown
|
||||||
|
target = root
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
owner = { trigger_event = gdp_merchant.8021 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -751,6 +793,12 @@ travel_danger_events_on_action = {
|
||||||
# TGP Travel Danger Events
|
# TGP Travel Danger Events
|
||||||
100 = tgp_travel_danger_events.0001 # Encounter an orphan in an area struck by natural disaster.
|
100 = tgp_travel_danger_events.0001 # Encounter an orphan in an area struck by natural disaster.
|
||||||
|
|
||||||
|
# GDP Travel Danger Events
|
||||||
|
100 = gdp_travel_events.1000 # Your Caravan is stuck in the desert during a heatwave
|
||||||
|
100 = gdp_travel_events.1040 # Unmaintained Well - Party stops at an icky well
|
||||||
|
100 = gdp_travel_events.1050 # Toppled Timber - The road is blocked by fallen trees
|
||||||
|
100 = gdp_travel_events.1060 # Rats in the Hold - The hold of the ship is filled with rats
|
||||||
|
|
||||||
# Simple Danger Events
|
# Simple Danger Events
|
||||||
100 = travel_danger_events.9030 # Rain: delay
|
100 = travel_danger_events.9030 # Rain: delay
|
||||||
100 = travel_danger_events.9040 # Rainstorm, someone is lost & gone forever!
|
100 = travel_danger_events.9040 # Rainstorm, someone is lost & gone forever!
|
||||||
|
|
@ -1001,6 +1049,10 @@ travel_events_on_action = {
|
||||||
50 = tgp_japan_yearly_events.1120 # 1120 - You meet a warrior monk
|
50 = tgp_japan_yearly_events.1120 # 1120 - You meet a warrior monk
|
||||||
50 = tgp_japan_yearly_events.1140 # 1140 - You are stopped in Soryo lands as a Ritsuryo ruler
|
50 = tgp_japan_yearly_events.1140 # 1140 - You are stopped in Soryo lands as a Ritsuryo ruler
|
||||||
|
|
||||||
|
#GDP Travel Events
|
||||||
|
100 = gdp_travel_events.1010 # 1010 - Lost Travelers - A family of travelers is asking to shelter with you.
|
||||||
|
100 = gdp_travel_events.1020 # 1020 - Tidbits on the Road - Your associate has something interesting to share
|
||||||
|
100 = gdp_travel_events.1030 # 1030 - Vile Whispers - An associate has a secret to share concerning you partner
|
||||||
# PAM Travel Events
|
# PAM Travel Events
|
||||||
100 = pam_theocratic_ruler_events.0012 # Theocratic ruler: sacred grove in the forest while traveling through realm
|
100 = pam_theocratic_ruler_events.0012 # Theocratic ruler: sacred grove in the forest while traveling through realm
|
||||||
|
|
||||||
|
|
@ -1104,6 +1156,9 @@ on_travel_plan_arrival = {
|
||||||
100 = 0
|
100 = 0
|
||||||
100 = travel_events.3020 #A warm welcome
|
100 = travel_events.3020 #A warm welcome
|
||||||
}
|
}
|
||||||
|
events = {
|
||||||
|
gdp_travel_events.2000
|
||||||
|
}
|
||||||
effect = {
|
effect = {
|
||||||
# Achievements.
|
# Achievements.
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -1167,6 +1222,8 @@ on_travel_plan_arrival = {
|
||||||
|
|
||||||
# Visited Points of Interest tracker, currently only for Adventurers
|
# Visited Points of Interest tracker, currently only for Adventurers
|
||||||
points_of_interest_tracker_effect = yes
|
points_of_interest_tracker_effect = yes
|
||||||
|
|
||||||
|
gdp_merchant_legacy_4_visit_entrepot_effect = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1217,6 +1274,29 @@ on_travel_plan_start = {
|
||||||
value = 1
|
value = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
government_has_flag = government_is_merchant
|
||||||
|
has_perk = travel_logs_perk
|
||||||
|
has_variable_list = merchant_travel_logs_markets
|
||||||
|
}
|
||||||
|
clear_variable_list = merchant_travel_logs_markets
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
government_has_flag = government_is_merchant
|
||||||
|
has_perk = know_your_land_know_your_people_perk
|
||||||
|
current_travel_plan = {
|
||||||
|
has_travel_option = tutor_child_option
|
||||||
|
}
|
||||||
|
player_heir ?= {
|
||||||
|
has_variable_list = reading_the_market_markets
|
||||||
|
}
|
||||||
|
}
|
||||||
|
player_heir = {
|
||||||
|
clear_variable_list = reading_the_market_markets
|
||||||
|
}
|
||||||
|
}
|
||||||
# Add Court Physician and Bodyguard if they aren't already in the entourage
|
# Add Court Physician and Bodyguard if they aren't already in the entourage
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -1460,6 +1540,8 @@ on_travel_plan_start = {
|
||||||
diarchy.0002 # Do we need to enter a regency or not?
|
diarchy.0002 # Do we need to enter a regency or not?
|
||||||
ep3_laamp_flavour_ewan.1102 #Adventurer's child helps them pack
|
ep3_laamp_flavour_ewan.1102 #Adventurer's child helps them pack
|
||||||
ep3_laamp_flavour_ewan.1103 #Follow-up events for adventurer's child helping with packing
|
ep3_laamp_flavour_ewan.1103 #Follow-up events for adventurer's child helping with packing
|
||||||
|
|
||||||
|
gdp_travel_events.0001 #Merchants travel with their associates, household and potential contract agents
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1470,14 +1552,15 @@ on_travel_plan_complete = {
|
||||||
is_ruler = yes
|
is_ruler = yes
|
||||||
}
|
}
|
||||||
first_valid = {
|
first_valid = {
|
||||||
pilgrimage.9010 #Bury the old host after finishing the Pilgrimage
|
# NEOW 2555: event not loaded. pilgrimage.9010 #Bury the old host after finishing the Pilgrimage
|
||||||
pilgrimage.9001 #Nice Spiritual Journey
|
# NEOW 2555: event not loaded. pilgrimage.9001 #Nice Spiritual Journey
|
||||||
ep3_laamps.8000 # You arrive at a place you have a claim on
|
ep3_laamps.8000 # You arrive at a place you have a claim on
|
||||||
tgp_east_asia_mandala_events.8496 #You are due for a Mandala Succession?
|
tgp_east_asia_mandala_events.8496 #You are due for a Mandala Succession?
|
||||||
travel_completion_event.1000
|
travel_completion_event.1000
|
||||||
}
|
}
|
||||||
events = {
|
events = {
|
||||||
ep3_laamps.9971
|
ep3_laamps.9971
|
||||||
|
gdp_travel_events.2000
|
||||||
}
|
}
|
||||||
|
|
||||||
effect = {
|
effect = {
|
||||||
|
|
@ -1578,6 +1661,13 @@ on_travel_plan_complete = {
|
||||||
# Roaming flag
|
# Roaming flag
|
||||||
remove_character_flag = roaming_character
|
remove_character_flag = roaming_character
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
has_character_flag = gdp_trade_opportunity_visit_holding_on_arrival
|
||||||
|
}
|
||||||
|
remove_character_flag = gdp_trade_opportunity_visit_holding_on_arrival
|
||||||
|
}
|
||||||
|
|
||||||
# Give us fresh contracts if necessary.
|
# Give us fresh contracts if necessary.
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -1589,6 +1679,30 @@ on_travel_plan_complete = {
|
||||||
left_icon = root
|
left_icon = root
|
||||||
right_icon = root.location.barony
|
right_icon = root.location.barony
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_government = merchant_government }
|
||||||
|
if = {
|
||||||
|
limit = { exists = location.county.holder }
|
||||||
|
suzerain ?= { save_scope_as = old_patron }
|
||||||
|
location.county.holder = { save_scope_as = new_patron }
|
||||||
|
start_tributary_interaction_effect = {
|
||||||
|
TRIBUTARY = root
|
||||||
|
SUZERAIN = scope:new_patron
|
||||||
|
}
|
||||||
|
# Mingle with Patron only when a player move assigns a different patron.
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_ai = no
|
||||||
|
trigger_if = {
|
||||||
|
limit = { exists = scope:old_patron }
|
||||||
|
NOT = { scope:old_patron = scope:new_patron }
|
||||||
|
}
|
||||||
|
trigger_else = { always = yes }
|
||||||
|
}
|
||||||
|
trigger_event = { on_action = gdp_patron_hobnob }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
# Set up additional firing contracts.
|
# Set up additional firing contracts.
|
||||||
player_adventurer_contract_generation_on_wait_in_place_effect = yes
|
player_adventurer_contract_generation_on_wait_in_place_effect = yes
|
||||||
# Generate contracts if you are far away from your previous location.
|
# Generate contracts if you are far away from your previous location.
|
||||||
|
|
@ -1814,6 +1928,8 @@ on_travel_plan_abort = {
|
||||||
of_the_people_effect = yes
|
of_the_people_effect = yes
|
||||||
# Wayfarer Stress Loss
|
# Wayfarer Stress Loss
|
||||||
wayfarer_the_home_away_from_home_modifier_effect = yes
|
wayfarer_the_home_away_from_home_modifier_effect = yes
|
||||||
|
# Merchant Souvenirs Aplenty cleanup
|
||||||
|
merchant_souvenirs_aplenty_clear_effect = yes
|
||||||
# Remove Excursion modifier
|
# Remove Excursion modifier
|
||||||
destination_remove_excursion_modifier_effect = yes
|
destination_remove_excursion_modifier_effect = yes
|
||||||
# Roaming flag
|
# Roaming flag
|
||||||
|
|
@ -1822,6 +1938,13 @@ on_travel_plan_abort = {
|
||||||
remove_character_flag = roaming_character
|
remove_character_flag = roaming_character
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
has_character_flag = gdp_trade_opportunity_visit_holding_on_arrival
|
||||||
|
}
|
||||||
|
remove_character_flag = gdp_trade_opportunity_visit_holding_on_arrival
|
||||||
|
}
|
||||||
|
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
current_travel_plan = { is_travel_with_domicile = yes }
|
current_travel_plan = { is_travel_with_domicile = yes }
|
||||||
|
|
@ -1883,6 +2006,9 @@ on_travel_plan_abort = {
|
||||||
#Invalidate Mandala Contracts
|
#Invalidate Mandala Contracts
|
||||||
mandala_invalidate_contracts_effect = yes
|
mandala_invalidate_contracts_effect = yes
|
||||||
|
|
||||||
|
#Invalidate merchant trade opportunities the trip never reached
|
||||||
|
merchant_trade_opportunity_travel_cancelled_effect = yes
|
||||||
|
|
||||||
#Hit absentee Tributary with Tribute Mission penalty
|
#Hit absentee Tributary with Tribute Mission penalty
|
||||||
requested_tribute_mission_penalty_effect = yes
|
requested_tribute_mission_penalty_effect = yes
|
||||||
tribute_mission_clean_up_variables_effect = yes
|
tribute_mission_clean_up_variables_effect = yes
|
||||||
|
|
@ -1908,6 +2034,7 @@ on_travel_plan_abort = {
|
||||||
# People in the travel plan were removed from associated activities.
|
# People in the travel plan were removed from associated activities.
|
||||||
on_travel_plan_cancel = {
|
on_travel_plan_cancel = {
|
||||||
effect = {
|
effect = {
|
||||||
|
merchant_souvenirs_aplenty_clear_effect = yes
|
||||||
if = {
|
if = {
|
||||||
limit = { has_variable = ep3_laamp_decision_1000_is_excavating }
|
limit = { has_variable = ep3_laamp_decision_1000_is_excavating }
|
||||||
remove_variable = ep3_laamp_decision_1000_is_excavating
|
remove_variable = ep3_laamp_decision_1000_is_excavating
|
||||||
|
|
@ -2053,6 +2180,9 @@ on_travel_plan_cancel = {
|
||||||
#Invalidate Mandala Contracts
|
#Invalidate Mandala Contracts
|
||||||
mandala_invalidate_contracts_effect = yes
|
mandala_invalidate_contracts_effect = yes
|
||||||
|
|
||||||
|
#Invalidate merchant trade opportunities the trip never reached
|
||||||
|
merchant_trade_opportunity_travel_cancelled_effect = yes
|
||||||
|
|
||||||
#Hit absentee Tributary with Tribute Mission penalty
|
#Hit absentee Tributary with Tribute Mission penalty
|
||||||
requested_tribute_mission_penalty_effect = yes
|
requested_tribute_mission_penalty_effect = yes
|
||||||
tribute_mission_clean_up_variables_effect = yes
|
tribute_mission_clean_up_variables_effect = yes
|
||||||
|
|
|
||||||
|
|
@ -1162,7 +1162,7 @@ on_war_started = {
|
||||||
scope:attacker = {
|
scope:attacker = {
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
highest_held_title_tier >= tier_kingdom
|
highest_held_title_tier >= tier_kingdom
|
||||||
religion = religion:christianity_religion
|
OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
faith = scope:defender.faith
|
faith = scope:defender.faith
|
||||||
}
|
}
|
||||||
scope:war = { # They have their own catalysts
|
scope:war = { # They have their own catalysts
|
||||||
|
|
@ -1208,7 +1208,7 @@ on_war_started = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scope:attacker = {
|
scope:attacker = {
|
||||||
NOT = { religion = religion:christianity_religion }
|
NOT = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } }
|
||||||
}
|
}
|
||||||
scope:defender = {
|
scope:defender = {
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
|
|
@ -1973,6 +1973,8 @@ on_war_won_attacker = { # As in, won BY attacker. Only one of the two on_actions
|
||||||
mpo_save_potential_blood_brother_war_allies_effect = yes
|
mpo_save_potential_blood_brother_war_allies_effect = yes
|
||||||
|
|
||||||
pam_pursuit_of_power_war_victory_fulfillment_effect = yes
|
pam_pursuit_of_power_war_victory_fulfillment_effect = yes
|
||||||
|
|
||||||
|
burgher_resume_pending_leaders_on_war_end_effect = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2388,6 +2390,8 @@ on_war_won_defender = {
|
||||||
|
|
||||||
#Save variables for blood brothers
|
#Save variables for blood brothers
|
||||||
mpo_save_potential_blood_brother_war_allies_effect = yes
|
mpo_save_potential_blood_brother_war_allies_effect = yes
|
||||||
|
|
||||||
|
burgher_resume_pending_leaders_on_war_end_effect = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2526,6 +2530,8 @@ on_war_white_peace = {
|
||||||
mpo_save_potential_blood_brother_war_allies_effect = yes
|
mpo_save_potential_blood_brother_war_allies_effect = yes
|
||||||
|
|
||||||
pam_miles_christi_white_peace_effect = yes
|
pam_miles_christi_white_peace_effect = yes
|
||||||
|
|
||||||
|
burgher_resume_pending_leaders_on_war_end_effect = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2587,5 +2593,7 @@ on_war_invalidated = {
|
||||||
|
|
||||||
#Save variables for blood brothers
|
#Save variables for blood brothers
|
||||||
mpo_save_potential_blood_brother_war_allies_effect = yes
|
mpo_save_potential_blood_brother_war_allies_effect = yes
|
||||||
|
|
||||||
|
burgher_resume_pending_leaders_on_war_end_effect = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -434,6 +434,7 @@ pam_christian_yearly_events = {
|
||||||
religion = religion:protestant_religion
|
religion = religion:protestant_religion
|
||||||
}
|
}
|
||||||
NOT = { has_character_flag = recently_got_pam_christian_event }
|
NOT = { has_character_flag = recently_got_pam_christian_event }
|
||||||
|
pam_secular_faith_clergy_ok_actor_trigger = yes
|
||||||
}
|
}
|
||||||
weight_multiplier = {
|
weight_multiplier = {
|
||||||
base = 1
|
base = 1
|
||||||
|
|
|
||||||
|
|
@ -298,6 +298,7 @@ yearly_global_pulse = {
|
||||||
on_actions = {
|
on_actions = {
|
||||||
inspiration_maintenance_global_pulse
|
inspiration_maintenance_global_pulse
|
||||||
natural_disaster_maintenance_global_pulse
|
natural_disaster_maintenance_global_pulse
|
||||||
|
gdp_merchant_population_global_pulse
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -556,6 +557,8 @@ yearly_playable_pulse = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_treasury = yes
|
has_treasury = yes
|
||||||
|
# We exclude republics here - they are a bit different and require separate handling (see republic_event.0020)
|
||||||
|
NOT = { government_has_flag = government_is_republic }
|
||||||
}
|
}
|
||||||
trigger_event = tgp_china_ministry.0100
|
trigger_event = tgp_china_ministry.0100
|
||||||
}
|
}
|
||||||
|
|
@ -916,6 +919,127 @@ yearly_playable_pulse = {
|
||||||
}
|
}
|
||||||
ai_attempt_to_host_activity = activity_imperial_examination
|
ai_attempt_to_host_activity = activity_imperial_examination
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# MERCHANTS
|
||||||
|
if = {
|
||||||
|
limit = { government_has_flag = government_is_merchant }
|
||||||
|
# AI Associate handling
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_available_quick = {
|
||||||
|
ai = yes
|
||||||
|
adult = yes
|
||||||
|
imprisoned = no
|
||||||
|
alive = yes
|
||||||
|
}
|
||||||
|
is_house_head = yes
|
||||||
|
exists = location.county
|
||||||
|
NOT = { has_character_flag = gdp_merchant_ai_market_recruit_cooldown }
|
||||||
|
short_term_gold >= gdp_merchant_ai_market_recruit_gold_value
|
||||||
|
any_courtier = {
|
||||||
|
gdp_can_be_trader_trigger = yes
|
||||||
|
count < root.num_trade_routes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
gdp_merchant_ai_market_recruit_effect = yes
|
||||||
|
}
|
||||||
|
# Contracts
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
house ?= { # Trade opportunities only spawn yearly with high unity
|
||||||
|
OR = {
|
||||||
|
has_house_unity_stage = grasping_cs
|
||||||
|
has_house_unity_stage = ennobled_cs
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_if = {
|
||||||
|
limit = { is_ai = yes }
|
||||||
|
is_available = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# Trade opportunities
|
||||||
|
random = {
|
||||||
|
chance = {
|
||||||
|
value = 50
|
||||||
|
if = {
|
||||||
|
limit = { has_character_flag = trade_opportunity_frequency_cooldown }
|
||||||
|
subtract = 35
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
house ?= { has_house_unity_stage = ennobled_cs }
|
||||||
|
}
|
||||||
|
add = 25
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_event = {
|
||||||
|
on_action = spawn_trade_opportunity_contract_on_action
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# Luxury contracts
|
||||||
|
random = {
|
||||||
|
chance = {
|
||||||
|
value = 70
|
||||||
|
if = {
|
||||||
|
limit = { has_character_flag = luxury_contract_frequency_cooldown }
|
||||||
|
subtract = 50
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { has_realm_law = company_purpose_caravaneer }
|
||||||
|
}
|
||||||
|
subtract = 50
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_event = {
|
||||||
|
on_action = spawn_luxury_contract_on_action
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# Unity contracts
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
house ?= { # Unity contracts do not spawn yearly with high unity
|
||||||
|
OR = {
|
||||||
|
has_house_unity_stage = rapacious_cs
|
||||||
|
has_house_unity_stage = opportunistic_cs
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
random = {
|
||||||
|
chance = {
|
||||||
|
value = 25
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
house ?= { has_house_unity_stage = opportunistic_cs }
|
||||||
|
}
|
||||||
|
add = 25
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_character_flag = unity_contract_frequency_cooldown }
|
||||||
|
multiply = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_event = { on_action = spawn_unity_contract_on_action }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# Passive XP
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
is_adult = yes # children never learn anything
|
||||||
|
any_trade_route = { gdp_merchant_trade_route_grants_caravaneer_xp_trigger = yes }
|
||||||
|
}
|
||||||
|
send_interface_message = {
|
||||||
|
type = event_trade_good
|
||||||
|
title = caravaneer_passive_xp_title
|
||||||
|
add_trait_xp = {
|
||||||
|
trait = lifestyle_merchant
|
||||||
|
track = caravaneer
|
||||||
|
value = gdp_merchant_yearly_caravaneer_xp_value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Scalable Modifiers which needs to be reapplied
|
# Scalable Modifiers which needs to be reapplied
|
||||||
hidden_effect = {
|
hidden_effect = {
|
||||||
|
|
@ -1936,7 +2060,7 @@ yearly_playable_pulse = {
|
||||||
weight = {
|
weight = {
|
||||||
base = 1
|
base = 1
|
||||||
modifier = {
|
modifier = {
|
||||||
divide = development_level
|
divide = prosperity_level
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
divide = county_control
|
divide = county_control
|
||||||
|
|
@ -1977,12 +2101,22 @@ yearly_playable_pulse = {
|
||||||
events = {
|
events = {
|
||||||
court_maintenance.0012 # Dynasty banner improves with renown
|
court_maintenance.0012 # Dynasty banner improves with renown
|
||||||
court_maintenance.0013 # Remove duplicate dynasty banners
|
court_maintenance.0013 # Remove duplicate dynasty banners
|
||||||
|
gdp_purpose_events.0001 # You're in debt, a merchant offers a way out
|
||||||
|
gdp_merchant.9020 # Commission trade route
|
||||||
|
gdp_merchant.1200 # Merchant associate promise
|
||||||
|
vassal.2205 # Loan reminder
|
||||||
}
|
}
|
||||||
on_actions = {
|
on_actions = {
|
||||||
ai_character_pulse
|
ai_character_pulse
|
||||||
delay = { days = 75 }
|
delay = { days = 75 }
|
||||||
|
|
||||||
pagan_conversion_pulse
|
pagan_conversion_pulse
|
||||||
|
|
||||||
|
# GDP
|
||||||
|
gdp_republic_popular_opinion_pulse
|
||||||
|
gdp_merchant_ai_trade_monopoly_pulse
|
||||||
|
gdp_republic_ai_trade_monopoly_pulse
|
||||||
|
gdp_trade_league_ai_trade_monopoly_pulse
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1991,6 +2125,11 @@ yearly_playable_pulse = {
|
||||||
three_year_playable_pulse = {
|
three_year_playable_pulse = {
|
||||||
events = {
|
events = {
|
||||||
adultery.0001 #Suspected spouse/soulmate of cheating (increased chance when there is a lover, but can also trigger otherwise)
|
adultery.0001 #Suspected spouse/soulmate of cheating (increased chance when there is a lover, but can also trigger otherwise)
|
||||||
|
gdp_merchant.8020 # Domicile visitor
|
||||||
|
ep2_accolade_events.0100
|
||||||
|
ep2_accolade_events.0200
|
||||||
|
ep2_accolade_events.0300
|
||||||
|
ach_maintenance_events.0002
|
||||||
}
|
}
|
||||||
# random_events = {
|
# random_events = {
|
||||||
# 800 = 0
|
# 800 = 0
|
||||||
|
|
@ -2277,6 +2416,31 @@ three_year_playable_pulse = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pam_christian_situation_hof_incite_holy_war_effect = yes
|
pam_christian_situation_hof_incite_holy_war_effect = yes
|
||||||
|
# Republic maintenance
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
gdp_is_assembly_head_trigger = yes
|
||||||
|
}
|
||||||
|
# Effect to add more patricians as needed
|
||||||
|
gdp_adjust_number_of_patrician_families_effect = yes
|
||||||
|
# Update the treasury budget
|
||||||
|
trigger_event = republic_event.0020
|
||||||
|
# Read by gdp_merchant_company_keep_trigger if the republic falls
|
||||||
|
add_character_flag = {
|
||||||
|
flag = gdp_notable_republic_family
|
||||||
|
years = 4
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { highest_held_title_tier >= tier_kingdom }
|
||||||
|
every_vassal = {
|
||||||
|
limit = { government_has_flag = government_is_republic }
|
||||||
|
add_character_flag = {
|
||||||
|
flag = gdp_notable_republic_family
|
||||||
|
years = 4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2537,6 +2701,13 @@ quarterly_playable_pulse = {
|
||||||
|
|
||||||
# MPO
|
# MPO
|
||||||
mpo_tributary_check_pulse
|
mpo_tributary_check_pulse
|
||||||
|
|
||||||
|
# GDP
|
||||||
|
gdp_merchant_company_debt_pulse
|
||||||
|
gdp_trade_route_maturity_pulse
|
||||||
|
gdp_trade_envoys_resume_pulse
|
||||||
|
ep5_09_wearer_of_many_hats_achievement_pulse
|
||||||
|
|
||||||
}
|
}
|
||||||
random_on_action = {
|
random_on_action = {
|
||||||
chance_to_happen = 50
|
chance_to_happen = 50
|
||||||
|
|
@ -2591,11 +2762,12 @@ random_yearly_playable_pulse = {
|
||||||
#2 = bp1_yearly_events # Retired on purpose; contents are all in on_yearly_events
|
#2 = bp1_yearly_events # Retired on purpose; contents are all in on_yearly_events
|
||||||
6 = ep3_yearly_events_admin
|
6 = ep3_yearly_events_admin
|
||||||
6 = NEOW_yearly_flavor_events
|
6 = NEOW_yearly_flavor_events
|
||||||
6 = tgp_japan_yearly_events
|
# 6 = tgp_japan_yearly_events # NEOW 2555: removed East/South Asian regions
|
||||||
6 = tgp_china_yearly_events
|
# 6 = tgp_china_yearly_events # NEOW 2555: removed East/South Asian regions
|
||||||
3 = tgp_mandala_yearly_events
|
# 3 = tgp_mandala_yearly_events # NEOW 2555: removed East/South Asian regions
|
||||||
6 = ongoing_house_feud_events
|
6 = ongoing_house_feud_events
|
||||||
10 = mpo_yearly_events_nomads
|
10 = mpo_yearly_events_nomads
|
||||||
|
6 = gdp_merchant_yearly_events
|
||||||
}
|
}
|
||||||
effect = {
|
effect = {
|
||||||
# Special Holy Seeds drops
|
# Special Holy Seeds drops
|
||||||
|
|
@ -2729,9 +2901,9 @@ random_yearly_everyone_pulse = {
|
||||||
house_feud_ai_scheme_pulse
|
house_feud_ai_scheme_pulse
|
||||||
}
|
}
|
||||||
events = {
|
events = {
|
||||||
holy_order.0206 #To increment the years passed since loan
|
# NEOW 2555: event not loaded. holy_order.0206 #To increment the years passed since loan
|
||||||
marriage_interaction.0007 #One of the betrothed became part of clergy that doesn't allow marriage
|
marriage_interaction.0007 #One of the betrothed became part of clergy that doesn't allow marriage
|
||||||
tgp_silk_road_events.0100 #Culture adopts controlled Silk Road market innovation
|
# NEOW 2555: event not loaded. tgp_silk_road_events.0100 #Culture adopts controlled Silk Road market innovation
|
||||||
}
|
}
|
||||||
random_events = {
|
random_events = {
|
||||||
500 = 0
|
500 = 0
|
||||||
|
|
@ -2912,6 +3084,10 @@ three_year_pool_pulse = {
|
||||||
}
|
}
|
||||||
100 = courtier_guest_management.4001 # Wanderer becomes an adventurer
|
100 = courtier_guest_management.4001 # Wanderer becomes an adventurer
|
||||||
}
|
}
|
||||||
|
on_actions = {
|
||||||
|
gdp_merchant_pool_pulse
|
||||||
|
gdp_minority_merchant_pool_pulse
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#Only triggered if you actually have prisoners
|
#Only triggered if you actually have prisoners
|
||||||
|
|
@ -2980,14 +3156,7 @@ on_yearly_common_events = {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Accolades yearly events
|
# Accolades yearly events
|
||||||
three_year_playable_pulse = {
|
|
||||||
events = {
|
|
||||||
ep2_accolade_events.0100 #Huntsmaster gives you or heir Hunter trait event
|
|
||||||
ep2_accolade_events.0200 #Blademaster gives you or heir Blademaster trait event
|
|
||||||
ep2_accolade_events.0300 #Master of Revels gives you or heir Reveler trait event
|
|
||||||
ach_maintenance_events.0002 # ACH Oath synergy culture rewards
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
on_yearly_invisible_events = {
|
on_yearly_invisible_events = {
|
||||||
random_events = {
|
random_events = {
|
||||||
|
|
@ -3833,43 +4002,43 @@ on_yearly_events = {
|
||||||
# 200 = tgp_dynastic_cycle_events.0050 # Debate the Favoured Movement and get ahead of them
|
# 200 = tgp_dynastic_cycle_events.0050 # Debate the Favoured Movement and get ahead of them
|
||||||
|
|
||||||
# TGP - Confucianism Events
|
# TGP - Confucianism Events
|
||||||
250 = tgp_china_yearly.0001 # Charitable Acts
|
# 250 = tgp_china_yearly.0001 # Charitable Acts
|
||||||
250 = tgp_china_yearly.0005 # Child mourns the loss of a father
|
# 250 = tgp_china_yearly.0005 # Child mourns the loss of a father
|
||||||
250 = tgp_china_yearly.0010 # Hack poet peddles "lucky" poems
|
# 250 = tgp_china_yearly.0010 # Hack poet peddles "lucky" poems
|
||||||
250 = tgp_china_yearly.0015 # Settle merchant dispute
|
# 250 = tgp_china_yearly.0015 # Settle merchant dispute
|
||||||
250 = tgp_china_yearly.0020 # County has unpaid back-taxes
|
# 250 = tgp_china_yearly.0020 # County has unpaid back-taxes
|
||||||
|
|
||||||
100 = tgp_japan_yearly_events.0001 # 0001 - Spreading Joy - furoshiki
|
# 100 = tgp_japan_yearly_events.0001 # 0001 - Spreading Joy - furoshiki
|
||||||
10 = tgp_japan_yearly_events.0021 # 0021 - Among the Blossoms - Hanami (Cherry Blossoms)
|
# 10 = tgp_japan_yearly_events.0021 # 0021 - Among the Blossoms - Hanami (Cherry Blossoms)
|
||||||
20 = tgp_japan_yearly_events.0026 # 0026 - Tales of the Tengu - Tengu
|
# 20 = tgp_japan_yearly_events.0026 # 0026 - Tales of the Tengu - Tengu
|
||||||
10 = tgp_japan_yearly_events.0036 # 0036 - Green Thumb
|
# 10 = tgp_japan_yearly_events.0036 # 0036 - Green Thumb
|
||||||
50 = tgp_japan_yearly_events.1010 # 1010 - Two buddhist sects are fighting, and ask you to pick a side
|
# 50 = tgp_japan_yearly_events.1010 # 1010 - Two buddhist sects are fighting, and ask you to pick a side
|
||||||
5 = tgp_japan_yearly_events.1020 # 1020 - Your senses are playing tricks on you, and you encounter a new Yokai
|
# 5 = tgp_japan_yearly_events.1020 # 1020 - Your senses are playing tricks on you, and you encounter a new Yokai
|
||||||
100 = tgp_japan_yearly_events.1030 # 1030 - You pray at a shrine for future success
|
# 100 = tgp_japan_yearly_events.1030 # 1030 - You pray at a shrine for future success
|
||||||
20 = tgp_japan_yearly_events.1050 # 1050 - You are accused of violating a dumb rule
|
# 20 = tgp_japan_yearly_events.1050 # 1050 - You are accused of violating a dumb rule
|
||||||
5 = tgp_japan_yearly_events.1060 # 1060 - A prisoner requests to be mercy killed
|
# 5 = tgp_japan_yearly_events.1060 # 1060 - A prisoner requests to be mercy killed
|
||||||
20 = tgp_japan_yearly_events.1070 # 1070 - A temple in your realm has burned down
|
# 20 = tgp_japan_yearly_events.1070 # 1070 - A temple in your realm has burned down
|
||||||
100 = tgp_japan_yearly_events.1080 # 1080 - Someone is fishing in the tsuri-dono
|
# 100 = tgp_japan_yearly_events.1080 # 1080 - Someone is fishing in the tsuri-dono
|
||||||
10 = tgp_japan_yearly_events.1090 # 1090 - Growing old with no heir
|
# 10 = tgp_japan_yearly_events.1090 # 1090 - Growing old with no heir
|
||||||
20 = tgp_japan_yearly_events.1100 # 1100 - You contract Guilt Fever
|
# 20 = tgp_japan_yearly_events.1100 # 1100 - You contract Guilt Fever
|
||||||
100 = tgp_japan_yearly_events.1110 # 1110 - An animal is seen near the shrine of a God
|
# 100 = tgp_japan_yearly_events.1110 # 1110 - An animal is seen near the shrine of a God
|
||||||
#5 = tgp_japan_yearly_events.1070 # 1070 A temple in your realm has burned down
|
#5 = tgp_japan_yearly_events.1070 # 1070 A temple in your realm has burned down
|
||||||
10 = tgp_japan_yearly_events.1090 # 1090 - Growing old with no heir
|
# 10 = tgp_japan_yearly_events.1090 # 1090 - Growing old with no heir
|
||||||
20 = tgp_japan_yearly_events.1100 # 1100 - You contract Guilt Fever
|
# 20 = tgp_japan_yearly_events.1100 # 1100 - You contract Guilt Fever
|
||||||
100 = tgp_japan_yearly_events.1110 # 1110 - An animal is seen near the shrine of a God
|
# 100 = tgp_japan_yearly_events.1110 # 1110 - An animal is seen near the shrine of a God
|
||||||
50 = tgp_japan_yearly_events.1130 # 1130 - Your daughter expresses an interest in poetry
|
# 50 = tgp_japan_yearly_events.1130 # 1130 - Your daughter expresses an interest in poetry
|
||||||
50 = tgp_japan_yearly_events.1150 # 1150 - The emperor is passing in your lands
|
# 50 = tgp_japan_yearly_events.1150 # 1150 - The emperor is passing in your lands
|
||||||
100 = tgp_japan_yearly_events.1160 # 1160 - You are offered a concubine from a rival house
|
# 100 = tgp_japan_yearly_events.1160 # 1160 - You are offered a concubine from a rival house
|
||||||
100 = tgp_japan_yearly_events.1170 # 1170 - The prose that you're reading is of an unknown language
|
# 100 = tgp_japan_yearly_events.1170 # 1170 - The prose that you're reading is of an unknown language
|
||||||
50 = tgp_japan_yearly_events.1180 # 1180 - You've been gifted a Bonsai tree for your garden
|
# 50 = tgp_japan_yearly_events.1180 # 1180 - You've been gifted a Bonsai tree for your garden
|
||||||
20 = tgp_japan_yearly_events.1190 # 1190 - You have a bad trait and you're making some decisions at night
|
# 20 = tgp_japan_yearly_events.1190 # 1190 - You have a bad trait and you're making some decisions at night
|
||||||
200 = tgp_japan_yearly_events.1200 # 1200 - Congestion in the Capital
|
# 200 = tgp_japan_yearly_events.1200 # 1200 - Congestion in the Capital
|
||||||
200 = tgp_japan_yearly_events.1210 # 1210 - Fit to Lead
|
# 200 = tgp_japan_yearly_events.1210 # 1210 - Fit to Lead
|
||||||
200 = tgp_japan_yearly_events.1225 # 1225 - A Poetic Life
|
# 200 = tgp_japan_yearly_events.1225 # 1225 - A Poetic Life
|
||||||
25 = tgp_japan_yearly_events.1220 # 1220 - You've witnessed a miracle made by a Buddhist monk
|
# 25 = tgp_japan_yearly_events.1220 # 1220 - You've witnessed a miracle made by a Buddhist monk
|
||||||
25 = tgp_japan_yearly_events.1230 # 1230 - Fear of a low durability artifact coming to life (Yokai)
|
# 25 = tgp_japan_yearly_events.1230 # 1230 - Fear of a low durability artifact coming to life (Yokai)
|
||||||
100 = tgp_japan_yearly_events.1240 # 1240 - A traveler poet visits court and can't read from right to left
|
# 100 = tgp_japan_yearly_events.1240 # 1240 - A traveler poet visits court and can't read from right to left
|
||||||
100 = tgp_japan_yearly_events.1260 #1260 - Begin a journey of poetic discovery
|
# 100 = tgp_japan_yearly_events.1260 #1260 - Begin a journey of poetic discovery
|
||||||
|
|
||||||
# TGP- Mandala Events
|
# TGP- Mandala Events
|
||||||
10000 = tgp_east_asia_mandala_events.9000 #Freak accident makes you seem inclined to divinity
|
10000 = tgp_east_asia_mandala_events.9000 #Freak accident makes you seem inclined to divinity
|
||||||
|
|
@ -3907,6 +4076,41 @@ on_yearly_events = {
|
||||||
1200 = elder_events.1500 # Faltering heart - Chance to kill your spouse if you're young and they are old
|
1200 = elder_events.1500 # Faltering heart - Chance to kill your spouse if you're young and they are old
|
||||||
1600 = elder_events.1600 # Faltering heart/Fragile bones/Infirm - Lose athletic
|
1600 = elder_events.1600 # Faltering heart/Fragile bones/Infirm - Lose athletic
|
||||||
|
|
||||||
|
# GDP - Merchant Events
|
||||||
|
300 = gdp_merchant.0010 #Associate asks to be adopted
|
||||||
|
300 = gdp_merchant.0020 #Associates struggle for empty/ineffectual Partner position
|
||||||
|
300 = gdp_merchant.1100 # Merchant overcrowded
|
||||||
|
300 = gdp_merchant.0025 # Artisan Purpose Recruitment Opportunity
|
||||||
|
300 = gdp_merchant.0030 # Creditor Purpose Recruitment Opportunity
|
||||||
|
300 = gdp_merchant.0035 # Caravaneer Purpose Recruitment Opportunity
|
||||||
|
300 = gdp_merchant.3000 # Translator court position boon
|
||||||
|
300 = gdp_merchant.3010 # Fixer court position boon
|
||||||
|
300 = gdp_merchant.3020 # Bailiff court position boon
|
||||||
|
300 = gdp_merchant.3030 # Market Agent court position boon
|
||||||
|
300 = gdp_merchant.3040 # Antiquarian court position boon
|
||||||
|
300 = gdp_merchant.4000 # You are a Silk Road Merchant in China/Korea who isn't Confucian
|
||||||
|
300 = gdp_merchant.4010 # You're a Merchant in China/Korea who hasn't taken the exam
|
||||||
|
300 = gdp_merchant.4030 # You're a Merchant outside of the Silk Road hearing about it
|
||||||
|
|
||||||
|
# GDP - Republic Events
|
||||||
|
300 = yearly_republic.1001 #Spouse ask you to stop working late and come to bed.
|
||||||
|
300 = yearly_republic.1002 #Spouse's bad opinion of you cause friction with her house.
|
||||||
|
300 = yearly_republic.1003 #Young relative has been in a fight that might cause friction with another house.
|
||||||
|
300 = yearly_republic.1005 #The masses have grown tired of the feud between two houses and demand change.
|
||||||
|
300 = yearly_republic.1008 # A patrician has hired a bandit for ill-deeds.
|
||||||
|
300 = yearly_republic.1009 # A spouse has set up a salon to spy on her peers.
|
||||||
|
300 = yearly_republic.1010 # An ambassador will report secrets in the palace and you can spy on them from the roof.
|
||||||
|
300 = yearly_republic.1011 # A summons from the council gives opportunity to shirk your duties.
|
||||||
|
10000 = yearly_republic.1012 #Doge's procession (Once Per life. Blocked by Character Flag)
|
||||||
|
1000 = yearly_republic.1013 #Marriage to the sea (Once Per life. Blocked by Character Flag)
|
||||||
|
# 300 = yearly_republic.1014 #Patrician with the same house ambition meet to align their interests.
|
||||||
|
300 = yearly_republic.1015 #A patrician offers to sell you their vote at the next assembly
|
||||||
|
300 = yearly_republic.1016 #You get the chance to threaten a patrician to have them give you their next vote.
|
||||||
|
300 = yearly_republic.1017 #Three wise patricians have gathered for a debate. Influence them for the next vote using logic and reason!
|
||||||
|
400 = yearly_republic.1018 #Get an artifact from a friend.
|
||||||
|
300 = yearly_republic.1019 #Get some trade category experience.
|
||||||
|
300 = yearly_republic.1020 #Get a modifier from a friendly house.
|
||||||
|
|
||||||
# BFJ
|
# BFJ
|
||||||
300 = blotsven.0001 # Blot-Sven starter event, gives you a chance at getting a claim for the kingdom of Sweden.
|
300 = blotsven.0001 # Blot-Sven starter event, gives you a chance at getting a claim for the kingdom of Sweden.
|
||||||
|
|
||||||
|
|
@ -4007,3 +4211,41 @@ on_yearly_tutorial_events = {
|
||||||
1 = tutorial.1001
|
1 = tutorial.1001
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
gdp_minority_merchant_pool_pulse = {
|
||||||
|
trigger = {
|
||||||
|
exists = global_var:gdp_minority_merchant_spawn_quota
|
||||||
|
global_var:gdp_minority_merchant_spawn_quota > 0
|
||||||
|
is_pool_character = yes
|
||||||
|
is_ai = yes
|
||||||
|
gdp_minority_merchant_candidate_trigger = yes
|
||||||
|
}
|
||||||
|
events = {
|
||||||
|
gdp_merchant.4002
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
gdp_merchant_pool_pulse = {
|
||||||
|
trigger = {
|
||||||
|
is_pool_character = yes
|
||||||
|
gdp_should_spawn_new_merchant_company_trigger = yes
|
||||||
|
}
|
||||||
|
random_events = {
|
||||||
|
chance_to_happen = 25
|
||||||
|
100 = gdp_merchant.4001 # Pool character becomes a merchant company
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
lifestyle_progress_pulse = {
|
||||||
|
first_valid_on_action = {
|
||||||
|
stewardship_lifestyle_progress_pulse
|
||||||
|
intrigue_lifestyle_progress_pulse
|
||||||
|
diplomacy_lifestyle_progress_pulse
|
||||||
|
martial_lifestyle_progress_pulse
|
||||||
|
learning_lifestyle_progress_pulse
|
||||||
|
wanderer_lifestyle_progress_pulse
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -334,6 +334,7 @@
|
||||||
@cheap_cost_base = 30
|
@cheap_cost_base = 30
|
||||||
@normal_cost_base = 60
|
@normal_cost_base = 60
|
||||||
@expensive_cost_base = 90
|
@expensive_cost_base = 90
|
||||||
|
@very_expensive_cost_base = @[expensive_cost_base * 2]
|
||||||
@main_cost_base = 100
|
@main_cost_base = 100
|
||||||
@main_cost_new_holding = 200
|
@main_cost_new_holding = 200
|
||||||
@tribal_cost_base = 15
|
@tribal_cost_base = 15
|
||||||
|
|
@ -346,6 +347,7 @@
|
||||||
@cheap_cost_scale_addition_per_tier = 15
|
@cheap_cost_scale_addition_per_tier = 15
|
||||||
@normal_cost_scale_addition_per_tier = 30
|
@normal_cost_scale_addition_per_tier = 30
|
||||||
@expensive_cost_scale_addition_per_tier = 45
|
@expensive_cost_scale_addition_per_tier = 45
|
||||||
|
@very_expensive_cost_scale_addition_per_tier = @[expensive_cost_scale_addition_per_tier * 2]
|
||||||
@main_cost_scale_addition_per_tier = 50
|
@main_cost_scale_addition_per_tier = 50
|
||||||
@tribal_cost_scale_addition_per_tier = 5
|
@tribal_cost_scale_addition_per_tier = 5
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
traveler_rank_up_1_threshold = 10
|
terrain_sell_price_mult = 0.001
|
||||||
|
terrain_buy_price_mult = -0.001
|
||||||
|
|
||||||
|
traveler_rank_up_1_threshold = 10
|
||||||
traveler_rank_up_2_threshold = 20
|
traveler_rank_up_2_threshold = 20
|
||||||
traveler_rank_up_3_threshold = 30
|
traveler_rank_up_3_threshold = 30
|
||||||
traveler_rank_up_4_threshold = 40
|
traveler_rank_up_4_threshold = 40
|
||||||
|
|
|
||||||
|
|
@ -1058,4 +1058,168 @@ ai_overlord_defensive_power_impact = {
|
||||||
add = -0.2
|
add = -0.2
|
||||||
}
|
}
|
||||||
else = {}
|
else = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reparations_max_debt_years_value = 1
|
||||||
|
|
||||||
|
|
||||||
|
aggressive_cb_ai_score_mult = {
|
||||||
|
value = 1
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
# other govs are ignored intentionally: you might be able to hold tribal as merits but that is not a good idea
|
||||||
|
scope:attacker = {
|
||||||
|
NOR = {
|
||||||
|
government_has_flag = government_is_tribal
|
||||||
|
government_has_flag = government_is_nomadic
|
||||||
|
government_has_flag = government_is_landless_adventurer # you change to those govs when you get land anyway
|
||||||
|
}
|
||||||
|
}
|
||||||
|
any_in_list = {
|
||||||
|
list = target_titles
|
||||||
|
feudal_clan_tribal_conquest_constraints = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
multiply = 0
|
||||||
|
}
|
||||||
|
multiply = zealous_war_on_head_of_faith_ai_score_value
|
||||||
|
multiply = struggle_wars_prioritise_struggle_targets_value
|
||||||
|
multiply = byzantium_conquests_ai_score_value
|
||||||
|
multiply = muslim_invasions_prefer_nonmuslims_ai_score_value
|
||||||
|
multiply = pam_peace_of_god_coreligionist_war_ai_score_value
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
common_cb_ai_score_mult = {
|
||||||
|
value = 1
|
||||||
|
multiply = frankokratia_leader_protection_value
|
||||||
|
multiply = mongol_invader_regular_cb_ai_score_value
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
common_cb_ai_score_mult_additive = {
|
||||||
|
add = house_relation_ai_score_value
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# NEOW 2555: no historical Mongol invasion story cycle. Neutralise legacy CB exception.
|
||||||
|
mongol_invader_regular_cb_ai_score_value = 1
|
||||||
|
|
||||||
|
|
||||||
|
religious_cb_ai_score_mult = {
|
||||||
|
value = 1
|
||||||
|
# Increase odds if the character is a vassal with Ghazi Contract
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
scope:attacker = {
|
||||||
|
top_liege != this
|
||||||
|
vassal_contract_has_flag = vassal_contract_cheaper_religious_war
|
||||||
|
}
|
||||||
|
}
|
||||||
|
add = 1
|
||||||
|
}
|
||||||
|
# Holy Wars are limited to connected neighbours to limit big empire expansions over weak realms.
|
||||||
|
if = {
|
||||||
|
limit = { religious_war_vassals_constraints = yes }
|
||||||
|
multiply = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
reparations_gold_debt_divisor_value = {
|
||||||
|
value = 1
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
gold < 0
|
||||||
|
yearly_character_income > 0
|
||||||
|
}
|
||||||
|
add = {
|
||||||
|
value = gold
|
||||||
|
multiply = -1
|
||||||
|
divide = yearly_character_income
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
reparations_max_gold_payment_value = {
|
||||||
|
value = yearly_character_income
|
||||||
|
multiply = reparations_max_debt_years_value
|
||||||
|
if = {
|
||||||
|
limit = { gold > 0 }
|
||||||
|
add = gold
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
divide = reparations_gold_debt_divisor_value
|
||||||
|
}
|
||||||
|
min = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
reparations_max_payment_value = {
|
||||||
|
value = yearly_character_income
|
||||||
|
multiply = reparations_max_debt_years_value
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
has_treasury = yes
|
||||||
|
government_allows = replace_gold_cost_by_treasury
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { treasury > 0 }
|
||||||
|
add = treasury
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
divide = reparations_treasury_debt_divisor_value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { gold > 0 }
|
||||||
|
add = gold
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
divide = reparations_gold_debt_divisor_value
|
||||||
|
}
|
||||||
|
min = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
reparations_treasury_debt_divisor_value = {
|
||||||
|
value = 1
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
treasury < 0
|
||||||
|
yearly_character_income > 0
|
||||||
|
}
|
||||||
|
add = {
|
||||||
|
value = treasury
|
||||||
|
multiply = -1
|
||||||
|
divide = yearly_character_income
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
vassalization_cb_ai_score_mult = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
OR = {
|
||||||
|
AND = {
|
||||||
|
scope:attacker = {
|
||||||
|
NOT = { government_has_flag = government_is_tribal }
|
||||||
|
}
|
||||||
|
scope:defender = {
|
||||||
|
government_has_flag = government_is_tribal
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scope:attacker = {
|
||||||
|
government_has_flag = government_is_mandala
|
||||||
|
vassal_limit_available < 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
value = 0
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
value = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1826,3 +1826,55 @@ former_infected_county_count = {
|
||||||
add = 0.1
|
add = 0.1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
epidemic_prosperity_loss_value = {
|
||||||
|
subtract = scope:base_loss
|
||||||
|
|
||||||
|
#This feeds into change_prosperity_progress in 00_epidemics
|
||||||
|
#minimal_prosperity_progress_loss is 10 and massive_prosperity_progress_loss is 100, so aim between them (as a negative value)
|
||||||
|
|
||||||
|
#Modifiers cover widespread loss, so we hit high-prosperity counties harder here
|
||||||
|
|
||||||
|
scope:epidemic = {
|
||||||
|
switch = {
|
||||||
|
trigger = outbreak_intensity
|
||||||
|
minor = { subtract = 2.5 }
|
||||||
|
major = { subtract = 5 }
|
||||||
|
apocalyptic = { subtract = 7.5 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Prosperity
|
||||||
|
subtract = {
|
||||||
|
value = prosperity_level
|
||||||
|
multiply = 0.3
|
||||||
|
}
|
||||||
|
|
||||||
|
multiply = {
|
||||||
|
value = 6
|
||||||
|
divide = num_county_holdings
|
||||||
|
}
|
||||||
|
|
||||||
|
multiply = {
|
||||||
|
value = 100
|
||||||
|
subtract = title_province.epidemic_resistance
|
||||||
|
multiply = 0.005
|
||||||
|
add = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
spread_settlement_size_mult_value = {
|
||||||
|
value = 1
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
province_size_level > spread_settlement_size_level_threshold
|
||||||
|
}
|
||||||
|
add = {
|
||||||
|
value = province_size_level
|
||||||
|
subtract = spread_settlement_size_level_threshold
|
||||||
|
multiply = spread_increase_mult_per_settlement_size_level
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,8 @@
|
||||||
value = highest_held_title_tier
|
value = highest_held_title_tier
|
||||||
subtract = 2
|
subtract = 2
|
||||||
min = tier_barony
|
min = tier_barony
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# CK3 1.21: the old AI estate modifier value is no longer defined by vanilla.
|
||||||
|
# Retain its neutral weighting in NEOW palace/minority buildings.
|
||||||
|
estate_building_ai_modifier_value = 0
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -404,7 +404,7 @@ create_monastic_decision_effect = {
|
||||||
}
|
}
|
||||||
limit = {
|
limit = {
|
||||||
has_holding = no
|
has_holding = no
|
||||||
has_ongoing_construction = no
|
has_ongoing_holding_construction = no
|
||||||
}
|
}
|
||||||
begin_create_holding = church_holding
|
begin_create_holding = church_holding
|
||||||
save_scope_as = province
|
save_scope_as = province
|
||||||
|
|
@ -1044,9 +1044,9 @@ take_vows_demand_effect = {
|
||||||
has_trait = bastard
|
has_trait = bastard
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_relation_rival = {
|
set_relation_rival_effect = {
|
||||||
target = scope:puppet_or_actor
|
TARGET = scope:puppet_or_actor
|
||||||
reason = rival_forced_to_take_vows
|
REASON = rival_forced_to_take_vows
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
|
|
@ -3794,6 +3794,10 @@ monastic_lease_swapping_effect = {
|
||||||
}
|
}
|
||||||
any_leased_title = {
|
any_leased_title = {
|
||||||
monastic_lease_can_be_suborned_trigger = { ORDER = scope:holy_order }
|
monastic_lease_can_be_suborned_trigger = { ORDER = scope:holy_order }
|
||||||
|
holder ?= {
|
||||||
|
primary_title.tier > tier_barony
|
||||||
|
domain_size > 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
scope:holy_order_leader.var:old_order ?= this
|
scope:holy_order_leader.var:old_order ?= this
|
||||||
}
|
}
|
||||||
|
|
@ -3803,6 +3807,10 @@ monastic_lease_swapping_effect = {
|
||||||
}
|
}
|
||||||
any_leased_title = {
|
any_leased_title = {
|
||||||
monastic_lease_can_be_suborned_trigger = { ORDER = scope:holy_order }
|
monastic_lease_can_be_suborned_trigger = { ORDER = scope:holy_order }
|
||||||
|
holder ?= {
|
||||||
|
primary_title.tier > tier_barony
|
||||||
|
domain_size > 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
save_scope_as = target_order
|
save_scope_as = target_order
|
||||||
|
|
@ -3813,6 +3821,10 @@ monastic_lease_swapping_effect = {
|
||||||
}
|
}
|
||||||
limit = {
|
limit = {
|
||||||
monastic_lease_can_be_suborned_trigger = { ORDER = scope:holy_order }
|
monastic_lease_can_be_suborned_trigger = { ORDER = scope:holy_order }
|
||||||
|
holder ?= { # A baron's title or someone's only title cannot be leased out again
|
||||||
|
primary_title.tier > tier_barony
|
||||||
|
domain_size > 1
|
||||||
|
}
|
||||||
NOT = {
|
NOT = {
|
||||||
county = scope:target_order.leader.capital_county
|
county = scope:target_order.leader.capital_county
|
||||||
}
|
}
|
||||||
|
|
@ -3833,6 +3845,10 @@ monastic_lease_swapping_effect = {
|
||||||
}
|
}
|
||||||
limit = {
|
limit = {
|
||||||
monastic_lease_can_be_suborned_trigger = { ORDER = scope:holy_order }
|
monastic_lease_can_be_suborned_trigger = { ORDER = scope:holy_order }
|
||||||
|
holder ?= {
|
||||||
|
primary_title.tier > tier_barony
|
||||||
|
domain_size > 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
save_scope_as = taken_monastery
|
save_scope_as = taken_monastery
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1403,7 +1403,7 @@ add_holy_site_fallback_special_district_slot_effect = {
|
||||||
add_special_district_slot = holy_site_mosque_01_district
|
add_special_district_slot = holy_site_mosque_01_district
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = { $FAITH$ = { religion = religion:christianity_religion } }
|
limit = { $FAITH$ = { OR = { religion = religion:christianity_religion religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } } }
|
||||||
add_special_district_slot = holy_site_cathedral_01_district
|
add_special_district_slot = holy_site_cathedral_01_district
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
|
|
|
||||||
|
|
@ -14590,6 +14590,8 @@ abduct_outcome_roll_effect = {
|
||||||
random = {
|
random = {
|
||||||
chance = scope:discovery_chance
|
chance = scope:discovery_chance
|
||||||
custom_tooltip = abduct_become_discovered_roll_tt
|
custom_tooltip = abduct_become_discovered_roll_tt
|
||||||
|
#Guelphs & Ghibellines
|
||||||
|
gg_failed_scheme_effect = { SCHEME = abduct }
|
||||||
save_scope_value_as = {
|
save_scope_value_as = {
|
||||||
name = scheme_discovered
|
name = scheme_discovered
|
||||||
value = yes
|
value = yes
|
||||||
|
|
@ -14675,6 +14677,13 @@ abduct_success_effect = {
|
||||||
}
|
}
|
||||||
|
|
||||||
abduct_failure_effect = {
|
abduct_failure_effect = {
|
||||||
|
#Guelphs & Ghibellines
|
||||||
|
gg_involvement_scheme_effect = { STATE = failure }
|
||||||
|
gg_triggered_catalyst_effect = {
|
||||||
|
ACTOR = scope:owner
|
||||||
|
RECIPIENT = scope:target
|
||||||
|
CATALYST = catalyst_attempt_abduct_opposite_party
|
||||||
|
}
|
||||||
#Add Watchful Modifier to the target
|
#Add Watchful Modifier to the target
|
||||||
scope:target = {
|
scope:target = {
|
||||||
show_as_tooltip = {
|
show_as_tooltip = {
|
||||||
|
|
|
||||||
|
|
@ -1757,7 +1757,6 @@ purchase_land_interaction_shortened_effect = {
|
||||||
if = {
|
if = {
|
||||||
limit = { character:90028 ?= this }
|
limit = { character:90028 ?= this }
|
||||||
custom_tooltip = ep3_story_cycle_harrying.3053.b.tt
|
custom_tooltip = ep3_story_cycle_harrying.3053.b.tt
|
||||||
add_character_flag = hereward_settled_flag
|
|
||||||
}
|
}
|
||||||
show_as_tooltip = {
|
show_as_tooltip = {
|
||||||
if = {
|
if = {
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,41 @@ ai_has_warlike_personality = {
|
||||||
vassal_contract_has_flag = admin_ai_is_builder
|
vassal_contract_has_flag = admin_ai_is_builder
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
AND = {
|
||||||
|
has_trait = despoiler_of_byzantium
|
||||||
|
any_held_title = {
|
||||||
|
OR = {
|
||||||
|
this = title:e_byzantium
|
||||||
|
this = title:e_latin_empire
|
||||||
|
AND = {
|
||||||
|
tier < tier_empire
|
||||||
|
OR = {
|
||||||
|
empire ?= title:e_byzantium
|
||||||
|
empire ?= title:e_latin_empire
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
vassal_contract_has_flag = admin_ai_is_warlike # Admin vassals with the "Frontier" administration consider it their job to expand
|
||||||
|
house ?= { # The unity decision "Organize House Members for War" forces AI house members to adopt this stance
|
||||||
|
has_house_modifier = unity_house_organized_for_war_modifier
|
||||||
|
}
|
||||||
|
AND = { # They are Detractors during the FP3 Struggle in the Unrest Phase
|
||||||
|
has_trait = fp3_struggle_detractor
|
||||||
|
any_character_struggle = {
|
||||||
|
trigger_if = {
|
||||||
|
limit = { is_struggle_type = persian_struggle }
|
||||||
|
is_struggle_phase = struggle_persia_phase_unrest
|
||||||
|
}
|
||||||
|
trigger_else = { always = no }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
AND = { # Nomads are not 'unpredictable', they are Warlike instead
|
||||||
|
government_has_flag = government_is_nomadic
|
||||||
|
ai_has_cautious_personality = no
|
||||||
|
economical_ai_guts_trigger = no
|
||||||
|
}
|
||||||
# Or we're on the warpath.
|
# Or we're on the warpath.
|
||||||
has_variable = imperial_expedition_charged
|
has_variable = imperial_expedition_charged
|
||||||
#Or our Devaraja decrees it
|
#Or our Devaraja decrees it
|
||||||
|
|
|
||||||
|
|
@ -1657,6 +1657,16 @@ portrait_italian_clothing_spouse_trigger = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### GDP ###
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### General clothing triggers ###
|
### General clothing triggers ###
|
||||||
|
|
||||||
portrait_era1_trigger = { # Intended to primarily cover the years 850 to 1000
|
portrait_era1_trigger = { # Intended to primarily cover the years 850 to 1000
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,19 @@ coa_feudal_trigger = {
|
||||||
government_has_flag = government_is_feudal
|
government_has_flag = government_is_feudal
|
||||||
}
|
}
|
||||||
|
|
||||||
|
coa_merchant_trigger = {
|
||||||
|
OR = {
|
||||||
|
AND = {
|
||||||
|
exists = root
|
||||||
|
government_has_flag = government_is_merchant
|
||||||
|
}
|
||||||
|
scope:title ?= {
|
||||||
|
exists = holder
|
||||||
|
holder = { government_has_flag = government_is_merchant }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
coa_french_trigger = {
|
coa_french_trigger = {
|
||||||
OR = {
|
OR = {
|
||||||
scope:culture = { has_coa_gfx = french_coa_gfx }
|
scope:culture = { has_coa_gfx = french_coa_gfx }
|
||||||
|
|
|
||||||
|
|
@ -423,13 +423,13 @@ employer_has_treasury_to_offer_job_trigger = {
|
||||||
scope:employer = {
|
scope:employer = {
|
||||||
OR = {
|
OR = {
|
||||||
treasury_or_gold >= {
|
treasury_or_gold >= {
|
||||||
value = 50
|
value = 15
|
||||||
multiply = task_contract_employer_tier_gold_multiplier_value
|
multiply = task_contract_employer_tier_gold_multiplier_value
|
||||||
}
|
}
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = { government_allows = barter }
|
limit = { government_allows = barter }
|
||||||
barter_goods >= {
|
barter_goods >= {
|
||||||
value = 50
|
value = 15
|
||||||
multiply = task_contract_employer_tier_gold_multiplier_value
|
multiply = task_contract_employer_tier_gold_multiplier_value
|
||||||
# wanua rulers start with lower than 100 barter goods
|
# wanua rulers start with lower than 100 barter goods
|
||||||
# divide = define:NBarter|BARTER_GOODS_TO_LOOT_MULT
|
# divide = define:NBarter|BARTER_GOODS_TO_LOOT_MULT
|
||||||
|
|
|
||||||
|
|
@ -89,8 +89,6 @@ temperate_seasons_trigger = {
|
||||||
geographical_region = world_europe
|
geographical_region = world_europe
|
||||||
geographical_region = world_asia_minor
|
geographical_region = world_asia_minor
|
||||||
geographical_region = world_middle_east
|
geographical_region = world_middle_east
|
||||||
geographical_region = world_india_rajastan
|
|
||||||
geographical_region = world_india_bengal
|
|
||||||
geographical_region = world_africa_north
|
geographical_region = world_africa_north
|
||||||
geographical_region = world_steppe
|
geographical_region = world_steppe
|
||||||
geographical_region = world_tibet
|
geographical_region = world_tibet
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,27 @@ fp2_character_uninvolved_in_struggle_trigger = {
|
||||||
always = no
|
always = no
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# CK3 1.21: allow the new Urbanism legacy on compatible characters.
|
||||||
|
eligible_for_fp2_urbanism_legacy_trigger = {
|
||||||
|
has_fp2_dlc_trigger = yes
|
||||||
|
dynasty.dynast = {
|
||||||
|
OR = {
|
||||||
|
game_rule_unrestricted_dynasty_legacies_trigger = yes
|
||||||
|
any_character_struggle = {
|
||||||
|
involvement = involved
|
||||||
|
is_struggle_type = iberian_struggle
|
||||||
|
}
|
||||||
|
culture = {
|
||||||
|
has_cultural_pillar = heritage_iberian
|
||||||
|
}
|
||||||
|
capital_province ?= {
|
||||||
|
geographical_region = world_europe_west_iberia
|
||||||
|
}
|
||||||
|
government_has_flag = government_is_republic # Republics also gain access to this legacy
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
eligible_for_fp2_dynasty_legacies_trigger = {
|
eligible_for_fp2_dynasty_legacies_trigger = {
|
||||||
has_fp2_dlc_trigger = yes
|
has_fp2_dlc_trigger = yes
|
||||||
dynasty.dynast = {
|
dynasty.dynast = {
|
||||||
|
|
@ -42,7 +63,7 @@ eligible_for_fp2_dynasty_legacies_trigger = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#is_toledo_ownership_valid_trigger = {
|
is_toledo_ownership_valid_trigger = {
|
||||||
always = no
|
always = no
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -403,3 +403,36 @@ ep3_orthodox_faith_trigger = {
|
||||||
religion = religion:oriental_orthodox_religion
|
religion = religion:oriental_orthodox_religion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#Byzantine vassal who swears to the new king of their de jure kingdom when Byzantium shatters
|
||||||
|
ep3_frankokratia_byz_vassal_joins_new_kingdom_trigger = {
|
||||||
|
is_in_list = byz_vassals
|
||||||
|
highest_held_title_tier <= tier_duchy
|
||||||
|
#Only the openly disloyal refuse
|
||||||
|
OR = {
|
||||||
|
has_trait = loyal
|
||||||
|
NOR = {
|
||||||
|
has_trait = disloyal
|
||||||
|
has_trait = ambitious
|
||||||
|
AND = {
|
||||||
|
ai_boldness >= medium_positive_ai_value
|
||||||
|
ai_honor <= medium_negative_ai_value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
capital_county = {
|
||||||
|
save_temporary_scope_as = prime_title
|
||||||
|
kingdom.holder ?= {
|
||||||
|
is_in_list = byz_vassals
|
||||||
|
}
|
||||||
|
}
|
||||||
|
has_same_government = scope:prime_title.kingdom.holder
|
||||||
|
#One of their counties borders the king's realm
|
||||||
|
any_sub_realm_county = {
|
||||||
|
any_neighboring_county = {
|
||||||
|
holder = {
|
||||||
|
target_is_same_character_or_above = scope:prime_title.kingdom.holder
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -183,6 +183,8 @@ pam_ecumenical_council_has_quorum_trigger = {
|
||||||
|
|
||||||
pam_mass_rite_conversion_requirements_trigger = {
|
pam_mass_rite_conversion_requirements_trigger = {
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
|
is_landless_adventurer = no
|
||||||
|
is_landless_merchant = no
|
||||||
highest_held_title_tier >= tier_duchy
|
highest_held_title_tier >= tier_duchy
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -640,10 +642,8 @@ pam_valid_investiture_council_host_trigger = {
|
||||||
# True if TARGET, a county title, lies within a clerical region the scoped character holds.
|
# True if TARGET, a county title, lies within a clerical region the scoped character holds.
|
||||||
pam_sell_claim_target_in_own_clerical_region_trigger = {
|
pam_sell_claim_target_in_own_clerical_region_trigger = {
|
||||||
exists = $TARGET$.clerical_region_title
|
exists = $TARGET$.clerical_region_title
|
||||||
any_held_title = {
|
$TARGET$.clerical_region_title.holder ?= this
|
||||||
has_clerical_region = yes
|
$TARGET$.clerical_region_title = { has_clerical_region = yes }
|
||||||
this = $TARGET$.clerical_region_title
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Shared with has_valid_target_showing_failures_only: can_be_picked_title is not rechecked on send
|
# Shared with has_valid_target_showing_failures_only: can_be_picked_title is not rechecked on send
|
||||||
|
|
@ -792,6 +792,8 @@ can_influence_clerical_appointment_trigger = {
|
||||||
|
|
||||||
pam_cathedral_project_requirements_trigger = {
|
pam_cathedral_project_requirements_trigger = {
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
|
is_landless_adventurer = no
|
||||||
|
is_landless_merchant = no
|
||||||
highest_held_title_tier >= tier_duchy
|
highest_held_title_tier >= tier_duchy
|
||||||
has_spiritual_fulfillment_type = christian_fulfillment
|
has_spiritual_fulfillment_type = christian_fulfillment
|
||||||
}
|
}
|
||||||
|
|
@ -831,7 +833,7 @@ is_valid_cathedral_spot_in_province_trigger = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
has_great_building = no
|
has_great_district = no
|
||||||
}
|
}
|
||||||
|
|
||||||
has_cathedral_great_project_building_trigger = {
|
has_cathedral_great_project_building_trigger = {
|
||||||
|
|
@ -842,13 +844,10 @@ is_valid_cathedral_upgrade_spot_in_province_trigger = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = great_project_cathedral_01_required_for_upgrade_tt
|
text = great_project_cathedral_01_required_for_upgrade_tt
|
||||||
has_building = great_project_cathedral_01
|
has_building = great_project_cathedral_01
|
||||||
NOT = { has_building = great_project_cathedral_02 }
|
|
||||||
NOT = { has_building = great_project_cathedral_03 }
|
|
||||||
}
|
}
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = no_cathedral_upgrade_in_progress_tt
|
text = no_cathedral_upgrade_in_progress_tt
|
||||||
NOR = {
|
NOR = {
|
||||||
has_building = great_project_cathedral_under_construction
|
|
||||||
any_great_project_in_province = {
|
any_great_project_in_province = {
|
||||||
OR = {
|
OR = {
|
||||||
great_project_type = pam_cathedral_01
|
great_project_type = pam_cathedral_01
|
||||||
|
|
@ -864,12 +863,10 @@ is_valid_cathedral_tier_3_upgrade_spot_in_province_trigger = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = great_project_cathedral_02_required_for_tier_3_upgrade_tt
|
text = great_project_cathedral_02_required_for_tier_3_upgrade_tt
|
||||||
has_building = great_project_cathedral_02
|
has_building = great_project_cathedral_02
|
||||||
NOT = { has_building = great_project_cathedral_03 }
|
|
||||||
}
|
}
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = no_cathedral_upgrade_in_progress_tt
|
text = no_cathedral_upgrade_in_progress_tt
|
||||||
NOR = {
|
NOR = {
|
||||||
has_building = great_project_cathedral_under_construction
|
|
||||||
any_great_project_in_province = {
|
any_great_project_in_province = {
|
||||||
OR = {
|
OR = {
|
||||||
great_project_type = pam_cathedral_01
|
great_project_type = pam_cathedral_01
|
||||||
|
|
@ -896,14 +893,20 @@ has_accessible_cathedral_tier_2_upgrade_site_trigger = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_else = {
|
trigger_else = {
|
||||||
|
# Matches the actual clerical_region_theocracy_capitals province filter
|
||||||
faith = {
|
faith = {
|
||||||
any_faith_ruler = {
|
save_temporary_scope_as = cathedral_faith_temp
|
||||||
highest_held_title_tier >= tier_county
|
OR = {
|
||||||
any_realm_county = {
|
any_clerical_region_title = {
|
||||||
any_county_province = {
|
holder ?= {
|
||||||
is_valid_cathedral_upgrade_spot_in_province_trigger = yes
|
faith = scope:cathedral_faith_temp
|
||||||
|
capital_province ?= { is_valid_cathedral_upgrade_spot_in_province_trigger = yes }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
any_faith_ruler = {
|
||||||
|
government_has_mechanic = theocracy
|
||||||
|
capital_province ?= { is_valid_cathedral_upgrade_spot_in_province_trigger = yes }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -924,14 +927,20 @@ has_accessible_cathedral_tier_3_upgrade_site_trigger = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_else = {
|
trigger_else = {
|
||||||
|
# Same as above
|
||||||
faith = {
|
faith = {
|
||||||
any_faith_ruler = {
|
save_temporary_scope_as = cathedral_faith_temp
|
||||||
highest_held_title_tier >= tier_county
|
OR = {
|
||||||
any_realm_county = {
|
any_clerical_region_title = {
|
||||||
any_county_province = {
|
holder ?= {
|
||||||
is_valid_cathedral_tier_3_upgrade_spot_in_province_trigger = yes
|
faith = scope:cathedral_faith_temp
|
||||||
|
capital_province ?= { is_valid_cathedral_tier_3_upgrade_spot_in_province_trigger = yes }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
any_faith_ruler = {
|
||||||
|
government_has_mechanic = theocracy
|
||||||
|
capital_province ?= { is_valid_cathedral_tier_3_upgrade_spot_in_province_trigger = yes }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1138,12 +1147,12 @@ holy_order_range_trigger = {
|
||||||
county = {
|
county = {
|
||||||
save_temporary_scope_as = monastic_county
|
save_temporary_scope_as = monastic_county
|
||||||
OR = {
|
OR = {
|
||||||
|
clerical_region_title.holder ?= $CHARACTER$
|
||||||
$CHARACTER$ = {
|
$CHARACTER$ = {
|
||||||
any_sub_realm_county = {
|
any_sub_realm_county = {
|
||||||
this = scope:monastic_county
|
this = scope:monastic_county
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
clerical_region_title.holder ?= $CHARACTER$
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
county = {
|
county = {
|
||||||
|
|
@ -1273,13 +1282,23 @@ can_have_realm_priest_puppet_trigger = {
|
||||||
rite = { rite_has_doctrine = doctrine_theocracy_temporal }
|
rite = { rite_has_doctrine = doctrine_theocracy_temporal }
|
||||||
is_clergy = no
|
is_clergy = no
|
||||||
tgp_has_access_to_ministry_trigger = no
|
tgp_has_access_to_ministry_trigger = no
|
||||||
NOT = { government_has_flag = government_is_nomadic }
|
NOR = {
|
||||||
|
government_has_flag = government_is_nomadic
|
||||||
|
government_has_flag = government_is_merchant
|
||||||
|
government_has_flag = government_is_landless_adventurer
|
||||||
|
gdp_use_patrician_council_trigger = yes
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Ecclesiastical government is landless_playable, so do not filter these on is_landed
|
# Ecclesiastical government is landless_playable, but a landless one still needs a domicile or cardinalate to be playable
|
||||||
pam_landless_playable_cleric_trigger = {
|
pam_landless_playable_cleric_trigger = {
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
government_has_flag = government_is_ecclesiastical
|
government_has_flag = government_is_ecclesiastical
|
||||||
|
OR = {
|
||||||
|
is_landed = yes
|
||||||
|
exists = clerical_elector_title
|
||||||
|
has_domicile = yes
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Archbishop (clerical region title holder) or above them in the hierarchy: Head of Rite or Head of Faith
|
# Archbishop (clerical region title holder) or above them in the hierarchy: Head of Rite or Head of Faith
|
||||||
|
|
@ -1366,7 +1385,7 @@ can_manage_faith_holy_sites_trigger = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Substitute authority for a faith with no head of faith: a realm priest puppet plus piety standing.
|
# Substitute authority for a faith with no head of faith: a clerical puppet plus piety standing.
|
||||||
can_manage_faith_holy_sites_without_hof_trigger = {
|
can_manage_faith_holy_sites_without_hof_trigger = {
|
||||||
OR = {
|
OR = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
|
|
@ -1374,7 +1393,10 @@ can_manage_faith_holy_sites_without_hof_trigger = {
|
||||||
# puppet: errors on non-playable characters, so we only check playable ones and tooltips never run it
|
# puppet: errors on non-playable characters, so we only check playable ones and tooltips never run it
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = { is_playable_character = yes }
|
limit = { is_playable_character = yes }
|
||||||
exists = puppet:theological_agent_puppet
|
OR = {
|
||||||
|
exists = puppet:theological_agent_puppet
|
||||||
|
exists = puppet:external_theological_agent_puppet
|
||||||
|
}
|
||||||
}
|
}
|
||||||
trigger_else = {
|
trigger_else = {
|
||||||
always = no
|
always = no
|
||||||
|
|
@ -1457,11 +1479,11 @@ ecumenical_shareable_unknown_tenet_for_root_trigger = {
|
||||||
|
|
||||||
pam_request_legitimacy_priest_trigger = {
|
pam_request_legitimacy_priest_trigger = {
|
||||||
this != $CHARACTER$
|
this != $CHARACTER$
|
||||||
OR = {
|
|
||||||
$CHARACTER$.religious_head_or_challenger = this
|
|
||||||
government_has_flag = government_is_ecclesiastical
|
|
||||||
}
|
|
||||||
faith = $CHARACTER$.faith
|
faith = $CHARACTER$.faith
|
||||||
|
OR = {
|
||||||
|
government_has_flag = government_is_ecclesiastical
|
||||||
|
$CHARACTER$.religious_head_or_challenger = this
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pam_ecclesiastical_superior_or_subordinate_trigger = {
|
pam_ecclesiastical_superior_or_subordinate_trigger = {
|
||||||
|
|
@ -1656,6 +1678,27 @@ pam_grants_own_divorce_trigger = {
|
||||||
pam_is_clergy_ruler_trigger = yes
|
pam_is_clergy_ruler_trigger = yes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
has_clergy_to_petition_for_divorce_trigger = {
|
||||||
|
OR = {
|
||||||
|
faith ?= {
|
||||||
|
has_doctrine = doctrine_spiritual_head
|
||||||
|
exists = religious_head
|
||||||
|
}
|
||||||
|
cp:councillor_court_chaplain ?= {
|
||||||
|
highest_held_title_tier >= tier_duchy
|
||||||
|
is_clergy = yes
|
||||||
|
}
|
||||||
|
AND = {
|
||||||
|
government_has_flag = government_is_theocracy
|
||||||
|
exists = superior
|
||||||
|
}
|
||||||
|
cp:councillor_court_chaplain.superior ?= {
|
||||||
|
highest_held_title_tier >= tier_duchy
|
||||||
|
is_clergy = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pam_clergy_continence_expected_trigger = {
|
pam_clergy_continence_expected_trigger = {
|
||||||
rite = {
|
rite = {
|
||||||
NOR = {
|
NOR = {
|
||||||
|
|
@ -1870,12 +1913,13 @@ pam_ai_deposable_cleric_trigger = {
|
||||||
pam_beseech_claims_access_trigger = {
|
pam_beseech_claims_access_trigger = {
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
pam_clergy_interactions_faith_trigger = yes
|
pam_clergy_interactions_faith_trigger = yes
|
||||||
NOT = {
|
NOR = {
|
||||||
government_has_flag = government_is_ecclesiastical
|
government_has_flag = government_is_ecclesiastical
|
||||||
|
government_has_flag = government_is_republic
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pam_actor_rite_has_core_simony_trigger = {
|
pam_actor_rite_has_core_simony_trigger = {
|
||||||
scope:actor = {
|
scope:puppet_or_actor = {
|
||||||
rite = {
|
rite = {
|
||||||
rite_has_parameter = tenet_simony_gold_donations
|
rite_has_parameter = tenet_simony_gold_donations
|
||||||
}
|
}
|
||||||
|
|
@ -1976,6 +2020,7 @@ pam_rite_sway_liege_lane_trigger = {
|
||||||
|
|
||||||
# $ACTOR$ and $RECIPIENT$ dioceses border or are nearby, and the scan is bounded by the actor's diocese
|
# $ACTOR$ and $RECIPIENT$ dioceses border or are nearby, and the scan is bounded by the actor's diocese
|
||||||
pam_rite_sway_adjacent_diocese_trigger = {
|
pam_rite_sway_adjacent_diocese_trigger = {
|
||||||
|
exists = $RECIPIENT$.capital_county.clerical_region_title # Both branches compare against it, and ?= only forgives the left side
|
||||||
OR = {
|
OR = {
|
||||||
$ACTOR$.capital_county.clerical_region_title ?= {
|
$ACTOR$.capital_county.clerical_region_title ?= {
|
||||||
any_county_in_clerical_region = {
|
any_county_in_clerical_region = {
|
||||||
|
|
@ -2732,6 +2777,17 @@ pam_tenet_is_christian_dogma_trigger = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Tenet scope. $FAITH$ is the faith judging the tenet
|
||||||
|
tenet_is_anathema_to_faith_trigger = {
|
||||||
|
$FAITH$ = { save_temporary_scope_as = affinity_faith }
|
||||||
|
anathema_to_faith > 0
|
||||||
|
}
|
||||||
|
|
||||||
|
tenet_is_intrinsic_to_faith_trigger = {
|
||||||
|
$FAITH$ = { save_temporary_scope_as = affinity_faith }
|
||||||
|
intrinsic_to_faith > 0
|
||||||
|
}
|
||||||
|
|
||||||
# $CHARACTER$ is the Head of Faith deciding, and the tenet is the scope
|
# $CHARACTER$ is the Head of Faith deciding, and the tenet is the scope
|
||||||
# We only apply this to the AI, so players keep the full list
|
# We only apply this to the AI, so players keep the full list
|
||||||
pam_tenet_ai_may_permit_trigger = {
|
pam_tenet_ai_may_permit_trigger = {
|
||||||
|
|
@ -2751,6 +2807,7 @@ pam_tenet_ai_may_permit_trigger = {
|
||||||
OR = {
|
OR = {
|
||||||
pam_tenet_is_christological_heresy_trigger = yes
|
pam_tenet_is_christological_heresy_trigger = yes
|
||||||
pam_tenet_is_christian_abomination_trigger = yes
|
pam_tenet_is_christian_abomination_trigger = yes
|
||||||
|
tenet_is_anathema_to_faith_trigger = { FAITH = $CHARACTER$.faith }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pam_tenet_is_overwhelmingly_popular_trigger = { CHARACTER = $CHARACTER$ }
|
pam_tenet_is_overwhelmingly_popular_trigger = { CHARACTER = $CHARACTER$ }
|
||||||
|
|
@ -2761,6 +2818,7 @@ pam_tenet_ai_may_permit_trigger = {
|
||||||
}
|
}
|
||||||
|
|
||||||
pam_tenet_ai_may_prohibit_trigger = {
|
pam_tenet_ai_may_prohibit_trigger = {
|
||||||
|
NOT = { tenet_is_intrinsic_to_faith_trigger = { FAITH = $CHARACTER$.faith } }
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = {
|
limit = {
|
||||||
$CHARACTER$.faith = { has_tenet_popularity_trigger = yes }
|
$CHARACTER$.faith = { has_tenet_popularity_trigger = yes }
|
||||||
|
|
@ -2768,6 +2826,7 @@ pam_tenet_ai_may_prohibit_trigger = {
|
||||||
}
|
}
|
||||||
pam_tenet_is_unpopular_trigger = { CHARACTER = $CHARACTER$ }
|
pam_tenet_is_unpopular_trigger = { CHARACTER = $CHARACTER$ }
|
||||||
}
|
}
|
||||||
|
pam_tenet_ai_may_prohibit_rite_tenet_trigger = { CHARACTER = $CHARACTER$ }
|
||||||
}
|
}
|
||||||
|
|
||||||
# Phase first: this runs per candidate tenet, so outside Reform the global lookup ends it at once
|
# Phase first: this runs per candidate tenet, so outside Reform the global lookup ends it at once
|
||||||
|
|
@ -2778,6 +2837,68 @@ pam_tenet_ai_should_purge_trigger = {
|
||||||
pam_tenet_is_christian_abomination_trigger = yes
|
pam_tenet_is_christian_abomination_trigger = yes
|
||||||
}
|
}
|
||||||
$CHARACTER$.faith = { has_tenet_popularity_trigger = yes }
|
$CHARACTER$.faith = { has_tenet_popularity_trigger = yes }
|
||||||
|
NOT = { tenet_is_intrinsic_to_faith_trigger = { FAITH = $CHARACTER$.faith } }
|
||||||
|
pam_tenet_ai_may_prohibit_rite_tenet_trigger = { CHARACTER = $CHARACTER$ }
|
||||||
|
}
|
||||||
|
|
||||||
|
# Tenet scope. An anathema that $CHARACTER$'s rite permits
|
||||||
|
pam_tenet_ai_should_prohibit_anathema_trigger = {
|
||||||
|
save_temporary_scope_as = pam_anathema_candidate
|
||||||
|
$CHARACTER$.rite = {
|
||||||
|
has_tenet_status = { tenet = scope:pam_anathema_candidate status = permitted }
|
||||||
|
}
|
||||||
|
tenet_is_anathema_to_faith_trigger = { FAITH = $CHARACTER$.faith }
|
||||||
|
pam_tenet_ai_may_prohibit_trigger = { CHARACTER = $CHARACTER$ }
|
||||||
|
}
|
||||||
|
|
||||||
|
# Tenet scope. An intrinsic tenet that $CHARACTER$'s rite prohibits
|
||||||
|
pam_tenet_ai_should_permit_intrinsic_trigger = {
|
||||||
|
save_temporary_scope_as = pam_intrinsic_candidate
|
||||||
|
$CHARACTER$.rite = {
|
||||||
|
has_tenet_status = { tenet = scope:pam_intrinsic_candidate status = prohibited }
|
||||||
|
}
|
||||||
|
tenet_is_intrinsic_to_faith_trigger = { FAITH = $CHARACTER$.faith }
|
||||||
|
pam_tenet_ai_may_permit_trigger = { CHARACTER = $CHARACTER$ }
|
||||||
|
}
|
||||||
|
|
||||||
|
# Prohibiting a branched rite's core tenet drives that rite towards heresy, so only zealous AI Heads of Faith do it
|
||||||
|
# The bigger the largest rite holding the tenet, the more extreme they must also be
|
||||||
|
pam_tenet_ai_may_prohibit_rite_tenet_trigger = {
|
||||||
|
save_temporary_scope_as = pam_protected_tenet
|
||||||
|
$CHARACTER$.faith = {
|
||||||
|
save_temporary_scope_value_as = {
|
||||||
|
name = pam_protected_tenet_rite_counties
|
||||||
|
value = pam_largest_branched_rite_holding_tenet_counties_value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_if = {
|
||||||
|
limit = { scope:pam_protected_tenet_rite_counties > 0 }
|
||||||
|
$CHARACTER$ = { has_trait = zealous }
|
||||||
|
trigger_if = {
|
||||||
|
limit = { scope:pam_protected_tenet_rite_counties >= pam_rite_tenet_protection_large_counties_value }
|
||||||
|
$CHARACTER$ = {
|
||||||
|
OR = {
|
||||||
|
has_trait = lunatic
|
||||||
|
has_trait = possessed
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_else_if = {
|
||||||
|
limit = { scope:pam_protected_tenet_rite_counties >= pam_rite_tenet_protection_medium_counties_value }
|
||||||
|
$CHARACTER$ = {
|
||||||
|
OR = {
|
||||||
|
has_trait = lunatic
|
||||||
|
has_trait = possessed
|
||||||
|
has_trait = wrathful
|
||||||
|
has_trait = arbitrary
|
||||||
|
has_trait = callous
|
||||||
|
has_trait = stubborn
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_else = { always = yes }
|
||||||
|
}
|
||||||
|
trigger_else = { always = yes }
|
||||||
}
|
}
|
||||||
|
|
||||||
pam_tenet_can_be_persecuted_trigger = {
|
pam_tenet_can_be_persecuted_trigger = {
|
||||||
|
|
@ -2836,11 +2957,54 @@ pam_faith_tenet_is_core_trigger = {
|
||||||
}
|
}
|
||||||
|
|
||||||
pam_faith_is_at_core_tenet_cap_trigger = {
|
pam_faith_is_at_core_tenet_cap_trigger = {
|
||||||
main_rite = {
|
main_rite = { pam_rite_is_at_core_tenet_cap_trigger = yes }
|
||||||
|
}
|
||||||
|
|
||||||
|
# Tenet scope. Unlike Asceticism, is_shown needs the PAM DLC and can_pick needs a Christian faith
|
||||||
|
pam_tenet_is_christian_exclusive_ascetic_tenet_trigger = {
|
||||||
|
OR = {
|
||||||
|
this = tenet:tenet_hesychasm
|
||||||
|
this = tenet:tenet_anachoresis
|
||||||
|
this = tenet:tenet_mortification_of_the_flesh
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Tenet scope. The four tenets that exclude each other in can_pick.
|
||||||
|
pam_tenet_is_exclusive_ascetic_tenet_trigger = {
|
||||||
|
OR = {
|
||||||
|
pam_tenet_is_christian_exclusive_ascetic_tenet_trigger = yes
|
||||||
|
this = tenet:tenet_asceticism
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Rite scope. $NEW$ and $DROPPED$ are tenet scopes.
|
||||||
|
# can_pick still sees $DROPPED$. This is that check once $DROPPED$ is set aside.
|
||||||
|
pam_rite_can_swap_exclusive_ascetic_tenet_trigger = {
|
||||||
|
$NEW$ = { pam_tenet_is_exclusive_ascetic_tenet_trigger = yes }
|
||||||
|
$DROPPED$ = {
|
||||||
|
pam_tenet_is_exclusive_ascetic_tenet_trigger = yes
|
||||||
|
NOT = { this = $NEW$ }
|
||||||
|
}
|
||||||
|
rite_has_tenet = $DROPPED$
|
||||||
|
# any_rite_tenet already walks this rite's core tenets. status would filter by the main rite instead.
|
||||||
|
NOT = {
|
||||||
any_rite_tenet = {
|
any_rite_tenet = {
|
||||||
count >= pam_faith_core_tenets_cap_value
|
count >= 2
|
||||||
|
pam_tenet_is_exclusive_ascetic_tenet_trigger = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
trigger_if = {
|
||||||
|
limit = { $NEW$ = { pam_tenet_is_christian_exclusive_ascetic_tenet_trigger = yes } }
|
||||||
|
faith = { religion = religion:christianity_religion }
|
||||||
|
has_pam_dlc_trigger = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Rite scope
|
||||||
|
pam_rite_is_at_core_tenet_cap_trigger = {
|
||||||
|
any_rite_tenet = {
|
||||||
|
count >= pam_faith_core_tenets_cap_value
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# $CHARACTER$'s faith supplies the popularity, from tenet scope
|
# $CHARACTER$'s faith supplies the popularity, from tenet scope
|
||||||
|
|
@ -3060,6 +3224,13 @@ pam_ai_mountain_capital_actor_trigger = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
is_proto_hof_trigger = {
|
||||||
|
OR = {
|
||||||
|
has_title = title:k_papal_state
|
||||||
|
has_title = title:k_orthodox
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# title_preferred_capital_county is the de jure capital even if k_papal_state is uncreated
|
# title_preferred_capital_county is the de jure capital even if k_papal_state is uncreated
|
||||||
pam_catholic_hof_weak_papal_state_control_trigger = {
|
pam_catholic_hof_weak_papal_state_control_trigger = {
|
||||||
has_pam_dlc_trigger = yes
|
has_pam_dlc_trigger = yes
|
||||||
|
|
@ -3105,6 +3276,36 @@ pam_demand_child_recipient_cares_trigger = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pam_demand_child_is_recipient_heir_trigger = {
|
||||||
|
scope:secondary_recipient = {
|
||||||
|
OR = {
|
||||||
|
is_primary_heir_of = scope:recipient
|
||||||
|
AND = {
|
||||||
|
is_child_of = scope:recipient
|
||||||
|
is_adult = no
|
||||||
|
OR = {
|
||||||
|
scope:recipient = { has_realm_law_flag = appointment_type_succession }
|
||||||
|
scope:recipient.primary_title ?= { has_title_law_flag = appointment_type_succession }
|
||||||
|
}
|
||||||
|
trigger_if = {
|
||||||
|
limit = { is_female = yes }
|
||||||
|
NOT = { scope:recipient = { has_realm_law = male_only_law } }
|
||||||
|
}
|
||||||
|
trigger_else = {
|
||||||
|
NOT = { scope:recipient = { has_realm_law = female_only_law } }
|
||||||
|
}
|
||||||
|
NOT = {
|
||||||
|
any_sibling = {
|
||||||
|
is_child_of = scope:recipient
|
||||||
|
sex_same_as = prev
|
||||||
|
age > prev.age
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pam_has_forbidden_personal_tenet_trigger = {
|
pam_has_forbidden_personal_tenet_trigger = {
|
||||||
faith = { save_temporary_scope_as = temp_faith }
|
faith = { save_temporary_scope_as = temp_faith }
|
||||||
any_personal_tenet = {
|
any_personal_tenet = {
|
||||||
|
|
@ -3139,6 +3340,78 @@ pam_ai_can_consider_forbidden_personal_tenet_trigger = {
|
||||||
pam_holds_college_elected_church_seat_trigger = no
|
pam_holds_college_elected_church_seat_trigger = no
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Scope is a tenet, root is the character who would take it as a personal tenet
|
||||||
|
pam_ai_can_take_personal_tenet_trigger = {
|
||||||
|
root = {
|
||||||
|
NOT = { has_personal_tenet = prev }
|
||||||
|
can_pick_personal_tenet = prev
|
||||||
|
}
|
||||||
|
trigger_if = {
|
||||||
|
limit = {
|
||||||
|
root.faith.main_rite = {
|
||||||
|
has_tenet_status = {
|
||||||
|
tenet = prev
|
||||||
|
status = prohibited
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
root = { pam_ai_can_consider_forbidden_personal_tenet_trigger = yes }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Scope is a core tenet of root's rite, root is the character who would take it as a personal tenet
|
||||||
|
pam_ai_personal_tenet_fallback_trigger = {
|
||||||
|
pam_ai_can_take_personal_tenet_trigger = yes
|
||||||
|
save_temporary_scope_as = pam_personal_tenet_fallback
|
||||||
|
root = {
|
||||||
|
NOT = {
|
||||||
|
any_undesired_tenet = {
|
||||||
|
only_negative = yes
|
||||||
|
threshold = -1
|
||||||
|
this = scope:pam_personal_tenet_fallback
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Scope is a tenet, root is the character who would take it as a personal tenet
|
||||||
|
# A personal tenet only raises fulfillment if their rite approves it
|
||||||
|
pam_ai_personal_tenet_candidate_trigger = {
|
||||||
|
pam_ai_can_take_personal_tenet_trigger = yes
|
||||||
|
OR = {
|
||||||
|
AND = {
|
||||||
|
root.rite = {
|
||||||
|
has_at_least_tenet_status = {
|
||||||
|
tenet = prev
|
||||||
|
status = permitted
|
||||||
|
}
|
||||||
|
}
|
||||||
|
root = {
|
||||||
|
expected_tenet_fulfillment_change = {
|
||||||
|
target = prev
|
||||||
|
value >= 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
root.faith.main_rite = {
|
||||||
|
has_tenet_status = {
|
||||||
|
tenet = prev
|
||||||
|
status = prohibited
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Scope is a personal tenet, root is the character holding it
|
||||||
|
pam_personal_tenet_gives_no_fulfillment_trigger = {
|
||||||
|
root = {
|
||||||
|
expected_tenet_fulfillment_change = {
|
||||||
|
target = prev
|
||||||
|
value < 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pam_is_christian_clergy_trigger = {
|
pam_is_christian_clergy_trigger = {
|
||||||
OR = {
|
OR = {
|
||||||
religion = religion:catholic_religion
|
religion = religion:catholic_religion
|
||||||
|
|
@ -4658,7 +4931,7 @@ pam_valid_excommunication_target_trigger = {
|
||||||
trigger_else = {
|
trigger_else = {
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = bishop_excommunication_target_wanderer_tt
|
text = bishop_excommunication_target_wanderer_tt
|
||||||
location.county = {
|
location.county ?= {
|
||||||
OR = {
|
OR = {
|
||||||
holder ?= {
|
holder ?= {
|
||||||
target_is_same_character_or_above = $EXCOMMUNICATOR$
|
target_is_same_character_or_above = $EXCOMMUNICATOR$
|
||||||
|
|
@ -4907,6 +5180,7 @@ valid_claim_war_incited_attacker_trigger = {
|
||||||
claim_war_incited_attacker_can_be_picked_trigger = {
|
claim_war_incited_attacker_can_be_picked_trigger = {
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = incite_claim_war_attacker_must_share_faith_tt
|
text = incite_claim_war_attacker_must_share_faith_tt
|
||||||
|
object = scope:puppet_or_actor
|
||||||
faith = scope:puppet_or_actor.faith
|
faith = scope:puppet_or_actor.faith
|
||||||
}
|
}
|
||||||
custom_description = {
|
custom_description = {
|
||||||
|
|
@ -4929,6 +5203,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
||||||
}
|
}
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = incite_claim_war_attacker_must_be_strong_enough_tt
|
text = incite_claim_war_attacker_must_be_strong_enough_tt
|
||||||
|
object = $RECIPIENT$
|
||||||
current_military_strength >= $RECIPIENT$.one_tenth_current_military_strength
|
current_military_strength >= $RECIPIENT$.one_tenth_current_military_strength
|
||||||
}
|
}
|
||||||
custom_description = {
|
custom_description = {
|
||||||
|
|
@ -4943,6 +5218,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
||||||
}
|
}
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = incite_claim_war_attacker_must_not_be_blocked_diplomacy_tt
|
text = incite_claim_war_attacker_must_not_be_blocked_diplomacy_tt
|
||||||
|
object = $RECIPIENT$
|
||||||
NOR = {
|
NOR = {
|
||||||
this = scope:puppet_or_actor
|
this = scope:puppet_or_actor
|
||||||
this = $RECIPIENT$
|
this = $RECIPIENT$
|
||||||
|
|
@ -4958,6 +5234,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
||||||
}
|
}
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = incite_claim_war_attacker_liege_not_at_war_tt
|
text = incite_claim_war_attacker_liege_not_at_war_tt
|
||||||
|
object = $RECIPIENT$
|
||||||
NOT = {
|
NOT = {
|
||||||
any_liege_or_above = {
|
any_liege_or_above = {
|
||||||
is_at_war_with = $RECIPIENT$
|
is_at_war_with = $RECIPIENT$
|
||||||
|
|
@ -4966,6 +5243,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
||||||
}
|
}
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = incite_claim_war_attacker_must_have_claim_on_recipient_tt
|
text = incite_claim_war_attacker_must_have_claim_on_recipient_tt
|
||||||
|
object = $RECIPIENT$
|
||||||
any_claim = {
|
any_claim = {
|
||||||
tier >= tier_county
|
tier >= tier_county
|
||||||
tier <= tier_kingdom
|
tier <= tier_kingdom
|
||||||
|
|
@ -4979,6 +5257,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
||||||
limit = { exists = scope:target }
|
limit = { exists = scope:target }
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = incite_claim_war_attacker_must_have_claim_on_target_tt
|
text = incite_claim_war_attacker_must_have_claim_on_target_tt
|
||||||
|
object = scope:target
|
||||||
has_claim_on = scope:target
|
has_claim_on = scope:target
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -5694,7 +5973,13 @@ pam_college_election_title_has_electors_trigger = {
|
||||||
faith.religious_head_title = { any_elector = {} }
|
faith.religious_head_title = { any_elector = {} }
|
||||||
}
|
}
|
||||||
trigger_else = {
|
trigger_else = {
|
||||||
title:k_papal_state = { any_elector = {} }
|
# A higher tier primary title takes over the realm election from the Papacy
|
||||||
|
title:k_papal_state = {
|
||||||
|
OR = {
|
||||||
|
any_elector = {}
|
||||||
|
holder ?= { primary_title = { any_elector = {} } }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -5725,12 +6010,19 @@ pam_is_college_election_candidate_trigger = {
|
||||||
source = $SOURCE$
|
source = $SOURCE$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_else = {
|
trigger_else_if = {
|
||||||
|
limit = { title:k_papal_state = { any_elector = {} } }
|
||||||
is_candidate_from_set = {
|
is_candidate_from_set = {
|
||||||
title = title:k_papal_state
|
title = title:k_papal_state
|
||||||
source = $SOURCE$
|
source = $SOURCE$
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
trigger_else = {
|
||||||
|
is_candidate_from_set = {
|
||||||
|
title = title:k_papal_state.holder.primary_title
|
||||||
|
source = $SOURCE$
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
trigger_else = { # Error log suppressing
|
trigger_else = { # Error log suppressing
|
||||||
always = no
|
always = no
|
||||||
|
|
@ -6253,10 +6545,36 @@ target_valid_request_unformed_title_trigger = {
|
||||||
}
|
}
|
||||||
|
|
||||||
pam_personal_pacifism_offensive_war_ban_trigger = {
|
pam_personal_pacifism_offensive_war_ban_trigger = {
|
||||||
custom_tooltip = {
|
trigger_if = {
|
||||||
text = pam_personal_pacifism_offensive_war_ban_tt
|
limit = {
|
||||||
scope:attacker = {
|
scope:attacker = {
|
||||||
NOT = { has_personal_tenet_flag = tenet_pacifism_no_offensive_war }
|
has_personal_tenet = tenet:tenet_pacifism
|
||||||
|
has_personal_tenet_flag = tenet_pacifism_no_offensive_war
|
||||||
|
}
|
||||||
|
}
|
||||||
|
custom_tooltip = {
|
||||||
|
text = pam_personal_tenet_pacifism_offensive_war_ban_tt
|
||||||
|
always = no
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_else_if = {
|
||||||
|
limit = {
|
||||||
|
scope:attacker = {
|
||||||
|
has_personal_tenet = tenet:tenet_dharmic_pacifism
|
||||||
|
has_personal_tenet_flag = tenet_pacifism_no_offensive_war
|
||||||
|
}
|
||||||
|
}
|
||||||
|
custom_tooltip = {
|
||||||
|
text = pam_personal_tenet_dharmic_pacifism_offensive_war_ban_tt
|
||||||
|
always = no
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_else = {
|
||||||
|
custom_tooltip = {
|
||||||
|
text = pam_personal_pacifism_offensive_war_ban_tt
|
||||||
|
scope:attacker = {
|
||||||
|
NOT = { has_personal_tenet_flag = tenet_pacifism_no_offensive_war }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -7039,8 +7357,8 @@ pam_personal_syncretism_exile_rite_probe_trigger = {
|
||||||
|
|
||||||
# Valid exile pool entry for the personal syncretism decision.
|
# Valid exile pool entry for the personal syncretism decision.
|
||||||
pam_personal_syncretism_exile_rite_trigger = {
|
pam_personal_syncretism_exile_rite_trigger = {
|
||||||
exists = var:converted_development
|
exists = var:converted_prosperity
|
||||||
var:converted_development >= 1
|
var:converted_prosperity >= 1
|
||||||
NOT = { rite_has_parameter = unreformed }
|
NOT = { rite_has_parameter = unreformed }
|
||||||
exists = var:associated_culture
|
exists = var:associated_culture
|
||||||
exists = var:associated_county
|
exists = var:associated_county
|
||||||
|
|
@ -7404,6 +7722,27 @@ can_send_make_external_ruler_puppet_trigger = {
|
||||||
exists = $RECIPIENT$.rite.head_of_rite
|
exists = $RECIPIENT$.rite.head_of_rite
|
||||||
$RECIPIENT$.rite.head_of_rite = $ACTOR$
|
$RECIPIENT$.rite.head_of_rite = $ACTOR$
|
||||||
}
|
}
|
||||||
|
AND = {
|
||||||
|
$ACTOR$ = {
|
||||||
|
is_guelph_leader_trigger = yes
|
||||||
|
}
|
||||||
|
$RECIPIENT$ = {
|
||||||
|
is_guelph_trigger = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
AND = {
|
||||||
|
$ACTOR$ = {
|
||||||
|
is_ghibelline_leader_trigger = yes
|
||||||
|
}
|
||||||
|
$RECIPIENT$ = {
|
||||||
|
is_ghibelline_trigger = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$ACTOR$ = {
|
||||||
|
government_has_flag = government_is_merchant
|
||||||
|
has_realm_law = company_purpose_creditor
|
||||||
|
has_hook = $RECIPIENT$
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$ACTOR$ = {
|
$ACTOR$ = {
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,17 @@ pam_secular_faith_christian_actor_trigger = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Province scope: a church holding that also brews, whatever the local resource allows.
|
||||||
|
pam_sf_monastic_brewery_province_trigger = {
|
||||||
|
has_holding_type = church_holding
|
||||||
|
OR = {
|
||||||
|
has_building_or_higher = beer_brewery_1
|
||||||
|
has_building_or_higher = mead_brewery_1
|
||||||
|
has_building_or_higher = cider_brewery_1
|
||||||
|
has_building_or_higher = brewers_guild_1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pam_can_adopt_forbidden_personal_tenet_trigger = {
|
pam_can_adopt_forbidden_personal_tenet_trigger = {
|
||||||
any_desired_tenet = {
|
any_desired_tenet = {
|
||||||
only_positive = yes
|
only_positive = yes
|
||||||
|
|
|
||||||
|
|
@ -1,34 +1,35 @@
|
||||||
### Exists so we can track Ali or any subsequent Zanj Leaders.
|
# NEOW 2555: Historical Zanj rebellion story (original source retained as comments).
|
||||||
story_zanj_rebellion = {
|
### Exists so we can track Ali or any subsequent Zanj Leaders.
|
||||||
|
#story_zanj_rebellion = {
|
||||||
|
|
||||||
on_setup = {
|
# on_setup = {
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
set_variable = {
|
# set_variable = {
|
||||||
name = zanj_rebellion_strength_score
|
# name = zanj_rebellion_strength_score
|
||||||
value = 7
|
# value = 7
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
on_owner_death = {
|
# on_owner_death = {
|
||||||
inherit_zanj_rebellion_effect = yes
|
# inherit_zanj_rebellion_effect = yes
|
||||||
}
|
# }
|
||||||
on_end = {}
|
# on_end = {}
|
||||||
|
|
||||||
#Maintenance group
|
# #Maintenance group
|
||||||
effect_group = {
|
# effect_group = {
|
||||||
days = 1
|
# days = 1
|
||||||
trigger = {
|
# trigger = {
|
||||||
story_owner = { is_landed = no }
|
# story_owner = { is_landed = no }
|
||||||
}
|
# }
|
||||||
triggered_effect = {
|
# triggered_effect = {
|
||||||
trigger = { always = yes }
|
# trigger = { always = yes }
|
||||||
effect = {
|
# effect = {
|
||||||
#You became a landless adventurer/administrative! Ending story prematurely.
|
# #You became a landless adventurer/administrative! Ending story prematurely.
|
||||||
story_owner = { save_scope_as = story_owner }
|
# story_owner = { save_scope_as = story_owner }
|
||||||
debug_log = "Zanj invalidated"
|
# debug_log = "Zanj invalidated"
|
||||||
debug_log_scopes = yes
|
# debug_log_scopes = yes
|
||||||
end_story = yes
|
# end_story = yes
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
#}
|
||||||
|
|
@ -1,265 +1,266 @@
|
||||||
story_greatest_of_khans = {
|
# NEOW 2555: Great Khan historical story that invokes Mongol event IDs (original source retained as comments).
|
||||||
visible = yes
|
#story_greatest_of_khans = {
|
||||||
icon = {
|
# visible = yes
|
||||||
trigger = {
|
# icon = {
|
||||||
always = yes
|
# trigger = {
|
||||||
}
|
# always = yes
|
||||||
reference = "gfx/interface/icons/story_cycles/bow_steppe.dds"
|
# }
|
||||||
}
|
# reference = "gfx/interface/icons/story_cycles/bow_steppe.dds"
|
||||||
background = {
|
# }
|
||||||
reference = "gfx/interface/illustrations/event_scenes/mpo_steppe_evening.dds"
|
# background = {
|
||||||
}
|
# reference = "gfx/interface/illustrations/event_scenes/mpo_steppe_evening.dds"
|
||||||
visualization = {
|
# }
|
||||||
custom_string_key = "GREATEST_OF_KHANS_INFORMATION_STRING"
|
# visualization = {
|
||||||
decisions = { mpo_gok_world_conquest_decision }
|
# custom_string_key = "GREATEST_OF_KHANS_INFORMATION_STRING"
|
||||||
}
|
# decisions = { mpo_gok_world_conquest_decision }
|
||||||
|
# }
|
||||||
|
|
||||||
on_setup = {
|
# on_setup = {
|
||||||
if = {
|
# if = {
|
||||||
limit = {
|
# limit = {
|
||||||
NOT = {
|
# NOT = {
|
||||||
has_mpo_dlc_trigger = yes
|
# has_mpo_dlc_trigger = yes
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
end_story = yes
|
# end_story = yes
|
||||||
}
|
# }
|
||||||
else = {
|
# else = {
|
||||||
set_global_variable = {
|
# set_global_variable = {
|
||||||
name = gok_empire_crumble_date
|
# name = gok_empire_crumble_date
|
||||||
value = {
|
# value = {
|
||||||
value = current_year
|
# value = current_year
|
||||||
add = 75
|
# add = 75
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
set_variable = {
|
# set_variable = {
|
||||||
name = gok_final_date
|
# name = gok_final_date
|
||||||
value = {
|
# value = {
|
||||||
value = current_year
|
# value = current_year
|
||||||
add = 75
|
# add = 75
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
set_global_variable = {
|
# set_global_variable = {
|
||||||
name = first_gok
|
# name = first_gok
|
||||||
value = story_owner
|
# value = story_owner
|
||||||
}
|
# }
|
||||||
|
|
||||||
set_global_variable = {
|
# set_global_variable = {
|
||||||
name = greatest_of_khans_title
|
# name = greatest_of_khans_title
|
||||||
value = story_owner.primary_title
|
# value = story_owner.primary_title
|
||||||
}
|
# }
|
||||||
global_var:greatest_of_khans_title = {
|
# global_var:greatest_of_khans_title = {
|
||||||
set_variable = {
|
# set_variable = {
|
||||||
name = chaotic_succession_protection
|
# name = chaotic_succession_protection
|
||||||
value = yes
|
# value = yes
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
on_end = {
|
# on_end = {
|
||||||
if = {
|
# if = {
|
||||||
limit = {
|
# limit = {
|
||||||
exists = global_var:active_conquerors
|
# exists = global_var:active_conquerors
|
||||||
}
|
# }
|
||||||
change_global_variable = {
|
# change_global_variable = {
|
||||||
name = active_conquerors
|
# name = active_conquerors
|
||||||
add = -1
|
# add = -1
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
global_var:greatest_of_khans_title = {
|
# global_var:greatest_of_khans_title = {
|
||||||
remove_variable = chaotic_succession_protection
|
# remove_variable = chaotic_succession_protection
|
||||||
}
|
# }
|
||||||
remove_global_variable = first_gok
|
# remove_global_variable = first_gok
|
||||||
remove_global_variable = gok_empire_crumble_date
|
# remove_global_variable = gok_empire_crumble_date
|
||||||
}
|
# }
|
||||||
|
|
||||||
on_owner_death = {
|
# on_owner_death = {
|
||||||
# Handle story succession
|
# # Handle story succession
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
save_scope_as = old_khan # for news events
|
# save_scope_as = old_khan # for news events
|
||||||
if = {
|
# if = {
|
||||||
limit = {
|
# limit = {
|
||||||
any_child = { # if the Khan has a reasonable heir...
|
# any_child = { # if the Khan has a reasonable heir...
|
||||||
is_primary_heir_of = scope:story.story_owner
|
# is_primary_heir_of = scope:story.story_owner
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
random_child = {
|
# random_child = {
|
||||||
limit = {
|
# limit = {
|
||||||
is_primary_heir_of = scope:story.story_owner
|
# is_primary_heir_of = scope:story.story_owner
|
||||||
}
|
# }
|
||||||
save_scope_as = new_khan # for news events
|
# save_scope_as = new_khan # for news events
|
||||||
save_scope_as = new_story_owner # pass chain to appropriate target
|
# save_scope_as = new_story_owner # pass chain to appropriate target
|
||||||
add_character_flag = {
|
# add_character_flag = {
|
||||||
flag = gain_mongol_succession_dread
|
# flag = gain_mongol_succession_dread
|
||||||
days = 2
|
# days = 2
|
||||||
}
|
# }
|
||||||
add_character_modifier = {
|
# add_character_modifier = {
|
||||||
modifier = the_great_khan_modifier
|
# modifier = the_great_khan_modifier
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
every_player = {
|
# every_player = {
|
||||||
trigger_event = {
|
# trigger_event = {
|
||||||
id = mongol_invasion.1001
|
# id = mongol_invasion.1001
|
||||||
days = 1
|
# days = 1
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
else_if = {
|
# else_if = {
|
||||||
limit = {
|
# limit = {
|
||||||
dynasty = {
|
# dynasty = {
|
||||||
any_dynasty_member = { # if the Khan has some other heir not family?)
|
# any_dynasty_member = { # if the Khan has some other heir not family?)
|
||||||
is_primary_heir_of = scope:story.story_owner
|
# is_primary_heir_of = scope:story.story_owner
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
dynasty = {
|
# dynasty = {
|
||||||
random_dynasty_member = {
|
# random_dynasty_member = {
|
||||||
limit = {
|
# limit = {
|
||||||
is_primary_heir_of = scope:story.story_owner
|
# is_primary_heir_of = scope:story.story_owner
|
||||||
}
|
# }
|
||||||
save_scope_as = new_khan # for news events
|
# save_scope_as = new_khan # for news events
|
||||||
save_scope_as = new_story_owner # pass chain toappropriate target
|
# save_scope_as = new_story_owner # pass chain toappropriate target
|
||||||
add_character_flag = {
|
# add_character_flag = {
|
||||||
flag = gain_mongol_succession_dread
|
# flag = gain_mongol_succession_dread
|
||||||
days = 2
|
# days = 2
|
||||||
}
|
# }
|
||||||
add_character_modifier = {
|
# add_character_modifier = {
|
||||||
modifier = the_great_khan_modifier
|
# modifier = the_great_khan_modifier
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
every_player = {
|
# every_player = {
|
||||||
trigger_event = {
|
# trigger_event = {
|
||||||
id = mongol_invasion.1001
|
# id = mongol_invasion.1001
|
||||||
days = 1
|
# days = 1
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
else_if = {
|
# else_if = {
|
||||||
limit = {
|
# limit = {
|
||||||
primary_heir = {
|
# primary_heir = {
|
||||||
is_grandchild_of = scope:story.story_owner
|
# is_grandchild_of = scope:story.story_owner
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
primary_heir = {
|
# primary_heir = {
|
||||||
save_scope_as = new_khan # for news events
|
# save_scope_as = new_khan # for news events
|
||||||
save_scope_as = new_story_owner # pass chain to appropriate target
|
# save_scope_as = new_story_owner # pass chain to appropriate target
|
||||||
add_character_flag = {
|
# add_character_flag = {
|
||||||
flag = gain_mongol_succession_dread
|
# flag = gain_mongol_succession_dread
|
||||||
days = 2
|
# days = 2
|
||||||
}
|
# }
|
||||||
add_character_modifier = {
|
# add_character_modifier = {
|
||||||
modifier = the_great_khan_modifier
|
# modifier = the_great_khan_modifier
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
every_player = {
|
# every_player = {
|
||||||
trigger_event = {
|
# trigger_event = {
|
||||||
id = mongol_invasion.1001
|
# id = mongol_invasion.1001
|
||||||
days = 1
|
# days = 1
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
else_if = { # If the empire passes out of the original dynasty, the story will automatically end
|
# else_if = { # If the empire passes out of the original dynasty, the story will automatically end
|
||||||
limit = {
|
# limit = {
|
||||||
NOT = {
|
# NOT = {
|
||||||
dynasty = {
|
# dynasty = {
|
||||||
any_dynasty_member = { # if the Khan has some otherheir (not family?)
|
# any_dynasty_member = { # if the Khan has some otherheir (not family?)
|
||||||
is_primary_heir_of = scope:story.story_owner
|
# is_primary_heir_of = scope:story.story_owner
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
scope:story.story_owner.primary_heir = {
|
# scope:story.story_owner.primary_heir = {
|
||||||
save_scope_as = new_khan
|
# save_scope_as = new_khan
|
||||||
}
|
# }
|
||||||
every_player = {
|
# every_player = {
|
||||||
trigger_event = {
|
# trigger_event = {
|
||||||
id = mongol_invasion.1001
|
# id = mongol_invasion.1001
|
||||||
days = 1
|
# days = 1
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
if = {
|
# if = {
|
||||||
limit = { exists = scope:new_story_owner }
|
# limit = { exists = scope:new_story_owner }
|
||||||
make_story_owner = scope:new_story_owner
|
# make_story_owner = scope:new_story_owner
|
||||||
}
|
# }
|
||||||
#Story end event
|
# #Story end event
|
||||||
else = {
|
# else = {
|
||||||
if = {
|
# if = {
|
||||||
limit = {
|
# limit = {
|
||||||
exists = story_owner.player_heir
|
# exists = story_owner.player_heir
|
||||||
exists = story_owner.dynasty
|
# exists = story_owner.dynasty
|
||||||
story_owner.player_heir = {
|
# story_owner.player_heir = {
|
||||||
dynasty ?= root.story_owner.dynasty
|
# dynasty ?= root.story_owner.dynasty
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
story_owner.player_heir ?= {
|
# story_owner.player_heir ?= {
|
||||||
trigger_event = {
|
# trigger_event = {
|
||||||
id = mpo_greatest_of_khans.0040
|
# id = mpo_greatest_of_khans.0040
|
||||||
days = 1
|
# days = 1
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
else = {
|
# else = {
|
||||||
end_story = yes
|
# end_story = yes
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
#Invalidation end!
|
# #Invalidation end!
|
||||||
effect_group = {
|
# effect_group = {
|
||||||
years = 75
|
# years = 75
|
||||||
|
|
||||||
triggered_effect = {
|
# triggered_effect = {
|
||||||
trigger = {
|
# trigger = {
|
||||||
exists = story_owner
|
# exists = story_owner
|
||||||
}
|
# }
|
||||||
effect = {
|
# effect = {
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
save_scope_as = timed_out
|
# save_scope_as = timed_out
|
||||||
trigger_event = {
|
# trigger_event = {
|
||||||
id = mpo_greatest_of_khans.0040
|
# id = mpo_greatest_of_khans.0040
|
||||||
days = 1
|
# days = 1
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
#Start a new war if none is ongoing
|
# #Start a new war if none is ongoing
|
||||||
effect_group = {
|
# effect_group = {
|
||||||
days = { 30 60 }
|
# days = { 30 60 }
|
||||||
|
|
||||||
trigger = {
|
# trigger = {
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
is_at_war = no
|
# is_at_war = no
|
||||||
gold > 0
|
# gold > 0
|
||||||
exists = global_var:greatest_of_khans_title
|
# exists = global_var:greatest_of_khans_title
|
||||||
any_held_title = {
|
# any_held_title = {
|
||||||
this = global_var:greatest_of_khans_title
|
# this = global_var:greatest_of_khans_title
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
triggered_effect = {
|
# triggered_effect = {
|
||||||
trigger = {
|
# trigger = {
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
is_ai = yes
|
# is_ai = yes
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
effect = {
|
# effect = {
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
gok_war_target_evaluation_and_declaration_effect = yes
|
# gok_war_target_evaluation_and_declaration_effect = yes
|
||||||
}
|
# }
|
||||||
debug_log = "The story started a new war for the Greatest of Khans"
|
# debug_log = "The story started a new war for the Greatest of Khans"
|
||||||
debug_log_date = yes
|
# debug_log_date = yes
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
save_scope_as = owner
|
# save_scope_as = owner
|
||||||
}
|
# }
|
||||||
debug_log_scopes = yes
|
# debug_log_scopes = yes
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
}
|
#}
|
||||||
|
|
|
||||||
|
|
@ -1,168 +1,169 @@
|
||||||
|
# NEOW 2555: Historical Almohad invasion story (original source retained as comments).
|
||||||
|
|
||||||
# Story for the rise of the Almohads
|
# Story for the rise of the Almohads
|
||||||
# by Petter Vilberg
|
# by Petter Vilberg
|
||||||
|
|
||||||
story_almohad_invasion = {
|
#story_almohad_invasion = {
|
||||||
|
|
||||||
on_setup = {
|
# on_setup = {
|
||||||
set_global_variable = {
|
# set_global_variable = {
|
||||||
name = spawned_almohads
|
# name = spawned_almohads
|
||||||
value = yes
|
# value = yes
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
on_end = {
|
# on_end = {
|
||||||
debug_log = "Almohad story ended on:"
|
# debug_log = "Almohad story ended on:"
|
||||||
debug_log_date = yes
|
# debug_log_date = yes
|
||||||
}
|
# }
|
||||||
|
|
||||||
on_owner_death = {
|
# on_owner_death = {
|
||||||
if = {
|
# if = {
|
||||||
limit = { NOT = { exists = var:had_ibn_tumart_succession } }
|
# limit = { NOT = { exists = var:had_ibn_tumart_succession } }
|
||||||
set_variable = {
|
# set_variable = {
|
||||||
name = had_ibn_tumart_succession
|
# name = had_ibn_tumart_succession
|
||||||
value = yes
|
# value = yes
|
||||||
}
|
# }
|
||||||
if = {
|
# if = {
|
||||||
limit = { exists = var:ibn_tumart_triggered_death }
|
# limit = { exists = var:ibn_tumart_triggered_death }
|
||||||
if = {
|
# if = {
|
||||||
limit = {
|
# limit = {
|
||||||
var:al_mumin = {
|
# var:al_mumin = {
|
||||||
is_alive = yes
|
# is_alive = yes
|
||||||
faith = faith:masmudi
|
# faith = faith:masmudi
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
if = {
|
# if = {
|
||||||
limit = { var:al_mumin = { is_imprisoned = yes } }
|
# limit = { var:al_mumin = { is_imprisoned = yes } }
|
||||||
var:al_mumin = { release_from_prison = yes }
|
# var:al_mumin = { release_from_prison = yes }
|
||||||
}
|
# }
|
||||||
if = {
|
# if = {
|
||||||
limit = {
|
# limit = {
|
||||||
NOT = { var:ibn_tumart.primary_heir = var:al_mumin }
|
# NOT = { var:ibn_tumart.primary_heir = var:al_mumin }
|
||||||
}
|
# }
|
||||||
create_title_and_vassal_change = {
|
# create_title_and_vassal_change = {
|
||||||
type = granted
|
# type = granted
|
||||||
save_scope_as = change
|
# save_scope_as = change
|
||||||
add_claim_on_loss = no
|
# add_claim_on_loss = no
|
||||||
}
|
# }
|
||||||
var:ibn_tumart = {
|
# var:ibn_tumart = {
|
||||||
save_scope_as = ibn_tumart
|
# save_scope_as = ibn_tumart
|
||||||
every_held_title = {
|
# every_held_title = {
|
||||||
limit = { is_capital_barony = no }
|
# limit = { is_capital_barony = no }
|
||||||
change_title_holder = {
|
# change_title_holder = {
|
||||||
holder = scope:story.var:al_mumin
|
# holder = scope:story.var:al_mumin
|
||||||
change = scope:change
|
# change = scope:change
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
resolve_title_and_vassal_change = scope:change
|
# resolve_title_and_vassal_change = scope:change
|
||||||
|
|
||||||
make_story_owner = var:al_mumin
|
# make_story_owner = var:al_mumin
|
||||||
|
|
||||||
var:almohad_county = {
|
# var:almohad_county = {
|
||||||
save_scope_as = almohad_county
|
# save_scope_as = almohad_county
|
||||||
}
|
# }
|
||||||
|
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
if = { # Make sure they get back to warfare
|
# if = { # Make sure they get back to warfare
|
||||||
limit = { is_at_war = no }
|
# limit = { is_at_war = no }
|
||||||
almohads_find_target_titles_effect = yes
|
# almohads_find_target_titles_effect = yes
|
||||||
almohads_declare_war_for_target_title_effect = yes
|
# almohads_declare_war_for_target_title_effect = yes
|
||||||
}
|
# }
|
||||||
spawn_second_almohad_troops_effect = yes
|
# spawn_second_almohad_troops_effect = yes
|
||||||
|
|
||||||
save_scope_as = al_mumin
|
# save_scope_as = al_mumin
|
||||||
|
|
||||||
every_war_enemy = {
|
# every_war_enemy = {
|
||||||
trigger_event = almohad.1003
|
# trigger_event = almohad.1003
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
else = {
|
# else = {
|
||||||
end_story = yes
|
# end_story = yes
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#Kill ibn Tumert if he suffers a defeat
|
# #Kill ibn Tumert if he suffers a defeat
|
||||||
effect_group = {
|
# effect_group = {
|
||||||
days = { 20 80 }
|
# days = { 20 80 }
|
||||||
|
|
||||||
trigger = {
|
# trigger = {
|
||||||
story_owner = var:ibn_tumart
|
# story_owner = var:ibn_tumart
|
||||||
story_owner = { is_alive = yes }
|
# story_owner = { is_alive = yes }
|
||||||
exists = global_var:almohads_were_defeated
|
# exists = global_var:almohads_were_defeated
|
||||||
}
|
# }
|
||||||
|
|
||||||
triggered_effect = {
|
# triggered_effect = {
|
||||||
trigger = {
|
# trigger = {
|
||||||
always = yes
|
# always = yes
|
||||||
}
|
# }
|
||||||
effect = {
|
# effect = {
|
||||||
debug_log = "Trying to kill Ibn Tumert!"
|
# debug_log = "Trying to kill Ibn Tumert!"
|
||||||
set_variable = {
|
# set_variable = {
|
||||||
name = ibn_tumart_triggered_death
|
# name = ibn_tumart_triggered_death
|
||||||
value = yes
|
# value = yes
|
||||||
}
|
# }
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
death = natural
|
# death = natural
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
#Rebuild Marrakesh
|
# #Rebuild Marrakesh
|
||||||
effect_group = {
|
# effect_group = {
|
||||||
days = 180
|
# days = 180
|
||||||
|
|
||||||
trigger = {
|
# trigger = {
|
||||||
NOT = { exists = var:fired_marrakesh_event }
|
# NOT = { exists = var:fired_marrakesh_event }
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
any_sub_realm_county = {
|
# any_sub_realm_county = {
|
||||||
this = title:c_marrakesh
|
# this = title:c_marrakesh
|
||||||
OR = {
|
# OR = {
|
||||||
holder = scope:story.story_owner
|
# holder = scope:story.story_owner
|
||||||
holder = { is_ai = no }
|
# holder = { is_ai = no }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
triggered_effect = {
|
# triggered_effect = {
|
||||||
trigger = {
|
# trigger = {
|
||||||
always = yes
|
# always = yes
|
||||||
}
|
# }
|
||||||
effect = {
|
# effect = {
|
||||||
set_variable = {
|
# set_variable = {
|
||||||
name = fired_marrakesh_event
|
# name = fired_marrakesh_event
|
||||||
value = yes
|
# value = yes
|
||||||
}
|
# }
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
trigger_event = almohad.1004
|
# trigger_event = almohad.1004
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
#Maintenance group
|
# #Maintenance group
|
||||||
effect_group = {
|
# effect_group = {
|
||||||
days = 1
|
# days = 1
|
||||||
trigger = {
|
# trigger = {
|
||||||
story_owner = { is_landed = no }
|
# story_owner = { is_landed = no }
|
||||||
}
|
# }
|
||||||
triggered_effect = {
|
# triggered_effect = {
|
||||||
trigger = { always = yes }
|
# trigger = { always = yes }
|
||||||
effect = {
|
# effect = {
|
||||||
#You became a landless adventurer/administrative! Ending story prematurely.
|
# #You became a landless adventurer/administrative! Ending story prematurely.
|
||||||
story_owner = { save_scope_as = story_owner }
|
# story_owner = { save_scope_as = story_owner }
|
||||||
debug_log = "Almohads invalidated"
|
# debug_log = "Almohads invalidated"
|
||||||
debug_log_scopes = yes
|
# debug_log_scopes = yes
|
||||||
end_story = yes
|
# end_story = yes
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
#}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,177 +1,178 @@
|
||||||
story_seljuk_invasion = {
|
# NEOW 2555: Historical Seljuk invasion story (original source retained as comments).
|
||||||
|
#story_seljuk_invasion = {
|
||||||
|
|
||||||
on_setup = {
|
# on_setup = {
|
||||||
story_owner = { # Find a place for the Seljuks to settle
|
# story_owner = { # Find a place for the Seljuks to settle
|
||||||
set_variable = {
|
# set_variable = {
|
||||||
name = seljuk_invasion_nomad_strength_score
|
# name = seljuk_invasion_nomad_strength_score
|
||||||
value = 10
|
# value = 10
|
||||||
}
|
# }
|
||||||
try_to_settle_the_seljuk_effect = yes
|
# try_to_settle_the_seljuk_effect = yes
|
||||||
}
|
# }
|
||||||
set_variable = {
|
# set_variable = {
|
||||||
name = succession_counter
|
# name = succession_counter
|
||||||
value = 0
|
# value = 0
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
on_end = {}
|
# on_end = {}
|
||||||
|
|
||||||
on_owner_death = {
|
# on_owner_death = {
|
||||||
# Breakup of the empire should not happen until at least one succession has passed
|
# # Breakup of the empire should not happen until at least one succession has passed
|
||||||
random_list = { # Weighted chance to end the story
|
# random_list = { # Weighted chance to end the story
|
||||||
10 = {
|
# 10 = {
|
||||||
trigger = { var:succession_counter < 2 }
|
# trigger = { var:succession_counter < 2 }
|
||||||
modifier = {
|
# modifier = {
|
||||||
add = 10
|
# add = 10
|
||||||
var:succession_counter > 1
|
# var:succession_counter > 1
|
||||||
}
|
# }
|
||||||
modifier = { # Historical point
|
# modifier = { # Historical point
|
||||||
add = 10
|
# add = 10
|
||||||
var:succession_counter > 2
|
# var:succession_counter > 2
|
||||||
}
|
# }
|
||||||
modifier = {
|
# modifier = {
|
||||||
add = 20
|
# add = 20
|
||||||
var:succession_counter > 3
|
# var:succession_counter > 3
|
||||||
}
|
# }
|
||||||
end_story = yes
|
# end_story = yes
|
||||||
}
|
# }
|
||||||
90 = {
|
# 90 = {
|
||||||
if = {
|
# if = {
|
||||||
limit = {
|
# limit = {
|
||||||
exists = story_owner.primary_heir
|
# exists = story_owner.primary_heir
|
||||||
}
|
# }
|
||||||
make_story_owner = story_owner.primary_heir
|
# make_story_owner = story_owner.primary_heir
|
||||||
change_variable = {
|
# change_variable = {
|
||||||
name = seljuk_invasion_nomad_strength_score
|
# name = seljuk_invasion_nomad_strength_score
|
||||||
add = -5
|
# add = -5
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
else = {
|
# else = {
|
||||||
end_story = yes
|
# end_story = yes
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
# Start a new war if one is not ongoing
|
# # Start a new war if one is not ongoing
|
||||||
effect_group = {
|
# effect_group = {
|
||||||
days = { 30 60 }
|
# days = { 30 60 }
|
||||||
|
|
||||||
trigger = {
|
# trigger = {
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
is_at_war = no
|
# is_at_war = no
|
||||||
gold > 0
|
# gold > 0
|
||||||
OR = {
|
# OR = {
|
||||||
NOT = { has_character_flag = settled_seljuk }
|
# NOT = { has_character_flag = settled_seljuk }
|
||||||
top_liege = this
|
# top_liege = this
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
triggered_effect = {
|
# triggered_effect = {
|
||||||
trigger = {
|
# trigger = {
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
is_ai = yes
|
# is_ai = yes
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
effect = {
|
# effect = {
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
seljuk_war_target_evaluation_and_declaration_effect = yes
|
# seljuk_war_target_evaluation_and_declaration_effect = yes
|
||||||
save_scope_as = owner
|
# save_scope_as = owner
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
# Ask for independence if vassals
|
# # Ask for independence if vassals
|
||||||
effect_group = {
|
# effect_group = {
|
||||||
years = { 1 2 }
|
# years = { 1 2 }
|
||||||
|
|
||||||
trigger = {
|
# trigger = {
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
has_character_flag = settled_seljuk
|
# has_character_flag = settled_seljuk
|
||||||
top_liege != this
|
# top_liege != this
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
triggered_effect = {
|
# triggered_effect = {
|
||||||
trigger = {
|
# trigger = {
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
is_ai = yes
|
# is_ai = yes
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
effect = {
|
# effect = {
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
seljuk_request_independence_from_liege_effect = yes
|
# seljuk_request_independence_from_liege_effect = yes
|
||||||
save_scope_as = owner
|
# save_scope_as = owner
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
# Create the empire and close the story
|
# # Create the empire and close the story
|
||||||
effect_group = {
|
# effect_group = {
|
||||||
days = { 30 60 }
|
# days = { 30 60 }
|
||||||
|
|
||||||
trigger = {
|
# trigger = {
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
save_temporary_scope_as = temp_seljuk
|
# save_temporary_scope_as = temp_seljuk
|
||||||
OR = {
|
# OR = {
|
||||||
any_county_in_region = {
|
# any_county_in_region = {
|
||||||
region = world_persian_empire
|
# region = world_persian_empire
|
||||||
percent >= 0.51
|
# percent >= 0.51
|
||||||
holder.top_liege = scope:temp_seljuk
|
# holder.top_liege = scope:temp_seljuk
|
||||||
}
|
# }
|
||||||
any_held_title = {
|
# any_held_title = {
|
||||||
count = 2
|
# count = 2
|
||||||
title_tier = kingdom
|
# title_tier = kingdom
|
||||||
any_this_title_or_de_jure_above = {
|
# any_this_title_or_de_jure_above = {
|
||||||
this = title:e_persia
|
# this = title:e_persia
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
any_held_title = {
|
# any_held_title = {
|
||||||
title_tier = empire
|
# title_tier = empire
|
||||||
any_this_title_or_de_jure_above = {
|
# any_this_title_or_de_jure_above = {
|
||||||
this = title:e_persia
|
# this = title:e_persia
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
triggered_effect = {
|
# triggered_effect = {
|
||||||
trigger = {
|
# trigger = {
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
is_ai = yes
|
# is_ai = yes
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
effect = {
|
# effect = {
|
||||||
story_owner = {
|
# story_owner = {
|
||||||
save_scope_as = owner
|
# save_scope_as = owner
|
||||||
|
|
||||||
create_title_and_vassal_change = {
|
# create_title_and_vassal_change = {
|
||||||
type = created
|
# type = created
|
||||||
save_scope_as = title_change
|
# save_scope_as = title_change
|
||||||
add_claim_on_loss = no
|
# add_claim_on_loss = no
|
||||||
}
|
# }
|
||||||
|
|
||||||
title:e_persia = {
|
# title:e_persia = {
|
||||||
change_title_holder = {
|
# change_title_holder = {
|
||||||
holder = scope:owner
|
# holder = scope:owner
|
||||||
change = scope:title_change
|
# change = scope:title_change
|
||||||
}
|
# }
|
||||||
save_scope_as = title_e_persia
|
# save_scope_as = title_e_persia
|
||||||
}
|
# }
|
||||||
|
|
||||||
resolve_title_and_vassal_change = scope:title_change
|
# resolve_title_and_vassal_change = scope:title_change
|
||||||
|
|
||||||
set_primary_title_to = scope:title_e_persia
|
# set_primary_title_to = scope:title_e_persia
|
||||||
|
|
||||||
}
|
# }
|
||||||
|
|
||||||
end_story = yes
|
# end_story = yes
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
}
|
# }
|
||||||
|
|
||||||
}
|
#}
|
||||||
|
|
|
||||||
|
|
@ -321,3 +321,27 @@ meritocratic_vassal = {
|
||||||
|
|
||||||
modify_contract_layout = eastern_admin
|
modify_contract_layout = eastern_admin
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# CK3 1.21 Silk & Silver: merchant tributary contract group.
|
||||||
|
tributary_merchant = {
|
||||||
|
is_tributary = yes
|
||||||
|
is_beneficiary_relationship = yes
|
||||||
|
tributary_can_break_free = { always = no }
|
||||||
|
suzerain_line_type = line_suzerain
|
||||||
|
tributary_line_type = line_tributary
|
||||||
|
tributary_heir_succession = yes
|
||||||
|
suzerain_heir_succession = yes
|
||||||
|
|
||||||
|
is_valid_tributary_contract = {
|
||||||
|
is_landless_merchant = yes
|
||||||
|
scope:suzerain = { is_landed = yes }
|
||||||
|
}
|
||||||
|
|
||||||
|
contracts = {
|
||||||
|
merchant_taxes
|
||||||
|
merchant_prestige
|
||||||
|
merchant_competitiveness
|
||||||
|
merchant_marriage
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,23 +2,23 @@
|
||||||
elector_vote_strength = {
|
elector_vote_strength = {
|
||||||
base = 0
|
base = 0
|
||||||
modifier = { #Each voter is the "representative" of all the free men living in his domain. The larger the domain, the more voting power he has.
|
modifier = { #Each voter is the "representative" of all the free men living in his domain. The larger the domain, the more voting power he has.
|
||||||
desc = tooltip_tribal_elective_development
|
desc = tooltip_tribal_elective_prosperity
|
||||||
is_landed_or_landless_administrative = yes
|
is_landed_or_landless_administrative = yes
|
||||||
domain_size >= 1
|
domain_size >= 1
|
||||||
any_held_title = {
|
any_held_title = {
|
||||||
title_tier = county
|
title_tier = county
|
||||||
development_level > 0
|
prosperity_level > 0
|
||||||
target_is_de_jure_liege_or_above = scope:title
|
target_is_de_jure_liege_or_above = scope:title
|
||||||
}
|
}
|
||||||
add = {
|
add = {
|
||||||
every_held_title = {
|
every_held_title = {
|
||||||
title_tier = county
|
title_tier = county
|
||||||
limit = {
|
limit = {
|
||||||
development_level > 0
|
prosperity_level > 0
|
||||||
target_is_de_jure_liege_or_above = scope:title
|
target_is_de_jure_liege_or_above = scope:title
|
||||||
}
|
}
|
||||||
add = {
|
add = {
|
||||||
value = this.development_level
|
value = this.prosperity_level
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
this.faith != root.faith
|
this.faith != root.faith
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -177,8 +177,8 @@ coronation_events.0100 = {
|
||||||
value = oath_university_gold_value
|
value = oath_university_gold_value
|
||||||
}
|
}
|
||||||
save_scope_value_as = {
|
save_scope_value_as = {
|
||||||
name = learning_oath_temp_development
|
name = learning_oath_temp_prosperity
|
||||||
value = oath_university_development_value
|
value = oath_university_prosperity_value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2087,13 +2087,13 @@ coronation_events.0205 = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
animation = jockey_walk
|
animation = jockey_walk # always horse
|
||||||
}
|
}
|
||||||
triggered_animation = {
|
triggered_animation = {
|
||||||
trigger = {
|
trigger = {
|
||||||
scope:activity.var:activity_special_type_progression >= 25
|
scope:activity.var:activity_special_type_progression >= 25
|
||||||
}
|
}
|
||||||
animation = jockey_wave
|
animation = jockey_wave # always horse
|
||||||
}
|
}
|
||||||
camera = camera_event_horse_left_centered
|
camera = camera_event_horse_left_centered
|
||||||
}
|
}
|
||||||
|
|
@ -2239,51 +2239,58 @@ coronation_events.0205 = {
|
||||||
}
|
}
|
||||||
activity_location = { save_scope_as = location }
|
activity_location = { save_scope_as = location }
|
||||||
activity_host = { save_scope_as = bg_override_char }
|
activity_host = { save_scope_as = bg_override_char }
|
||||||
#Guards for orderly east asian ceremonies in the palace
|
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
scope:host = {
|
root = {
|
||||||
OR = {
|
is_ai = no
|
||||||
coronation_host_east_asian_trigger = yes
|
|
||||||
government_has_flag = government_is_steppe_admin
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
create_character = {
|
#Guards for orderly east asian ceremonies in the palace
|
||||||
template = mercenary
|
if = {
|
||||||
location = scope:location
|
limit = {
|
||||||
culture = scope:host.culture
|
scope:host = {
|
||||||
faith = scope:host.faith
|
OR = {
|
||||||
rite = scope:host.rite
|
coronation_host_east_asian_trigger = yes
|
||||||
gender_female_chance = scope_value_target_soldier_female_chance
|
government_has_flag = government_is_steppe_admin
|
||||||
save_scope_as = audience_1
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
create_character = {
|
||||||
|
template = mercenary
|
||||||
|
location = scope:location
|
||||||
|
culture = scope:host.culture
|
||||||
|
faith = scope:host.faith
|
||||||
|
rite = scope:host.rite
|
||||||
|
gender_female_chance = scope_value_target_soldier_female_chance
|
||||||
|
save_scope_as = audience_1
|
||||||
|
}
|
||||||
|
create_character = {
|
||||||
|
template = mercenary
|
||||||
|
location = scope:location
|
||||||
|
culture = scope:host.culture
|
||||||
|
faith = scope:host.faith
|
||||||
|
rite = scope:host.rite
|
||||||
|
gender_female_chance = scope_value_target_soldier_female_chance
|
||||||
|
save_scope_as = audience_2
|
||||||
|
}
|
||||||
}
|
}
|
||||||
create_character = {
|
else = {
|
||||||
template = mercenary
|
create_character = {
|
||||||
location = scope:location
|
template = generic_peasant_character_no_rags
|
||||||
culture = scope:host.culture
|
location = scope:location
|
||||||
faith = scope:host.faith
|
culture = scope:location.culture
|
||||||
rite = scope:host.rite
|
faith = scope:location.faith
|
||||||
gender_female_chance = scope_value_target_soldier_female_chance
|
rite = scope:location.rite
|
||||||
save_scope_as = audience_2
|
save_scope_as = audience_1
|
||||||
}
|
}
|
||||||
}
|
create_character = {
|
||||||
else = {
|
template = generic_peasant_character_no_rags
|
||||||
create_character = {
|
location = scope:location
|
||||||
template = generic_peasant_character_no_rags
|
culture = scope:location.culture
|
||||||
location = scope:location
|
faith = scope:location.faith
|
||||||
culture = scope:location.culture
|
rite = scope:location.rite
|
||||||
faith = scope:location.faith
|
save_scope_as = audience_2
|
||||||
rite = scope:location.rite
|
}
|
||||||
save_scope_as = audience_1
|
|
||||||
}
|
|
||||||
create_character = {
|
|
||||||
template = generic_peasant_character_no_rags
|
|
||||||
location = scope:location
|
|
||||||
culture = scope:location.culture
|
|
||||||
faith = scope:location.faith
|
|
||||||
rite = scope:location.rite
|
|
||||||
save_scope_as = audience_2
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2730,10 +2737,10 @@ coronation_events.0205 = {
|
||||||
# For MP
|
# For MP
|
||||||
coronation_ready_effect = yes
|
coronation_ready_effect = yes
|
||||||
|
|
||||||
scope:audience_1 = {
|
scope:audience_1 ?= {
|
||||||
silent_disappearance_effect = yes
|
silent_disappearance_effect = yes
|
||||||
}
|
}
|
||||||
scope:audience_2 = {
|
scope:audience_2 ?= {
|
||||||
silent_disappearance_effect = yes
|
silent_disappearance_effect = yes
|
||||||
}
|
}
|
||||||
#Ask for clergy/nobility approval event
|
#Ask for clergy/nobility approval event
|
||||||
|
|
@ -2885,12 +2892,19 @@ coronation_events.0210 = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
create_character = {
|
if = {
|
||||||
template = bard_template
|
limit = {
|
||||||
dynasty = none
|
root = {
|
||||||
location = root.location
|
is_ai = no
|
||||||
gender_female_chance = root_faith_dominant_gender_female_chance
|
}
|
||||||
save_scope_as = musician
|
}
|
||||||
|
create_character = {
|
||||||
|
template = bard_template
|
||||||
|
dynasty = none
|
||||||
|
location = root.location
|
||||||
|
gender_female_chance = root_faith_dominant_gender_female_chance
|
||||||
|
save_scope_as = musician
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -2928,7 +2942,7 @@ coronation_events.0210 = {
|
||||||
after = {
|
after = {
|
||||||
# For MP
|
# For MP
|
||||||
coronation_ready_effect = yes
|
coronation_ready_effect = yes
|
||||||
scope:musician = {
|
scope:musician ?= {
|
||||||
silent_disappearance_effect = yes
|
silent_disappearance_effect = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2989,7 +3003,7 @@ coronation_events.0300 = {
|
||||||
limit = {
|
limit = {
|
||||||
OR = {
|
OR = {
|
||||||
cp:councillor_court_chaplain.involved_activity ?= involved_activity
|
cp:councillor_court_chaplain.involved_activity ?= involved_activity
|
||||||
cp:councillor_court_chaplain = {
|
cp:councillor_court_chaplain ?= {
|
||||||
coronation_events_0200_available_chaplain_trigger = yes
|
coronation_events_0200_available_chaplain_trigger = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -4643,7 +4657,7 @@ coronation_events.0310 = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
option = { #embrace_supporters supporter vassals get development boost to their realms
|
option = { #embrace_supporters supporter vassals get prosperity boost to their realms
|
||||||
name = coronation_events.0310.h
|
name = coronation_events.0310.h
|
||||||
custom_tooltip = coronation_events.0310.h.reward.tooltip
|
custom_tooltip = coronation_events.0310.h.reward.tooltip
|
||||||
trigger = {
|
trigger = {
|
||||||
|
|
@ -4705,7 +4719,7 @@ coronation_events.0310 = {
|
||||||
}
|
}
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = host_had_intent_reward
|
name = host_had_intent_reward
|
||||||
value = flag:vassal_development_boost
|
value = flag:vassal_prosperity_boost
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -4844,7 +4858,7 @@ coronation_events.0310 = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
option = { #exalt_crown domain boost development
|
option = { #exalt_crown domain boost prosperity
|
||||||
name = coronation_events.0310.k
|
name = coronation_events.0310.k
|
||||||
custom_tooltip = coronation_events.0310.k.reward.tooltip
|
custom_tooltip = coronation_events.0310.k.reward.tooltip
|
||||||
trigger = {
|
trigger = {
|
||||||
|
|
@ -4906,7 +4920,7 @@ coronation_events.0310 = {
|
||||||
}
|
}
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = host_had_intent_reward
|
name = host_had_intent_reward
|
||||||
value = flag:host_development_boost
|
value = flag:host_prosperity_boost
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -5213,8 +5227,8 @@ coronation_events.0312 = { #Guest ending event
|
||||||
flag:better_councillors = {
|
flag:better_councillors = {
|
||||||
custom_tooltip = coronation_events.0312.better_councillors
|
custom_tooltip = coronation_events.0312.better_councillors
|
||||||
}
|
}
|
||||||
flag:vassal_development_boost = {
|
flag:vassal_prosperity_boost = {
|
||||||
custom_tooltip = coronation_events.0312.vassal_development_boost
|
custom_tooltip = coronation_events.0312.vassal_prosperity_boost
|
||||||
}
|
}
|
||||||
flag:vassal_defensive_boost = {
|
flag:vassal_defensive_boost = {
|
||||||
custom_tooltip = coronation_events.0312.vassal_defensive_boost
|
custom_tooltip = coronation_events.0312.vassal_defensive_boost
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,9 @@ coronation_events.1000 = {
|
||||||
}
|
}
|
||||||
triggered_desc = {
|
triggered_desc = {
|
||||||
trigger = {
|
trigger = {
|
||||||
has_character_flag = low_county_opinion
|
has_character_flag = low_popular_opinion
|
||||||
}
|
}
|
||||||
desc = coronation_events.1000.low_county_opinion.desc
|
desc = coronation_events.1000.low_popular_opinion.desc
|
||||||
}
|
}
|
||||||
triggered_desc = {
|
triggered_desc = {
|
||||||
trigger = {
|
trigger = {
|
||||||
|
|
@ -62,7 +62,7 @@ coronation_events.1000 = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scope:activity.activity_location.county = {
|
scope:activity.activity_location.county = {
|
||||||
county_opinion < 0
|
popular_opinion < 0
|
||||||
}
|
}
|
||||||
tyranny >= 20
|
tyranny >= 20
|
||||||
}
|
}
|
||||||
|
|
@ -102,11 +102,11 @@ coronation_events.1000 = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
scope:activity.activity_location.county = {
|
scope:activity.activity_location.county = {
|
||||||
county_opinion < 0
|
popular_opinion < 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_character_flag = {
|
add_character_flag = {
|
||||||
flag = low_county_opinion
|
flag = low_popular_opinion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -265,9 +265,9 @@ coronation_events.1000 = {
|
||||||
|
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_character_flag = low_county_opinion
|
has_character_flag = low_popular_opinion
|
||||||
}
|
}
|
||||||
remove_character_flag = low_county_opinion
|
remove_character_flag = low_popular_opinion
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -1874,7 +1874,7 @@ coronation_events.1013 = {
|
||||||
trigger = {
|
trigger = {
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = {
|
limit = {
|
||||||
involved_activity = {
|
involved_activity ?= {
|
||||||
has_activity_type = activity_coronation
|
has_activity_type = activity_coronation
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1887,7 +1887,7 @@ coronation_events.1013 = {
|
||||||
}
|
}
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = {
|
limit = {
|
||||||
involved_activity = {
|
involved_activity ?= {
|
||||||
has_activity_type = activity_feast
|
has_activity_type = activity_feast
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1902,7 +1902,7 @@ coronation_events.1013 = {
|
||||||
NOT = {
|
NOT = {
|
||||||
has_character_flag = poor_activity_option_accident
|
has_character_flag = poor_activity_option_accident
|
||||||
}
|
}
|
||||||
involved_activity = {
|
involved_activity ?= {
|
||||||
any_attending_character = {
|
any_attending_character = {
|
||||||
is_ai = yes
|
is_ai = yes
|
||||||
is_adult = yes
|
is_adult = yes
|
||||||
|
|
@ -8872,9 +8872,12 @@ coronation_events.1032 = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_relation_friend = {
|
if = {
|
||||||
reason = friend_coronation_honor
|
limit = { can_set_relation_friend_trigger = { CHARACTER = scope:supporter } }
|
||||||
target = scope:supporter
|
set_relation_friend = {
|
||||||
|
reason = friend_coronation_honor
|
||||||
|
target = scope:supporter
|
||||||
|
}
|
||||||
}
|
}
|
||||||
hidden_effect = {
|
hidden_effect = {
|
||||||
add_opinion = {
|
add_opinion = {
|
||||||
|
|
@ -9050,9 +9053,9 @@ coronation_events.1033 = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_relation_nemesis = {
|
set_relation_nemesis_effect = {
|
||||||
target = scope:rival
|
TARGET = scope:rival
|
||||||
reason = rival_publicly_denounced_at_coronation
|
REASON = rival_publicly_denounced_at_coronation
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
|
|
|
||||||
|
|
@ -888,9 +888,9 @@ coronation_events.6001 = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scope:loyal_vassal = {
|
scope:loyal_vassal = {
|
||||||
set_relation_rival = {
|
set_relation_rival_effect = {
|
||||||
target = root
|
TARGET = root
|
||||||
reason = rival_traitor_to_confederation
|
REASON = rival_traitor_to_confederation
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
coronation_move_towards_detractor_effect = { CHARACTER = scope:loyal_vassal }
|
coronation_move_towards_detractor_effect = { CHARACTER = scope:loyal_vassal }
|
||||||
|
|
@ -1591,9 +1591,9 @@ scripted_trigger coronation_events_6011_county_trigger = {
|
||||||
any_county_province = {
|
any_county_province = {
|
||||||
has_holding_type = tribal_holding
|
has_holding_type = tribal_holding
|
||||||
OR = {
|
OR = {
|
||||||
has_building_or_higher = palisades_01
|
has_building_or_higher = warrior_households_1
|
||||||
has_building_or_higher = war_camps_01
|
has_building_or_higher = fortified_holds_1
|
||||||
has_building_or_higher = warrior_lodges_01
|
has_building_or_higher = armed_clans_1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1751,7 +1751,7 @@ coronation_events.6011 = {
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
ordered_held_title = {
|
ordered_held_title = {
|
||||||
order_by = development_level
|
order_by = prosperity_level
|
||||||
limit = {
|
limit = {
|
||||||
tier = tier_county
|
tier = tier_county
|
||||||
coronation_events_6011_county_trigger = yes
|
coronation_events_6011_county_trigger = yes
|
||||||
|
|
@ -1772,7 +1772,7 @@ coronation_events.6011 = {
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
ordered_held_title = {
|
ordered_held_title = {
|
||||||
order_by = development_level
|
order_by = prosperity_level
|
||||||
limit = {
|
limit = {
|
||||||
tier = tier_county
|
tier = tier_county
|
||||||
coronation_events_6011_county_trigger = yes
|
coronation_events_6011_county_trigger = yes
|
||||||
|
|
@ -1857,28 +1857,28 @@ coronation_events.6011 = {
|
||||||
random_county_province = {
|
random_county_province = {
|
||||||
limit = {
|
limit = {
|
||||||
OR = {
|
OR = {
|
||||||
has_building_or_higher = warrior_lodges_01
|
has_building_or_higher = warrior_households_1
|
||||||
has_building_or_higher = palisades_01
|
has_building_or_higher = fortified_holds_1
|
||||||
has_building_or_higher = war_camps_01
|
has_building_or_higher = armed_clans_1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_building_or_higher = war_camps_01
|
has_building_or_higher = warrior_households_1
|
||||||
}
|
}
|
||||||
destroy_or_downgrade_tribal_building_effect = { BUILDING = war_camps }
|
destroy_or_downgrade_district_building_effect = { BUILDING = warrior_households }
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_building_or_higher = palisades_01
|
has_building_or_higher = fortified_holds_1
|
||||||
}
|
}
|
||||||
destroy_or_downgrade_tribal_building_effect = { BUILDING = palisades }
|
destroy_or_downgrade_district_building_effect = { BUILDING = fortified_holds }
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_building_or_higher = warrior_lodges_01
|
has_building_or_higher = armed_clans_1
|
||||||
}
|
}
|
||||||
destroy_or_downgrade_building_effect = { BUILDING = warrior_lodges }
|
destroy_or_downgrade_district_building_effect = { BUILDING = armed_clans }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
random_county_province = {
|
random_county_province = {
|
||||||
|
|
@ -1893,28 +1893,28 @@ coronation_events.6011 = {
|
||||||
random_county_province = {
|
random_county_province = {
|
||||||
limit = {
|
limit = {
|
||||||
OR = {
|
OR = {
|
||||||
has_building_or_higher = warrior_lodges_01
|
has_building_or_higher = warrior_households_1
|
||||||
has_building_or_higher = palisades_01
|
has_building_or_higher = fortified_holds_1
|
||||||
has_building_or_higher = war_camps_01
|
has_building_or_higher = armed_clans_1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_building_or_higher = war_camps_01
|
has_building_or_higher = warrior_households_1
|
||||||
}
|
}
|
||||||
destroy_or_downgrade_tribal_building_effect = { BUILDING = war_camps }
|
destroy_or_downgrade_district_building_effect = { BUILDING = warrior_households }
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_building_or_higher = palisades_01
|
has_building_or_higher = fortified_holds_1
|
||||||
}
|
}
|
||||||
destroy_or_downgrade_tribal_building_effect = { BUILDING = palisades }
|
destroy_or_downgrade_district_building_effect = { BUILDING = fortified_holds }
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_building_or_higher = warrior_lodges_01
|
has_building_or_higher = armed_clans_1
|
||||||
}
|
}
|
||||||
destroy_or_downgrade_building_effect = { BUILDING = warrior_lodges }
|
destroy_or_downgrade_district_building_effect = { BUILDING = armed_clans }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
random_county_province = {
|
random_county_province = {
|
||||||
|
|
@ -2436,7 +2436,7 @@ scripted_trigger coronation_events_6020_supporter_trigger = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
capital_county ?= {
|
capital_county ?= {
|
||||||
development_level >= 1
|
prosperity_level >= 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2445,15 +2445,15 @@ scripted_effect coronation_events_6020_mass_mobilization_effect = {
|
||||||
scope:supporter = {
|
scope:supporter = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_variable = mass_mobilitization_development_progress_value
|
has_variable = mass_mobilitization_prosperity_progress_value
|
||||||
}
|
}
|
||||||
custom_tooltip = mass_mob_dev_progress_tt
|
custom_tooltip = mass_mob_pros_progress_tt
|
||||||
hidden_effect = {
|
hidden_effect = {
|
||||||
every_held_title = {
|
every_held_title = {
|
||||||
limit = {
|
limit = {
|
||||||
tier = tier_county
|
tier = tier_county
|
||||||
}
|
}
|
||||||
change_development_progress_with_overflow = scope:supporter.var:mass_mobilitization_development_progress_value
|
change_prosperity_progress_with_overflow = scope:supporter.var:mass_mobilitization_prosperity_progress_value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2473,20 +2473,20 @@ scripted_effect coronation_events_6020_mass_mobilization_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#Tribal era just does development progress
|
|
||||||
else = {
|
else = {
|
||||||
|
|
||||||
custom_tooltip = mass_mob_dev_tt
|
custom_tooltip = mass_mob_pros_tt
|
||||||
|
|
||||||
hidden_effect = {
|
hidden_effect = {
|
||||||
every_held_title = {
|
every_held_title = {
|
||||||
limit = {
|
limit = {
|
||||||
tier = tier_county
|
tier = tier_county
|
||||||
development_level >= 1
|
prosperity_level >= 1
|
||||||
}
|
}
|
||||||
change_development_level = {
|
change_prosperity_level = {
|
||||||
add = scope:supporter.var:mass_mobilitization_development_value
|
add = scope:supporter.var:mass_mobilitization_prosperity_value
|
||||||
min = {
|
min = {
|
||||||
value = development_level
|
value = prosperity_level
|
||||||
multiply = -1
|
multiply = -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2852,18 +2852,6 @@ scripted_effect coronation_events_6020_declare_war_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
|
||||||
government_has_mechanic = administrative
|
|
||||||
NOT = {
|
|
||||||
has_variable = admin_permission_to_declare_war
|
|
||||||
}
|
|
||||||
}
|
|
||||||
custom_tooltip = {
|
|
||||||
text = admin_gain_war_permission_desc
|
|
||||||
set_variable = admin_permission_to_declare_war
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else_if = {
|
|
||||||
limit = {
|
limit = {
|
||||||
government_has_flag = government_is_feudal
|
government_has_flag = government_is_feudal
|
||||||
vassal_contract_obligation_level:war_declaration_rights < 1
|
vassal_contract_obligation_level:war_declaration_rights < 1
|
||||||
|
|
@ -2922,7 +2910,7 @@ scripted_effect coronation_events_6020_declare_war_effect = {
|
||||||
ordered_claim = {
|
ordered_claim = {
|
||||||
order_by = tier
|
order_by = tier
|
||||||
limit = {
|
limit = {
|
||||||
holder = {
|
holder ?= {
|
||||||
OR = {
|
OR = {
|
||||||
this ?= $FOE$
|
this ?= $FOE$
|
||||||
any_liege_or_above = {
|
any_liege_or_above = {
|
||||||
|
|
@ -3214,7 +3202,7 @@ coronation_events.6020 = {
|
||||||
}
|
}
|
||||||
scope:supporter = {
|
scope:supporter = {
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = mass_mobilitization_development_progress_value
|
name = mass_mobilitization_prosperity_progress_value
|
||||||
value = -50
|
value = -50
|
||||||
}
|
}
|
||||||
set_variable = {
|
set_variable = {
|
||||||
|
|
@ -3268,7 +3256,7 @@ coronation_events.6020 = {
|
||||||
else = {
|
else = {
|
||||||
scope:supporter = {
|
scope:supporter = {
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = mass_mobilitization_development_value
|
name = mass_mobilitization_prosperity_value
|
||||||
value = {
|
value = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -3288,7 +3276,7 @@ coronation_events.6020 = {
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = mass_mobilitization_total
|
name = mass_mobilitization_total
|
||||||
value = {
|
value = {
|
||||||
add = var:mass_mobilitization_development_value
|
add = var:mass_mobilitization_prosperity_value
|
||||||
multiply = domain_size
|
multiply = domain_size
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3360,7 +3348,7 @@ coronation_events.6020 = {
|
||||||
trigger = {
|
trigger = {
|
||||||
has_activity_intent = coronation_weaken_detractors
|
has_activity_intent = coronation_weaken_detractors
|
||||||
}
|
}
|
||||||
#Increase armies and tank development effect
|
#Increase armies and tank prosperity effect
|
||||||
coronation_events_6020_mass_mobilization_effect = yes
|
coronation_events_6020_mass_mobilization_effect = yes
|
||||||
scope:supporter = {
|
scope:supporter = {
|
||||||
coronation_events_6020_declare_war_effect = { FOE = scope:foe }
|
coronation_events_6020_declare_war_effect = { FOE = scope:foe }
|
||||||
|
|
@ -3697,8 +3685,8 @@ coronation_events.6020 = {
|
||||||
coronation_ready_effect = yes
|
coronation_ready_effect = yes
|
||||||
|
|
||||||
scope:supporter = {
|
scope:supporter = {
|
||||||
remove_variable = mass_mobilitization_development_value
|
remove_variable = mass_mobilitization_prosperity_value
|
||||||
remove_variable = mass_mobilitization_development_progress_value
|
remove_variable = mass_mobilitization_prosperity_progress_value
|
||||||
remove_variable = mass_mobilitization_fertility_value
|
remove_variable = mass_mobilitization_fertility_value
|
||||||
remove_variable = mass_mobilitization_total
|
remove_variable = mass_mobilitization_total
|
||||||
}
|
}
|
||||||
|
|
@ -3805,7 +3793,7 @@ coronation_events.6030 = {
|
||||||
has_contagious_deadly_disease_trigger = yes
|
has_contagious_deadly_disease_trigger = yes
|
||||||
has_trait = leper
|
has_trait = leper
|
||||||
}
|
}
|
||||||
involved_activity = {
|
involved_activity ?= {
|
||||||
activity_host = {
|
activity_host = {
|
||||||
OR = {
|
OR = {
|
||||||
AND = {
|
AND = {
|
||||||
|
|
@ -5404,7 +5392,7 @@ scripted_effect coronation_events_6101_self_crowning_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scope:activity.var:anointment_authority ?= {
|
faith.religious_head ?= {
|
||||||
save_scope_as = judger
|
save_scope_as = judger
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -8901,48 +8889,22 @@ coronation_events.6121 = {
|
||||||
#Break alliance between vassal and foreign ruler
|
#Break alliance between vassal and foreign ruler
|
||||||
scope:vassal_1 = {
|
scope:vassal_1 = {
|
||||||
break_alliance = scope:detractor_ally_1
|
break_alliance = scope:detractor_ally_1
|
||||||
if = {
|
progress_towards_nemesis_effect = {
|
||||||
limit = {
|
REASON = rival_accused_of_foreign_collusion
|
||||||
NOT = {
|
CHARACTER = root
|
||||||
has_relation_rival = root
|
OPINION = 0
|
||||||
}
|
|
||||||
}
|
|
||||||
set_relation_rival = {
|
|
||||||
target = root
|
|
||||||
reason = rival_accused_of_foreign_collusion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else = {
|
|
||||||
set_relation_nemesis = {
|
|
||||||
target = root
|
|
||||||
reason = rival_accused_of_foreign_collusion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
coronation_move_towards_detractor_effect = { CHARACTER = scope:vassal_1 }
|
coronation_move_towards_detractor_effect = { CHARACTER = scope:vassal_1 }
|
||||||
}
|
}
|
||||||
scope:vassal_2 = {
|
scope:vassal_2 = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = { exists = scope:detractor_ally_2 }
|
||||||
exists = scope:detractor_ally_2
|
|
||||||
}
|
|
||||||
break_alliance = scope:detractor_ally_2
|
break_alliance = scope:detractor_ally_2
|
||||||
}
|
}
|
||||||
if = {
|
progress_towards_nemesis_effect = {
|
||||||
limit = {
|
REASON = rival_accused_of_foreign_collusion
|
||||||
NOT = {
|
CHARACTER = root
|
||||||
has_relation_rival = root
|
OPINION = 0
|
||||||
}
|
|
||||||
}
|
|
||||||
set_relation_rival = {
|
|
||||||
target = root
|
|
||||||
reason = rival_accused_of_foreign_collusion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else = {
|
|
||||||
set_relation_nemesis = {
|
|
||||||
target = root
|
|
||||||
reason = rival_accused_of_foreign_collusion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
coronation_move_towards_detractor_effect = { CHARACTER = scope:vassal_2 }
|
coronation_move_towards_detractor_effect = { CHARACTER = scope:vassal_2 }
|
||||||
}
|
}
|
||||||
|
|
@ -8951,7 +8913,7 @@ coronation_events.6121 = {
|
||||||
scope:vassal_1 = {
|
scope:vassal_1 = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
government_has_flag = government_has_influence
|
government_has_mechanic = administrative
|
||||||
}
|
}
|
||||||
change_influence = medium_influence_loss
|
change_influence = medium_influence_loss
|
||||||
}
|
}
|
||||||
|
|
@ -8962,7 +8924,7 @@ coronation_events.6121 = {
|
||||||
scope:vassal_2 = {
|
scope:vassal_2 = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
government_has_flag = government_has_influence
|
government_has_mechanic = administrative
|
||||||
}
|
}
|
||||||
change_influence = medium_influence_loss
|
change_influence = medium_influence_loss
|
||||||
}
|
}
|
||||||
|
|
@ -9212,7 +9174,7 @@ coronation_events.6121 = {
|
||||||
|
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
government_has_flag = government_has_influence
|
government_has_mechanic = administrative
|
||||||
}
|
}
|
||||||
change_influence = medium_influence_gain
|
change_influence = medium_influence_gain
|
||||||
}
|
}
|
||||||
|
|
@ -9228,7 +9190,7 @@ coronation_events.6121 = {
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
government_has_flag = government_has_influence
|
government_has_mechanic = administrative
|
||||||
top_liege = involved_activity.activity_host
|
top_liege = involved_activity.activity_host
|
||||||
}
|
}
|
||||||
change_influence = minor_influence_gain
|
change_influence = minor_influence_gain
|
||||||
|
|
@ -9363,16 +9325,6 @@ coronation_events.6121 = {
|
||||||
|
|
||||||
|
|
||||||
custom_tooltip = coronation_events.6121_duel_tt
|
custom_tooltip = coronation_events.6121_duel_tt
|
||||||
configure_start_single_combat_effect = {
|
|
||||||
SC_INITIATOR = root
|
|
||||||
SC_ATTACKER = root
|
|
||||||
SC_DEFENDER = scope:vassal_2
|
|
||||||
FATALITY = always
|
|
||||||
FIXED = no
|
|
||||||
LOCALE = temple
|
|
||||||
OUTPUT_EVENT = single_combat.1006
|
|
||||||
INVALIDATION_EVENT = single_combat.1006
|
|
||||||
}
|
|
||||||
add_dread = major_dread_gain
|
add_dread = major_dread_gain
|
||||||
add_prestige = medium_prestige_gain
|
add_prestige = medium_prestige_gain
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -9394,21 +9346,30 @@ coronation_events.6121 = {
|
||||||
}
|
}
|
||||||
add_tyranny = medium_tyranny_gain
|
add_tyranny = medium_tyranny_gain
|
||||||
}
|
}
|
||||||
|
configure_start_single_combat_effect = {
|
||||||
|
SC_INITIATOR = root
|
||||||
|
SC_ATTACKER = root
|
||||||
|
SC_DEFENDER = scope:vassal_2
|
||||||
|
FATALITY = always
|
||||||
|
FIXED = no
|
||||||
|
LOCALE = temple
|
||||||
|
OUTPUT_EVENT = single_combat.1006
|
||||||
|
INVALIDATION_EVENT = single_combat.1006
|
||||||
|
}
|
||||||
scope:vassal_2 = {
|
scope:vassal_2 = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
is_alive = yes
|
is_alive = yes
|
||||||
|
root = { is_alive = yes } # The duel is fatal and can kill root
|
||||||
can_set_relation_rival_trigger = { CHARACTER = root }
|
can_set_relation_rival_trigger = { CHARACTER = root }
|
||||||
}
|
}
|
||||||
set_relation_rival = {
|
set_relation_rival_effect = {
|
||||||
target = root
|
TARGET = root
|
||||||
reason = rival_duel_attacked
|
REASON = rival_duel_attacked
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = { involved_activity ?= scope:activity }
|
||||||
involved_activity ?= scope:activity
|
|
||||||
}
|
|
||||||
coronation_move_towards_detractor_effect = { CHARACTER = scope:vassal_2 }
|
coronation_move_towards_detractor_effect = { CHARACTER = scope:vassal_2 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -12899,7 +12860,7 @@ scripted_effect coronation_events_6140_spouse_effects = {
|
||||||
add_prestige = coronation_spouse_prestige_value
|
add_prestige = coronation_spouse_prestige_value
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
government_has_flag = government_has_influence
|
government_has_mechanic = administrative
|
||||||
top_liege.primary_title = scope:host.top_liege.primary_title
|
top_liege.primary_title = scope:host.top_liege.primary_title
|
||||||
}
|
}
|
||||||
change_influence = coronation_spouse_influence_value
|
change_influence = coronation_spouse_influence_value
|
||||||
|
|
@ -13203,7 +13164,6 @@ coronation_events.6140 = {
|
||||||
OR = {
|
OR = {
|
||||||
has_relation_lover = scope:spouse
|
has_relation_lover = scope:spouse
|
||||||
has_relation_crush = scope:spouse
|
has_relation_crush = scope:spouse
|
||||||
has_relation_soulmate = scope:spouse
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -13697,7 +13657,6 @@ coronation_events.6140 = {
|
||||||
trigger = {
|
trigger = {
|
||||||
OR = {
|
OR = {
|
||||||
has_relation_lover = scope:spouse
|
has_relation_lover = scope:spouse
|
||||||
has_relation_soulmate = scope:spouse
|
|
||||||
opinion = {
|
opinion = {
|
||||||
target = scope:spouse
|
target = scope:spouse
|
||||||
value >= 90
|
value >= 90
|
||||||
|
|
|
||||||
|
|
@ -91,11 +91,13 @@ ecumenical_council_events_josh.0001 = {
|
||||||
scope:murder_target = {
|
scope:murder_target = {
|
||||||
NOR = {
|
NOR = {
|
||||||
has_relation_rival = root
|
has_relation_rival = root
|
||||||
has_relation_nemesis = root
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_relation_rival = scope:murder_target
|
set_relation_rival_effect = {
|
||||||
|
TARGET = scope:murder_target
|
||||||
|
REASON = rival_murder_compline
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -386,7 +388,9 @@ ecumenical_council_events_josh.0011 = {
|
||||||
change_spiritual_fulfillment = minor_spiritual_fulfillment_value
|
change_spiritual_fulfillment = minor_spiritual_fulfillment_value
|
||||||
involved_activity = {
|
involved_activity = {
|
||||||
every_attending_character = {
|
every_attending_character = {
|
||||||
|
limit = { this != root }
|
||||||
custom = every_guest_scope_tt
|
custom = every_guest_scope_tt
|
||||||
|
limit = { this != root }
|
||||||
add_opinion = {
|
add_opinion = {
|
||||||
target = ROOT
|
target = ROOT
|
||||||
modifier = thankful_opinion
|
modifier = thankful_opinion
|
||||||
|
|
@ -754,6 +758,7 @@ ecumenical_council_events_josh.0012 = {
|
||||||
|
|
||||||
option = { # Get a strong hook on them.
|
option = { # Get a strong hook on them.
|
||||||
name = ecumenical_council_events_josh.0012.c
|
name = ecumenical_council_events_josh.0012.c
|
||||||
|
trigger = { exists = scope:bishoplover_homosexual_secret }
|
||||||
add_hook = {
|
add_hook = {
|
||||||
type = strong_blackmail_hook
|
type = strong_blackmail_hook
|
||||||
target = scope:guest_bishoplover
|
target = scope:guest_bishoplover
|
||||||
|
|
@ -1231,10 +1236,22 @@ ecumenical_council_events_josh.0021 = {
|
||||||
limit = {
|
limit = {
|
||||||
is_clergy = yes
|
is_clergy = yes
|
||||||
}
|
}
|
||||||
pam_boost_clerical_appointment_score_effect = { CHARACTER = this VALUE = 50 }
|
pam_boost_clerical_appointment_score_effect = { CHARACTER = root VALUE = 50 }
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
exists = puppet:theological_agent_puppet
|
||||||
|
}
|
||||||
|
puppet:theological_agent_puppet = {
|
||||||
|
save_scope_as = theological_agent_puppet
|
||||||
|
pam_boost_clerical_appointment_score_effect = { CHARACTER = scope:theological_agent_puppet VALUE = 50 }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
pam_boost_clerical_appointment_score_effect = { CHARACTER = puppet:theological_agent_puppet VALUE = 50 }
|
puppet:external_theological_agent_puppet ?= {
|
||||||
|
save_scope_as = theological_agent_puppet
|
||||||
|
pam_boost_clerical_appointment_score_effect = { CHARACTER = scope:theological_agent_puppet VALUE = 50 }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
|
|
@ -1626,6 +1643,15 @@ ecumenical_council_events_josh.0024 = {
|
||||||
ecumenical_shareable_unknown_tenet_for_root_trigger = yes
|
ecumenical_shareable_unknown_tenet_for_root_trigger = yes
|
||||||
save_temporary_scope_as = ecumenical_tenet_teacher_b
|
save_temporary_scope_as = ecumenical_tenet_teacher_b
|
||||||
any_character_tenet = {
|
any_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
save_temporary_scope_as = ecumenical_tenet_candidate
|
||||||
|
NOT = { root = { knows_tenet = scope:ecumenical_tenet_candidate } }
|
||||||
|
root.faith.main_rite = {
|
||||||
|
has_tenet_status = {
|
||||||
|
tenet = scope:ecumenical_tenet_candidate
|
||||||
|
status = unknown
|
||||||
|
}
|
||||||
|
}
|
||||||
NOT = {
|
NOT = {
|
||||||
this = scope:tenet_a_temp
|
this = scope:tenet_a_temp
|
||||||
}
|
}
|
||||||
|
|
@ -1671,6 +1697,18 @@ ecumenical_council_events_josh.0024 = {
|
||||||
this = scope:tenet_target_a
|
this = scope:tenet_target_a
|
||||||
}
|
}
|
||||||
ecumenical_shareable_unknown_tenet_for_root_trigger = yes
|
ecumenical_shareable_unknown_tenet_for_root_trigger = yes
|
||||||
|
any_character_tenet = {
|
||||||
|
knowledge_filter = known
|
||||||
|
save_temporary_scope_as = ecumenical_tenet_candidate
|
||||||
|
NOT = { root = { knows_tenet = scope:ecumenical_tenet_candidate } }
|
||||||
|
root.faith.main_rite = {
|
||||||
|
has_tenet_status = {
|
||||||
|
tenet = scope:ecumenical_tenet_candidate
|
||||||
|
status = unknown
|
||||||
|
}
|
||||||
|
}
|
||||||
|
NOT = { this = scope:tenet_target_a_shareable_tenet }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
save_scope_as = tenet_target_b
|
save_scope_as = tenet_target_b
|
||||||
random_character_tenet = {
|
random_character_tenet = {
|
||||||
|
|
@ -1775,6 +1813,7 @@ ecumenical_council_events_josh.0024 = {
|
||||||
# That book seems interesting.
|
# That book seems interesting.
|
||||||
option = {
|
option = {
|
||||||
name = ecumenical_council_events_josh.0024.b
|
name = ecumenical_council_events_josh.0024.b
|
||||||
|
trigger = { exists = scope:tenet_target_b_shareable_tenet } # Their only shareable tenet can be the one already picked for the other guest
|
||||||
add_known_tenet = scope:tenet_target_b_shareable_tenet
|
add_known_tenet = scope:tenet_target_b_shareable_tenet
|
||||||
scope:tenet_target_b = {
|
scope:tenet_target_b = {
|
||||||
add_opinion = {
|
add_opinion = {
|
||||||
|
|
@ -1887,7 +1926,7 @@ ecumenical_council_events_josh.0025 = {
|
||||||
cooldown = { years = 5 }
|
cooldown = { years = 5 }
|
||||||
|
|
||||||
trigger = {
|
trigger = {
|
||||||
religion = religion:christianity_religion
|
OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
|
||||||
NOR = {
|
NOR = {
|
||||||
involved_activity.activity_host.faith = {
|
involved_activity.activity_host.faith = {
|
||||||
OR = {
|
OR = {
|
||||||
|
|
|
||||||
|
|
@ -773,7 +773,7 @@ hold_court.1021 = {
|
||||||
limit = {
|
limit = {
|
||||||
OR = {
|
OR = {
|
||||||
this = scope:county
|
this = scope:county
|
||||||
development_level <= 15
|
prosperity_level <= 15
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_county_modifier = {
|
add_county_modifier = {
|
||||||
|
|
@ -800,7 +800,7 @@ hold_court.1021 = {
|
||||||
limit = {
|
limit = {
|
||||||
OR = {
|
OR = {
|
||||||
this = scope:county
|
this = scope:county
|
||||||
development_level <= 15
|
prosperity_level <= 15
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_county_modifier = {
|
add_county_modifier = {
|
||||||
|
|
@ -828,7 +828,7 @@ hold_court.1021 = {
|
||||||
limit = {
|
limit = {
|
||||||
OR = {
|
OR = {
|
||||||
this = scope:county
|
this = scope:county
|
||||||
development_level <= 15
|
prosperity_level <= 15
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_county_modifier = {
|
add_county_modifier = {
|
||||||
|
|
@ -846,7 +846,7 @@ hold_court.1021 = {
|
||||||
limit = {
|
limit = {
|
||||||
OR = {
|
OR = {
|
||||||
this = scope:county
|
this = scope:county
|
||||||
development_level <= 15
|
prosperity_level <= 15
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_county_modifier = {
|
add_county_modifier = {
|
||||||
|
|
@ -1953,7 +1953,7 @@ hold_court.3030 = {
|
||||||
base = 1
|
base = 1
|
||||||
modifier = {
|
modifier = {
|
||||||
add = 10
|
add = 10
|
||||||
has_free_building_slot = yes
|
has_free_district_slot = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
save_scope_as = province
|
save_scope_as = province
|
||||||
|
|
@ -2028,7 +2028,7 @@ hold_court.3030 = {
|
||||||
option = {
|
option = {
|
||||||
name = hold_court.3030.b
|
name = hold_court.3030.b
|
||||||
trigger = {
|
trigger = {
|
||||||
scope:province = { has_free_building_slot = yes }
|
scope:province = { has_free_district_slot = yes }
|
||||||
}
|
}
|
||||||
|
|
||||||
stress_and_fulfillment_impact = {
|
stress_and_fulfillment_impact = {
|
||||||
|
|
@ -4129,7 +4129,6 @@ hold_court.4600 = {
|
||||||
has_relation_lover = root
|
has_relation_lover = root
|
||||||
has_relation_friend = root
|
has_relation_friend = root
|
||||||
has_relation_rival = root
|
has_relation_rival = root
|
||||||
has_relation_soulmate = root
|
|
||||||
is_close_family_of = root
|
is_close_family_of = root
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -9622,7 +9621,7 @@ hold_court.6121 = {
|
||||||
# 6130
|
# 6130
|
||||||
##################################################
|
##################################################
|
||||||
|
|
||||||
# Someone suggests a "cadastral survey" - high cost for an increase of development in all counties you hold #
|
# Someone suggests a "cadastral survey" - high cost for an increase of prosperity in all counties you hold #
|
||||||
|
|
||||||
scripted_trigger hold_court_6130_valid_child_trigger = {
|
scripted_trigger hold_court_6130_valid_child_trigger = {
|
||||||
has_court_event_flag = no
|
has_court_event_flag = no
|
||||||
|
|
@ -9641,7 +9640,7 @@ scripted_effect hold_court_6130_a_rewards = {
|
||||||
}
|
}
|
||||||
every_held_county = {
|
every_held_county = {
|
||||||
custom = custom.every_held_county
|
custom = custom.every_held_county
|
||||||
change_development_progress_with_overflow = 50
|
change_prosperity_progress_with_overflow = 50
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
|
|
@ -9653,7 +9652,7 @@ scripted_effect hold_court_6130_a_rewards = {
|
||||||
}
|
}
|
||||||
every_held_county = {
|
every_held_county = {
|
||||||
custom = custom.every_held_county
|
custom = custom.every_held_county
|
||||||
change_development_progress_with_overflow = 35
|
change_prosperity_progress_with_overflow = 35
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scope:6130_proposer = {
|
scope:6130_proposer = {
|
||||||
|
|
@ -12156,9 +12155,9 @@ scripted_effect hold_court_8001_revoke_title_effect = {
|
||||||
remove_relation_potential_rival = root
|
remove_relation_potential_rival = root
|
||||||
}
|
}
|
||||||
root = {
|
root = {
|
||||||
set_relation_rival = {
|
set_relation_rival_effect = {
|
||||||
target = prev
|
TARGET = prev
|
||||||
reason = rival_revoked_title
|
REASON = rival_revoked_title
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -12277,7 +12276,7 @@ hold_court.8001 = {
|
||||||
}
|
}
|
||||||
hold_court_8001_revoke_title_effect = yes
|
hold_court_8001_revoke_title_effect = yes
|
||||||
}
|
}
|
||||||
scope:town.county = { change_development_progress = 50 }
|
scope:town.county = { change_prosperity_progress = 50 }
|
||||||
add_character_modifier = {
|
add_character_modifier = {
|
||||||
modifier = hold_court_8001_deposed_modifier
|
modifier = hold_court_8001_deposed_modifier
|
||||||
years = 10
|
years = 10
|
||||||
|
|
@ -12345,7 +12344,7 @@ hold_court.8001 = {
|
||||||
modifier = hold_court_8001_merchant_boon_modifier
|
modifier = hold_court_8001_merchant_boon_modifier
|
||||||
years = 15
|
years = 15
|
||||||
}
|
}
|
||||||
change_development_level = 1
|
change_prosperity_level = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -12453,7 +12452,7 @@ hold_court.8001 = {
|
||||||
send_interface_toast = {
|
send_interface_toast = {
|
||||||
title = hold_court.8001.c.tt_failure
|
title = hold_court.8001.c.tt_failure
|
||||||
scope:town.county = {
|
scope:town.county = {
|
||||||
scope:town.county = { change_development_progress = -50 }
|
scope:town.county = { change_prosperity_progress = -50 }
|
||||||
add_county_modifier = {
|
add_county_modifier = {
|
||||||
modifier = hold_court_8001_ignored_modifier
|
modifier = hold_court_8001_ignored_modifier
|
||||||
years = 10
|
years = 10
|
||||||
|
|
@ -15098,7 +15097,7 @@ hold_court.8060 = {
|
||||||
county_has_all_holding_types = yes
|
county_has_all_holding_types = yes
|
||||||
}
|
}
|
||||||
alternative_limit = { county_has_empty_province_trigger = yes }
|
alternative_limit = { county_has_empty_province_trigger = yes }
|
||||||
order_by = development_level
|
order_by = prosperity_level
|
||||||
save_scope_as = target_county
|
save_scope_as = target_county
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -15147,7 +15146,7 @@ hold_court.8060 = {
|
||||||
faith = ROOT.faith
|
faith = ROOT.faith
|
||||||
any_county_province = { province_has_no_holding_trigger = yes }
|
any_county_province = { province_has_no_holding_trigger = yes }
|
||||||
}
|
}
|
||||||
order_by = development_level
|
order_by = prosperity_level
|
||||||
save_scope_as = target_county
|
save_scope_as = target_county
|
||||||
holder = {
|
holder = {
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -15855,7 +15854,7 @@ hold_court.8070 = {
|
||||||
county_has_all_holding_types = yes
|
county_has_all_holding_types = yes
|
||||||
}
|
}
|
||||||
alternative_limit = { county_has_empty_province_trigger = yes }
|
alternative_limit = { county_has_empty_province_trigger = yes }
|
||||||
order_by = development_level
|
order_by = prosperity_level
|
||||||
save_scope_as = target_county
|
save_scope_as = target_county
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -15898,7 +15897,7 @@ hold_court.8070 = {
|
||||||
holder = { hold_court_8070_vassal_trigger = yes }
|
holder = { hold_court_8070_vassal_trigger = yes }
|
||||||
any_county_province = { province_has_no_holding_trigger = yes }
|
any_county_province = { province_has_no_holding_trigger = yes }
|
||||||
}
|
}
|
||||||
order_by = development_level
|
order_by = prosperity_level
|
||||||
save_scope_as = target_county
|
save_scope_as = target_county
|
||||||
holder = { save_scope_as = vassal }
|
holder = { save_scope_as = vassal }
|
||||||
}
|
}
|
||||||
|
|
@ -16388,7 +16387,7 @@ hold_court.8071 = {
|
||||||
|
|
||||||
scripted_trigger hold_court_8080_mayor_trigger = { # Check mayor's culture, and city wealth
|
scripted_trigger hold_court_8080_mayor_trigger = { # Check mayor's culture, and city wealth
|
||||||
hold_court_available_mayor_trigger = yes
|
hold_court_available_mayor_trigger = yes
|
||||||
culture = { has_innovation = innovation_development_02 }
|
culture = { has_innovation = innovation_prosperity_02 }
|
||||||
primary_title = {
|
primary_title = {
|
||||||
de_jure_liege = {
|
de_jure_liege = {
|
||||||
this != root.capital_county
|
this != root.capital_county
|
||||||
|
|
@ -16465,7 +16464,7 @@ hold_court.8080 = {
|
||||||
name = has_had_government_request_event
|
name = has_had_government_request_event
|
||||||
}
|
}
|
||||||
top_liege = this
|
top_liege = this
|
||||||
culture = { has_innovation = innovation_development_02 }
|
culture = { has_innovation = innovation_prosperity_02 }
|
||||||
any_vassal = { hold_court_8080_mayor_trigger = yes }
|
any_vassal = { hold_court_8080_mayor_trigger = yes }
|
||||||
NOT = {
|
NOT = {
|
||||||
any_sub_realm_county = {
|
any_sub_realm_county = {
|
||||||
|
|
@ -16481,7 +16480,7 @@ hold_court.8080 = {
|
||||||
add = 1
|
add = 1
|
||||||
any_vassal = {
|
any_vassal = {
|
||||||
hold_court_8080_mayor_trigger = yes
|
hold_court_8080_mayor_trigger = yes
|
||||||
primary_title.title_province = { has_building_or_higher = common_tradeport_01 }
|
primary_title.title_province = { has_port_district = yes }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
|
|
@ -16512,7 +16511,7 @@ hold_court.8080 = {
|
||||||
ordered_vassal = {
|
ordered_vassal = {
|
||||||
limit = {
|
limit = {
|
||||||
hold_court_8080_mayor_trigger = yes
|
hold_court_8080_mayor_trigger = yes
|
||||||
primary_title.title_province = { has_building_or_higher = common_tradeport_01 }
|
primary_title.title_province = { has_port_district = yes }
|
||||||
}
|
}
|
||||||
alternative_limit = {
|
alternative_limit = {
|
||||||
hold_court_8080_mayor_trigger = yes
|
hold_court_8080_mayor_trigger = yes
|
||||||
|
|
@ -17382,10 +17381,7 @@ hold_court.8090 = {
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
OR = {
|
has_relation_lover = scope:vassal
|
||||||
has_relation_lover = scope:vassal
|
|
||||||
has_relation_soulmate = scope:vassal
|
|
||||||
}
|
|
||||||
OR = {
|
OR = {
|
||||||
scope:vassal.var:target_court_position = flag:bodyguard
|
scope:vassal.var:target_court_position = flag:bodyguard
|
||||||
scope:vassal.var:target_court_position = flag:akolouthos
|
scope:vassal.var:target_court_position = flag:akolouthos
|
||||||
|
|
@ -18628,7 +18624,7 @@ hold_court.8110 = {
|
||||||
any_held_title = {
|
any_held_title = {
|
||||||
title_tier = county
|
title_tier = county
|
||||||
county = {
|
county = {
|
||||||
county_control > 80
|
county_control > county_control_relative_80
|
||||||
any_county_province = { has_holding = yes }
|
any_county_province = { has_holding = yes }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -18647,7 +18643,7 @@ hold_court.8110 = {
|
||||||
title_tier = county
|
title_tier = county
|
||||||
limit = {
|
limit = {
|
||||||
county = {
|
county = {
|
||||||
county_control > 80
|
county_control > county_control_relative_80
|
||||||
any_county_province = { has_holding = yes }
|
any_county_province = { has_holding = yes }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -23187,7 +23183,7 @@ hold_court.8180 = {
|
||||||
}
|
}
|
||||||
order_by = {
|
order_by = {
|
||||||
value = 0
|
value = 0
|
||||||
subtract = development_level
|
subtract = prosperity_level
|
||||||
}
|
}
|
||||||
save_scope_as = vassal_title
|
save_scope_as = vassal_title
|
||||||
}
|
}
|
||||||
|
|
@ -26738,7 +26734,7 @@ hold_court.8280 = {
|
||||||
alternative_limit = { hold_court_8280_nomad_county_trigger = yes }
|
alternative_limit = { hold_court_8280_nomad_county_trigger = yes }
|
||||||
order_by = {
|
order_by = {
|
||||||
value = 0
|
value = 0
|
||||||
subtract = development_level
|
subtract = prosperity_level
|
||||||
}
|
}
|
||||||
save_scope_as = nomad_county
|
save_scope_as = nomad_county
|
||||||
culture = { save_scope_as = nomad_culture }
|
culture = { save_scope_as = nomad_culture }
|
||||||
|
|
|
||||||
|
|
@ -310,6 +310,20 @@ pilgrimage.0500 = {
|
||||||
}
|
}
|
||||||
cooldown = { years = 10 }
|
cooldown = { years = 10 }
|
||||||
trigger = {
|
trigger = {
|
||||||
|
is_available_healthy_adult = yes
|
||||||
|
#Forbidden from pilgrimages? No pilgrimage for you!
|
||||||
|
rite = { NOT = { rite_has_parameter = forbidden_from_pilgrimage } }
|
||||||
|
#This really should take care of most Hajj/Pilgrim-related trigger checks - if you don't have this trait, you haven't been pilgrimming before
|
||||||
|
NOR = {
|
||||||
|
has_trait = pilgrim
|
||||||
|
has_trait = hajjaj
|
||||||
|
}
|
||||||
|
#Only one modifier for _you_
|
||||||
|
NOR = {
|
||||||
|
has_character_modifier = ghost_pilgrimage_promised_modifier
|
||||||
|
has_character_modifier = hajj_promised_modifier
|
||||||
|
has_character_modifier = pilgrimage_promised_modifier
|
||||||
|
}
|
||||||
any_close_family_member = {
|
any_close_family_member = {
|
||||||
OR = {
|
OR = {
|
||||||
has_any_good_relationship_with_character_trigger = { CHARACTER = root }
|
has_any_good_relationship_with_character_trigger = { CHARACTER = root }
|
||||||
|
|
@ -337,9 +351,6 @@ pilgrimage.0500 = {
|
||||||
faith = root.faith
|
faith = root.faith
|
||||||
has_trait = pilgrim
|
has_trait = pilgrim
|
||||||
}
|
}
|
||||||
is_available_healthy_adult = yes
|
|
||||||
#Forbidden from pilgrimages? No pilgrimage for you!
|
|
||||||
rite = { NOT = { rite_has_parameter = forbidden_from_pilgrimage } }
|
|
||||||
faith = {
|
faith = {
|
||||||
any_holy_site_barony = {
|
any_holy_site_barony = {
|
||||||
pilgrimage_0500_valid_holy_site_trigger = yes
|
pilgrimage_0500_valid_holy_site_trigger = yes
|
||||||
|
|
@ -350,17 +361,6 @@ pilgrimage.0500 = {
|
||||||
this != scope:holy_site_check
|
this != scope:holy_site_check
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#This really should take care of most Hajj/Pilgrim-related trigger checks - if you don't have this trait, you haven't been pilgrimming before
|
|
||||||
NOR = {
|
|
||||||
has_trait = pilgrim
|
|
||||||
has_trait = hajjaj
|
|
||||||
}
|
|
||||||
#Only one modifier for _you_
|
|
||||||
NOR = {
|
|
||||||
has_character_modifier = ghost_pilgrimage_promised_modifier
|
|
||||||
has_character_modifier = hajj_promised_modifier
|
|
||||||
has_character_modifier = pilgrimage_promised_modifier
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
immediate = {
|
immediate = {
|
||||||
random_close_family_member = {
|
random_close_family_member = {
|
||||||
|
|
@ -1616,7 +1616,7 @@ pilgrimage.1120 = {
|
||||||
location = {
|
location = {
|
||||||
has_holding_type = church_holding
|
has_holding_type = church_holding
|
||||||
county = {
|
county = {
|
||||||
development_level >= 5
|
prosperity_level >= 5
|
||||||
faith = {
|
faith = {
|
||||||
religion = root.religion
|
religion = root.religion
|
||||||
faith_hostility_level = { target = root.faith value <= 1 }
|
faith_hostility_level = { target = root.faith value <= 1 }
|
||||||
|
|
@ -1642,12 +1642,12 @@ pilgrimage.1120 = {
|
||||||
add = 10
|
add = 10
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
location = { has_special_building = yes }
|
location = { has_special_district = yes }
|
||||||
add = 10
|
add = 10
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
add = {
|
add = {
|
||||||
value = location.county.development_level
|
value = location.county.prosperity_level
|
||||||
divide = 4
|
divide = 4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1860,7 +1860,7 @@ pilgrimage.1130 = {
|
||||||
base = 1
|
base = 1
|
||||||
modifier = {
|
modifier = {
|
||||||
add = -0.75
|
add = -0.75
|
||||||
location.county.development_level >= 10
|
location.county.prosperity_level >= 10
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2255,7 +2255,7 @@ pilgrimage.1140 = {
|
||||||
base = 1
|
base = 1
|
||||||
modifier = {
|
modifier = {
|
||||||
add = {
|
add = {
|
||||||
value = location.county.development_level
|
value = location.county.prosperity_level
|
||||||
divide = 4
|
divide = 4
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -5514,20 +5514,20 @@ pilgrimage.2070 = {
|
||||||
}
|
}
|
||||||
stress_and_fulfillment_impact = {
|
stress_and_fulfillment_impact = {
|
||||||
lifestyle_reveler = medium_stress_impact_loss
|
lifestyle_reveler = medium_stress_impact_loss
|
||||||
cynical = medium_stress_impact_loss
|
cynical = medium_stress_impact_gain
|
||||||
zealous = major_stress_impact_gain
|
zealous = medium_stress_impact_loss
|
||||||
}
|
}
|
||||||
|
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
base = 100
|
base = 100
|
||||||
modifier = {
|
modifier = {
|
||||||
has_trait = zealous
|
has_trait = cynical
|
||||||
factor = 0
|
factor = 0
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
OR = {
|
OR = {
|
||||||
has_trait = lifestyle_reveler
|
has_trait = lifestyle_reveler
|
||||||
has_trait = cynical
|
has_trait = zealous
|
||||||
}
|
}
|
||||||
factor = 2
|
factor = 2
|
||||||
}
|
}
|
||||||
|
|
@ -5539,7 +5539,7 @@ pilgrimage.2070 = {
|
||||||
name = pilgrimage.2070.b
|
name = pilgrimage.2070.b
|
||||||
current_travel_plan = {
|
current_travel_plan = {
|
||||||
delay_travel_plan = {
|
delay_travel_plan = {
|
||||||
days = 5
|
days = 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
progress_towards_friend_effect = {
|
progress_towards_friend_effect = {
|
||||||
|
|
@ -5548,22 +5548,19 @@ pilgrimage.2070 = {
|
||||||
OPINION = default_friend_opinion
|
OPINION = default_friend_opinion
|
||||||
}
|
}
|
||||||
stress_and_fulfillment_impact = {
|
stress_and_fulfillment_impact = {
|
||||||
zealous = medium_stress_impact_loss
|
zealous = medium_stress_impact_gain
|
||||||
shy = minor_stress_impact_gain
|
shy = minor_stress_impact_gain
|
||||||
lifestyle_reveler = medium_stress_impact_gain
|
lifestyle_reveler = medium_stress_impact_gain
|
||||||
cynical = major_stress_impact_gain
|
cynical = major_stress_impact_gain
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
base = 100
|
base = 100
|
||||||
modifier = {
|
|
||||||
has_trait = zealous
|
|
||||||
factor = 2
|
|
||||||
}
|
|
||||||
modifier = {
|
modifier = {
|
||||||
OR = {
|
OR = {
|
||||||
has_trait = shy
|
has_trait = shy
|
||||||
has_trait = lifestyle_reveler
|
has_trait = lifestyle_reveler
|
||||||
has_trait = cynical
|
has_trait = cynical
|
||||||
|
has_trait = zealous
|
||||||
}
|
}
|
||||||
factor = 0
|
factor = 0
|
||||||
}
|
}
|
||||||
|
|
@ -5577,19 +5574,17 @@ pilgrimage.2070 = {
|
||||||
add_travel_plan_modifier = { modifier = pilgrimage_make_haste_modifier }
|
add_travel_plan_modifier = { modifier = pilgrimage_make_haste_modifier }
|
||||||
}
|
}
|
||||||
stress_and_fulfillment_impact = {
|
stress_and_fulfillment_impact = {
|
||||||
lazy = minor_stress_impact_loss
|
zealous = minor_stress_impact_loss
|
||||||
zealous = medium_stress_impact_gain
|
|
||||||
lifestyle_reveler = medium_stress_impact_gain
|
lifestyle_reveler = medium_stress_impact_gain
|
||||||
}
|
}
|
||||||
ai_chance = {
|
ai_chance = {
|
||||||
base = 100
|
base = 100
|
||||||
modifier = {
|
modifier = {
|
||||||
has_trait = lazy
|
has_trait = zealous
|
||||||
factor = 2
|
factor = 2
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
OR = {
|
OR = {
|
||||||
has_trait = zealous
|
|
||||||
has_trait = lifestyle_reveler
|
has_trait = lifestyle_reveler
|
||||||
}
|
}
|
||||||
factor = 0
|
factor = 0
|
||||||
|
|
@ -13708,7 +13703,10 @@ scripted_effect pilgrimage_6810_friend_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else_if = { #if you can't be friends we make them endorse you
|
else_if = { #if you can't be friends we make them endorse you
|
||||||
limit = { exists = scope:my_bishop }
|
limit = { # The caller can be their own bishop
|
||||||
|
exists = scope:my_bishop
|
||||||
|
scope:my_bishop != this
|
||||||
|
}
|
||||||
scope:my_bishop = {
|
scope:my_bishop = {
|
||||||
add_opinion = {
|
add_opinion = {
|
||||||
target = prev #we use prev so we can use the effect with your heir too
|
target = prev #we use prev so we can use the effect with your heir too
|
||||||
|
|
@ -15115,7 +15113,7 @@ pilgrimage.7000 = {
|
||||||
option = {
|
option = {
|
||||||
name = pilgrimage.7000.b
|
name = pilgrimage.7000.b
|
||||||
trigger = { # If it's Pious or Hajj we lower your Gallowsbait
|
trigger = { # If it's Pious or Hajj we lower your Gallowsbait
|
||||||
has_ep3_dlc_trigger = yes
|
has_playable_adventurer_dlc_trigger = yes
|
||||||
has_trait = gallowsbait
|
has_trait = gallowsbait
|
||||||
has_any_gallowsbait_xp_trigger = yes
|
has_any_gallowsbait_xp_trigger = yes
|
||||||
OR = {
|
OR = {
|
||||||
|
|
@ -15133,7 +15131,7 @@ pilgrimage.7000 = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = { # If you are a devoted Pilgrim you lose it entirely
|
if = { # If you are a devoted Pilgrim, and there is not too much left to answer for, you lose it entirely
|
||||||
limit = {
|
limit = {
|
||||||
OR = {
|
OR = {
|
||||||
AND = {
|
AND = {
|
||||||
|
|
@ -15146,6 +15144,7 @@ pilgrimage.7000 = {
|
||||||
has_character_flag = perfect_pious_reward
|
has_character_flag = perfect_pious_reward
|
||||||
has_character_flag = high_pious_reward
|
has_character_flag = high_pious_reward
|
||||||
}
|
}
|
||||||
|
notorious_gallowsbait_xp_trigger = no
|
||||||
}
|
}
|
||||||
remove_trait = gallowsbait
|
remove_trait = gallowsbait
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue