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 = {
|
||||
slot = miscellaneous
|
||||
# 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 = {
|
||||
|
|
@ -463,3 +463,19 @@ crossbow = {
|
|||
slot = primary_armament
|
||||
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
|
||||
#humiliation_cb
|
||||
#retaliation_cb
|
||||
|
|
@ -4565,10 +4565,10 @@ mpo_great_war_of_defiance_cb = {
|
|||
mpo_war_of_defiance_notified_player_trigger = yes
|
||||
}
|
||||
}
|
||||
trigger_event = {
|
||||
id = mpo_greatest_of_khans.0103
|
||||
days = 2
|
||||
}
|
||||
# trigger_event = {
|
||||
# id = mpo_greatest_of_khans.0103
|
||||
# days = 2
|
||||
# }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -4702,10 +4702,10 @@ mpo_great_war_of_defiance_cb = {
|
|||
}
|
||||
}
|
||||
}
|
||||
trigger_event = {
|
||||
id = mpo_greatest_of_khans.0001
|
||||
days = 1
|
||||
}
|
||||
# trigger_event = {
|
||||
# id = mpo_greatest_of_khans.0001
|
||||
# days = 1
|
||||
# }
|
||||
}
|
||||
# Truce
|
||||
add_truce_attacker_defeat_effect = yes
|
||||
|
|
@ -5477,10 +5477,10 @@ mpo_gok_onslaught_cb = {
|
|||
is_ai = no
|
||||
top_liege = scope:attacker
|
||||
}
|
||||
trigger_event = {
|
||||
id = mpo_greatest_of_khans.0050
|
||||
days = 2
|
||||
}
|
||||
# trigger_event = {
|
||||
# id = mpo_greatest_of_khans.0050
|
||||
# days = 2
|
||||
# }
|
||||
}
|
||||
#Send taunt to unlanded losers
|
||||
every_in_list = {
|
||||
|
|
@ -5489,10 +5489,10 @@ mpo_gok_onslaught_cb = {
|
|||
is_ai = no
|
||||
NOT = { top_liege = scope:attacker }
|
||||
}
|
||||
trigger_event = {
|
||||
id = mpo_greatest_of_khans.0051
|
||||
days = 2
|
||||
}
|
||||
# trigger_event = {
|
||||
# id = mpo_greatest_of_khans.0051
|
||||
# days = 2
|
||||
# }
|
||||
}
|
||||
|
||||
# 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
|
||||
|
||||
potential = {
|
||||
NOT = { culture = culture:angler }
|
||||
NOT = { this = culture:angler }
|
||||
OR = {
|
||||
has_cultural_pillar = heritage_brythonic
|
||||
has_cultural_pillar = heritage_anglo_frisian
|
||||
|
|
@ -93,7 +93,7 @@ innovation_pioneers = {
|
|||
icon = @knighthood
|
||||
|
||||
potential = {
|
||||
culture = culture:metropolitain
|
||||
this = culture:metropolitain
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -131,9 +131,9 @@ innovation_gardians = {
|
|||
|
||||
potential = {
|
||||
OR = {
|
||||
culture = culture:provencal
|
||||
culture = culture:rottisch
|
||||
culture = culture:patoues
|
||||
this = culture:provencal
|
||||
this = culture:rottisch
|
||||
this = culture:patoues
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -154,9 +154,9 @@ innovation_voltigeurs = {
|
|||
|
||||
potential = {
|
||||
OR = {
|
||||
culture = culture:elsasse
|
||||
culture = culture:lorin
|
||||
culture = culture:gascon
|
||||
this = culture:elsasse
|
||||
this = culture:lorin
|
||||
this = culture:gascon
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -197,8 +197,8 @@ innovation_guides = {
|
|||
|
||||
potential = {
|
||||
OR = {
|
||||
culture = culture:belge
|
||||
culture = culture:letzebuerge
|
||||
this = culture:belge
|
||||
this = culture:letzebuerge
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -217,7 +217,7 @@ innovation_cacadores = {
|
|||
icon = @gunpowder
|
||||
|
||||
potential = {
|
||||
culture = culture:portuguese
|
||||
this = culture:portuguese
|
||||
}
|
||||
|
||||
unlock_maa = cacadores
|
||||
|
|
@ -236,11 +236,11 @@ innovation_almogavares = {
|
|||
|
||||
potential = {
|
||||
OR = {
|
||||
culture = culture:andorra
|
||||
culture = culture:aragonese
|
||||
culture = culture:asturleonese
|
||||
culture = culture:basque
|
||||
culture = culture:galician
|
||||
this = culture:andorra
|
||||
this = culture:aragonese
|
||||
this = culture:asturleonese
|
||||
this = culture:basque
|
||||
this = culture:galician
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -257,9 +257,9 @@ innovation_tercos = {
|
|||
|
||||
potential = {
|
||||
OR = {
|
||||
culture = culture:catalan
|
||||
culture = culture:balearic
|
||||
culture = culture:valencian
|
||||
this = culture:catalan
|
||||
this = culture:balearic
|
||||
this = culture:valencian
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -275,9 +275,9 @@ innovation_lanceros = {
|
|||
|
||||
potential = {
|
||||
OR = {
|
||||
culture = culture:castilian
|
||||
culture = culture:extremeno
|
||||
culture = culture:NEOW_andalusian
|
||||
this = culture:castilian
|
||||
this = culture:extremeno
|
||||
this = culture:NEOW_andalusian
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -293,14 +293,14 @@ innovation_betyars = {
|
|||
|
||||
potential = {
|
||||
OR = {
|
||||
culture = culture:hungarian
|
||||
culture = culture:szeklers
|
||||
culture = culture:translyvanian
|
||||
culture = culture:czech
|
||||
culture = culture:NEOW_moravian
|
||||
culture = culture:NEOW_slovak
|
||||
culture = culture:goral
|
||||
culture = culture:NEOW_carpathian
|
||||
this = culture:hungarian
|
||||
this = culture:szeklers
|
||||
this = culture:translyvanian
|
||||
this = culture:czech
|
||||
this = culture:NEOW_moravian
|
||||
this = culture:NEOW_slovak
|
||||
this = culture:goral
|
||||
this = culture:NEOW_carpathian
|
||||
}
|
||||
}
|
||||
unlock_maa = betyars
|
||||
|
|
@ -315,11 +315,11 @@ innovation_peacekeepers = {
|
|||
|
||||
potential = {
|
||||
OR = {
|
||||
culture = culture:wallachian
|
||||
culture = culture:banatian
|
||||
culture = culture:moldavian
|
||||
culture = culture:NEOW_gagauz
|
||||
culture = culture:NEOW_ucrainean
|
||||
this = culture:wallachian
|
||||
this = culture:banatian
|
||||
this = culture:moldavian
|
||||
this = culture:NEOW_gagauz
|
||||
this = culture:NEOW_ucrainean
|
||||
}
|
||||
}
|
||||
unlock_maa = peacekeepers
|
||||
|
|
@ -334,12 +334,12 @@ innovation_tachanka {
|
|||
|
||||
potential = {
|
||||
OR = {
|
||||
culture = culture:NEOW_kievan
|
||||
culture = culture:NEOW_cossack
|
||||
culture = culture:NEOW_crimean
|
||||
culture = culture:NEOW_nizhnevolzhan
|
||||
culture = culture:NEOW_povolzhan
|
||||
culture = culture:kalmyk
|
||||
this = culture:NEOW_kievan
|
||||
this = culture:NEOW_cossack
|
||||
this = culture:NEOW_crimean
|
||||
this = culture:NEOW_nizhnevolzhan
|
||||
this = culture:NEOW_povolzhan
|
||||
this = culture:kalmyk
|
||||
}
|
||||
}
|
||||
unlock_maa = tachanka
|
||||
|
|
@ -354,20 +354,20 @@ innovation_uhlan = {
|
|||
|
||||
potential = {
|
||||
OR = {
|
||||
culture = culture:NEOW_greater_polish
|
||||
culture = culture:NEOW_lesser_polish
|
||||
culture = culture:NEOW_mazovian_polish
|
||||
culture = culture:sorbian
|
||||
culture = culture:kashubian
|
||||
culture = culture:goral
|
||||
culture = culture:NEOW_silesian
|
||||
culture = culture:lipka
|
||||
culture = culture:NEOW_pribaltic
|
||||
culture = culture:NEOW_polessian
|
||||
culture = culture:NEOW_minskian
|
||||
culture = culture:NEOW_vohlynian
|
||||
culture = culture:lithuanian
|
||||
culture = culture:samogitian
|
||||
this = culture:NEOW_greater_polish
|
||||
this = culture:NEOW_lesser_polish
|
||||
this = culture:NEOW_mazovian_polish
|
||||
this = culture:sorbian
|
||||
this = culture:kashubian
|
||||
this = culture:goral
|
||||
this = culture:NEOW_silesian
|
||||
this = culture:lipka
|
||||
this = culture:NEOW_pribaltic
|
||||
this = culture:NEOW_polessian
|
||||
this = culture:NEOW_minskian
|
||||
this = culture:NEOW_vohlynian
|
||||
this = culture:lithuanian
|
||||
this = culture:samogitian
|
||||
}
|
||||
}
|
||||
unlock_maa = uhlan
|
||||
|
|
@ -382,13 +382,13 @@ innovation_bike_cav = {
|
|||
|
||||
potential = {
|
||||
OR = {
|
||||
culture = culture:latvian
|
||||
culture = culture:latgalian
|
||||
culture = culture:estonian
|
||||
culture = culture:livonian
|
||||
culture = culture:voroseto
|
||||
culture = culture:dansk
|
||||
culture = culture:slesvigsk
|
||||
this = culture:latvian
|
||||
this = culture:latgalian
|
||||
this = culture:estonian
|
||||
this = culture:livonian
|
||||
this = culture:voroseto
|
||||
this = culture:dansk
|
||||
this = culture:slesvigsk
|
||||
has_cultural_pillar = heritage_west_germanic
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,6 +39,9 @@ recruit_terrain_specialist_decision = {
|
|||
decision_group_type = courtier
|
||||
|
||||
is_shown = {
|
||||
is_landless_adventurer = no
|
||||
is_landless_merchant = no
|
||||
is_herder = no
|
||||
# You can hire at least one type of terrain expert
|
||||
OR = {
|
||||
culture ?= {
|
||||
|
|
|
|||
|
|
@ -21,9 +21,12 @@ create_cadet_branch_decision = {
|
|||
}
|
||||
|
||||
is_shown = {
|
||||
highest_held_title_tier > tier_barony
|
||||
government_allows = rulers_should_have_dynasty
|
||||
NOT = {
|
||||
highest_held_title_tier = tier_barony
|
||||
}
|
||||
is_house_head = no
|
||||
government_allows = rulers_should_have_dynasty
|
||||
is_lowborn = no
|
||||
NOR = {
|
||||
AND = {
|
||||
has_council_position = councillor_court_chaplain
|
||||
|
|
@ -34,7 +37,6 @@ create_cadet_branch_decision = {
|
|||
has_tgp_dlc_trigger = yes
|
||||
}
|
||||
}
|
||||
exists = house.house_head
|
||||
is_playable_character = yes
|
||||
}
|
||||
|
||||
|
|
@ -183,6 +185,17 @@ create_cadet_branch_decision = {
|
|||
}
|
||||
|
||||
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
|
||||
trigger_if = {
|
||||
limit = {
|
||||
|
|
@ -195,6 +208,7 @@ create_cadet_branch_decision = {
|
|||
}
|
||||
}
|
||||
}
|
||||
years_from_game_start >= 5
|
||||
# Childless rulers should not found houses
|
||||
any_child = {
|
||||
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
|
||||
|
||||
modifier = { # Dukes and above are more keen
|
||||
add = {
|
||||
value = primary_title.tier
|
||||
subtract = tier_county
|
||||
multiply = 20
|
||||
add = 70
|
||||
exists = primary_title
|
||||
primary_title.tier > tier_county
|
||||
}
|
||||
|
||||
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
|
||||
modifier = {
|
||||
add = {
|
||||
value = 0
|
||||
subtract = "opinion(house.house_head)"
|
||||
factor = 0
|
||||
OR = {
|
||||
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 = {
|
||||
add = 1000
|
||||
government_allows = noble_families
|
||||
liege = this
|
||||
trigger_if = {
|
||||
limit = { exists = house.house_head.liege }
|
||||
house.house_head.liege != root
|
||||
}
|
||||
top_liege = this
|
||||
this != house.house_head.top_liege
|
||||
}
|
||||
|
||||
modifier = {
|
||||
add = -250
|
||||
years_from_game_start < 5
|
||||
}
|
||||
|
||||
### TGP
|
||||
|
|
@ -278,7 +352,7 @@ create_cadet_branch_decision = {
|
|||
top_liege.primary_title = {
|
||||
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
|
||||
|
|
@ -298,7 +372,6 @@ create_cadet_branch_decision = {
|
|||
modifier = { # Ruler should not break family apart
|
||||
government_is_japanese_trigger = yes
|
||||
is_independent_ruler = yes
|
||||
house.house_head ?= { is_vassal_or_below_of = root }
|
||||
add = -1000
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,8 +31,9 @@ invite_knights_decision = {
|
|||
cooldown = { years = invite_knights_decision_cooldown_value }
|
||||
|
||||
is_shown = {
|
||||
max_number_of_knights > 0
|
||||
is_landless_adventurer = no
|
||||
is_landless_merchant = no
|
||||
max_number_of_knights > 0
|
||||
}
|
||||
|
||||
is_valid = {
|
||||
|
|
@ -139,8 +140,8 @@ invite_claimants_decision = {
|
|||
cooldown = { days = 3650 }
|
||||
|
||||
is_shown = {
|
||||
primary_title.tier > tier_county
|
||||
is_landed_or_landless_administrative = yes
|
||||
primary_title.tier > tier_county
|
||||
NOT = { government_has_flag = government_is_nomadic }
|
||||
}
|
||||
|
||||
|
|
@ -210,10 +211,10 @@ scrape_the_barrel_decision = {
|
|||
cooldown = { years = 2 }
|
||||
|
||||
is_shown = {
|
||||
has_royal_court = yes
|
||||
court_grandeur_current_level <= 4
|
||||
has_dlc_feature = royal_court
|
||||
is_landed_or_landless_administrative_or_theocratic = yes
|
||||
has_royal_court = yes
|
||||
has_dlc_feature = royal_court
|
||||
court_grandeur_current_level <= 4
|
||||
}
|
||||
|
||||
effect = {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@ create_holy_order_decision = {
|
|||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_major_religion.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
decision_group_type = realm
|
||||
sort_order = 30
|
||||
|
||||
ai_goal = yes
|
||||
|
||||
|
|
@ -31,6 +32,7 @@ create_holy_order_decision = {
|
|||
highest_held_title_tier >= tier_kingdom
|
||||
any_held_county = {
|
||||
any_in_de_jure_hierarchy = {
|
||||
holder = root
|
||||
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
|
||||
}
|
||||
}
|
||||
|
|
@ -65,6 +67,7 @@ create_holy_order_decision = {
|
|||
title_valid = {
|
||||
trigger_if = {
|
||||
limit = { exists = this }
|
||||
holder = scope:ruler
|
||||
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = scope:ruler }
|
||||
}
|
||||
trigger_else = {
|
||||
|
|
@ -102,6 +105,7 @@ create_holy_order_decision = {
|
|||
text = "has_two_castle_county"
|
||||
any_held_county = {
|
||||
any_in_de_jure_hierarchy = {
|
||||
holder = root
|
||||
barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root }
|
||||
}
|
||||
}
|
||||
|
|
@ -185,24 +189,6 @@ create_holy_order_decision = {
|
|||
limit = {
|
||||
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 = {
|
||||
template = holy_order_leader_character
|
||||
location = scope:barony.title_province
|
||||
|
|
@ -239,18 +225,11 @@ create_holy_order_decision = {
|
|||
ai_potential = {
|
||||
highest_held_title_tier >= tier_kingdom
|
||||
is_playable_character = yes
|
||||
OR = {
|
||||
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 }
|
||||
}
|
||||
}
|
||||
}
|
||||
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 } }
|
||||
is_available_adult = yes
|
||||
any_held_title = { title_tier = barony barony_is_valid_for_holy_order_lease_trigger = { CHARACTER = root } }
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
|
|
@ -304,6 +283,7 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
|
|||
|
||||
is_shown = {
|
||||
highest_held_title_tier > tier_barony
|
||||
is_playable_character = yes
|
||||
faith ?= {
|
||||
any_faith_holy_order = { #Your faith must have a Military Order
|
||||
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 = {
|
||||
|
|
@ -331,6 +305,15 @@ borrow_from_holy_order_decision = { #by Linnéa Thimrén
|
|||
NOT = {
|
||||
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 = {
|
||||
always = yes
|
||||
is_available = yes
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
|
|
@ -431,6 +414,30 @@ cancel_holy_order_lease_decision = {
|
|||
trigger_if = {
|
||||
limit = { exists = this }
|
||||
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 = {
|
||||
custom_description = {
|
||||
|
|
@ -537,11 +544,12 @@ cancel_holy_order_lease_decision = {
|
|||
age >= 12
|
||||
is_at_war = no
|
||||
highest_held_title_tier >= tier_county
|
||||
years_from_game_start >= 1
|
||||
any_sub_realm_barony = {
|
||||
is_under_holy_order_lease = yes
|
||||
county.holder = { is_ai = yes }
|
||||
barony_is_valid_for_holy_order_lease_cancellation_trigger = { ACTOR = root }
|
||||
}
|
||||
years_from_game_start >= 1
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
|
|
@ -597,7 +605,8 @@ create_holy_order_monastic_decision = {
|
|||
picture = {
|
||||
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
|
||||
|
||||
|
|
@ -713,6 +722,20 @@ create_holy_order_monastic_decision = {
|
|||
ai_potential = {
|
||||
highest_held_title_tier >= tier_duchy
|
||||
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 = {
|
||||
county_is_valid_for_monastic_lease_trigger = { CHARACTER = root }
|
||||
}
|
||||
|
|
@ -1135,6 +1158,42 @@ pam_monastic_order_new_movement_decision = {
|
|||
ai_potential = {
|
||||
highest_held_title_tier >= tier_duchy
|
||||
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 = {
|
||||
county_is_valid_for_monastic_lease_trigger = { CHARACTER = root }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -186,7 +186,14 @@ sale_of_titles_decision = {
|
|||
}
|
||||
|
||||
cost = {
|
||||
prestige = @sale_of_titles_prestige_cost
|
||||
prestige = {
|
||||
value = 250
|
||||
multiply = {
|
||||
value = root.highest_held_title_tier
|
||||
subtract = 1
|
||||
min = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
|
|
@ -526,6 +536,7 @@ local_arbitration_decision = {
|
|||
is_valid_showing_failures_only = {
|
||||
custom_tooltip = {
|
||||
text = inside_realm_trigger
|
||||
exists = root.location.county
|
||||
any_sub_realm_county = {
|
||||
this = root.location.county
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
###################
|
||||
|
||||
@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
|
||||
@vengeful_fabricate_hook_rivals_cooldown_time = 3665
|
||||
|
||||
|
|
@ -116,7 +116,7 @@ deceitful_progress_hostile_schemes_decision = {
|
|||
|
||||
#Diligent overwork
|
||||
### Develop Capital ###
|
||||
diligent_development_focus_decision = {
|
||||
diligent_prosperity_focus_decision = {
|
||||
ai_check_interval = 0
|
||||
|
||||
picture = {
|
||||
|
|
@ -140,11 +140,11 @@ diligent_development_focus_decision = {
|
|||
}
|
||||
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_landed = yes
|
||||
|
|
@ -167,7 +167,7 @@ diligent_development_focus_decision = {
|
|||
|
||||
send_interface_toast = {
|
||||
type = event_toast_effect_neutral
|
||||
title = msg_diligent_development_focus
|
||||
title = msg_diligent_prosperity_focus
|
||||
left_icon = root
|
||||
|
||||
if = {
|
||||
|
|
@ -178,7 +178,7 @@ diligent_development_focus_decision = {
|
|||
}
|
||||
|
||||
add_character_modifier = {
|
||||
modifier = diligent_development_focus
|
||||
modifier = diligent_prosperity_focus
|
||||
years = 10
|
||||
}
|
||||
}
|
||||
|
|
@ -244,6 +244,7 @@ impatient_rushing_all_schemes_decision = {
|
|||
|
||||
is_shown = {
|
||||
has_trait = impatient
|
||||
any_scheme = { count >= 1 }
|
||||
}
|
||||
|
||||
is_valid_showing_failures_only = {
|
||||
|
|
@ -260,7 +261,7 @@ impatient_rushing_all_schemes_decision = {
|
|||
effect = {
|
||||
if = {
|
||||
limit = {
|
||||
any_scheme = { }
|
||||
any_scheme = { count >= 1 }
|
||||
}
|
||||
send_interface_toast = {
|
||||
type = event_toast_effect_neutral
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
decision_solve_the_journals = {
|
||||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||
reference = "gfx/interface/illustrations/decisions/decision_erudition.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ clear_ground_for_legendary_building = {
|
|||
text = clear_ground_for_legendary_building_no_barony_tt
|
||||
any_held_title = {
|
||||
title_tier = barony
|
||||
title_province = { has_special_building_slot = no }
|
||||
title_province = { has_special_district_slot = no }
|
||||
is_capital_barony = yes
|
||||
holder = root
|
||||
is_leased_out = no
|
||||
|
|
@ -162,7 +162,7 @@ clear_ground_for_legendary_building = {
|
|||
}
|
||||
current_description = clear_ground_legendary_shrine_desc
|
||||
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
|
||||
ai_chance = { value = 10 }
|
||||
}
|
||||
|
|
@ -176,7 +176,7 @@ clear_ground_for_legendary_building = {
|
|||
}
|
||||
current_description = clear_ground_legendary_statue_desc
|
||||
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
|
||||
ai_chance = { value = 10 }
|
||||
}
|
||||
|
|
@ -190,7 +190,7 @@ clear_ground_for_legendary_building = {
|
|||
}
|
||||
current_description = clear_ground_legendary_palace_desc
|
||||
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
|
||||
ai_chance = { value = 10 }
|
||||
}
|
||||
|
|
@ -204,7 +204,7 @@ clear_ground_for_legendary_building = {
|
|||
}
|
||||
current_description = clear_ground_legendary_watchtower_desc
|
||||
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
|
||||
ai_chance = { value = 10 }
|
||||
}
|
||||
|
|
@ -218,7 +218,7 @@ clear_ground_for_legendary_building = {
|
|||
}
|
||||
current_description = clear_ground_legendary_hunting_lodge_desc
|
||||
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
|
||||
ai_chance = { value = 10 }
|
||||
}
|
||||
|
|
@ -297,7 +297,7 @@ pick_legendary_barony_decision = {
|
|||
title_valid = {
|
||||
trigger_if = {
|
||||
limit = { exists = this }
|
||||
title_province = { has_special_building_slot = no }
|
||||
title_province = { has_special_district_slot = no }
|
||||
is_capital_barony = yes
|
||||
holder = scope:ruler
|
||||
is_leased_out = no
|
||||
|
|
@ -317,27 +317,27 @@ pick_legendary_barony_decision = {
|
|||
trigger = root.var:clear_ground
|
||||
flag:legendary_shrine = {
|
||||
scope:barony.title_province ?= {
|
||||
add_special_building_slot = legendary_shrine
|
||||
add_special_district_slot = legendary_shrine_district
|
||||
}
|
||||
}
|
||||
flag:legendary_palace = {
|
||||
scope:barony.title_province ?= {
|
||||
add_special_building_slot = legendary_palace
|
||||
add_special_district_slot = legendary_palace_district
|
||||
}
|
||||
}
|
||||
flag:legendary_statue = {
|
||||
scope:barony.title_province ?= {
|
||||
add_special_building_slot = legendary_statue
|
||||
add_special_district_slot = legendary_statue_district
|
||||
}
|
||||
}
|
||||
flag:legendary_watchtower = {
|
||||
scope:barony.title_province ?= {
|
||||
add_special_building_slot = legendary_watchtower
|
||||
add_special_district_slot = legendary_watchtower_district
|
||||
}
|
||||
}
|
||||
flag:legendary_hunting_lodge = {
|
||||
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 = {
|
||||
has_variable = clear_ground
|
||||
is_playable_character = yes
|
||||
}
|
||||
ai_will_do = {
|
||||
|
|
@ -452,8 +453,8 @@ isolate_capital_decision = {
|
|||
}
|
||||
OR = {
|
||||
any_held_title = {
|
||||
has_province_with_epidemic = { intensity = any }
|
||||
title_tier = county
|
||||
has_province_with_epidemic = { intensity = any }
|
||||
}
|
||||
capital_county ?= {
|
||||
any_neighboring_county = {
|
||||
|
|
@ -566,7 +567,24 @@ isolate_capital_decision = {
|
|||
}
|
||||
|
||||
ai_potential = {
|
||||
is_landed = yes
|
||||
highest_held_title_tier >= tier_county
|
||||
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 = {
|
||||
|
|
@ -745,25 +763,33 @@ isolate_family_decision = {
|
|||
}
|
||||
|
||||
ai_potential = {
|
||||
NOT = { has_character_flag = ai_unisolate_cooldown }
|
||||
NOR = {
|
||||
has_character_flag = ai_unisolate_cooldown
|
||||
has_government = landless_adventurer_government
|
||||
}
|
||||
OR = {
|
||||
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
|
||||
any_held_title = {
|
||||
title_tier = county
|
||||
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 = {
|
||||
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 = {
|
||||
change_development_progress_with_overflow = 50
|
||||
change_prosperity_progress_with_overflow = 50
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -549,7 +549,7 @@ learning_oath_1_decision = {
|
|||
}
|
||||
trigger_else = {
|
||||
title_province = {
|
||||
has_special_building_slot = no
|
||||
has_special_district_slot = no
|
||||
is_county_capital = yes
|
||||
}
|
||||
holder = scope:ruler
|
||||
|
|
@ -754,7 +754,7 @@ learning_oath_1_decision = {
|
|||
}
|
||||
}
|
||||
scope:barony.title_province ?= {
|
||||
add_special_building = generic_university
|
||||
add_special_district = generic_university_district
|
||||
}
|
||||
}
|
||||
else = {
|
||||
|
|
|
|||
|
|
@ -175,6 +175,7 @@ convert_to_local_culture_decision = {
|
|||
|
||||
ai_potential = {
|
||||
is_playable_character = yes
|
||||
exists = capital_province
|
||||
culture != capital_province.culture
|
||||
is_landless_adventurer = no
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1387,20 +1387,21 @@ return_rome_decision = {
|
|||
}
|
||||
|
||||
ai_potential = {
|
||||
is_at_war = no
|
||||
top_liege = this
|
||||
religion = religion:catholic_religion
|
||||
ai_zeal > very_high_negative_ai_value
|
||||
title:c_roma = {
|
||||
holder = {
|
||||
is_ai = yes
|
||||
top_liege = root
|
||||
}
|
||||
}
|
||||
is_at_war = no
|
||||
ai_zeal > very_high_negative_ai_value
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
base = 100
|
||||
|
||||
modifier = { # If you fought the pope to get rome, don't immediately hand it back
|
||||
factor = 0
|
||||
faith.religious_head = {
|
||||
|
|
@ -2513,6 +2514,8 @@ petition_head_of_faith_decision = {
|
|||
cooldown = { years = 4 }
|
||||
|
||||
is_shown = {
|
||||
is_landless_adventurer = no
|
||||
is_landless_merchant = no
|
||||
is_ai = no
|
||||
has_pam_dlc_trigger = yes
|
||||
# Antipopes, their sponsors, and their realms use petition_antipope_decision instead
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ hold_court_decision = {
|
|||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_knight_kneeling.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
decision_group_type = realm
|
||||
is_invisible = yes
|
||||
|
||||
cost = {
|
||||
|
|
@ -339,10 +339,10 @@ petition_liege_decision = {
|
|||
}
|
||||
}
|
||||
trigger_if = { # Opinion
|
||||
limit = { scope:petition_liege_county_opinion = yes }
|
||||
limit = { scope:petition_liege_popular_opinion = yes }
|
||||
custom_tooltip = {
|
||||
text = petition_liege_county_opinion_tt
|
||||
any_held_title = { petition_liege_county_opinion_trigger = yes }
|
||||
text = petition_liege_popular_opinion_tt
|
||||
any_held_title = { petition_liege_popular_opinion_trigger = yes }
|
||||
}
|
||||
}
|
||||
trigger_if = { # Fortify
|
||||
|
|
@ -400,12 +400,12 @@ petition_liege_decision = {
|
|||
liege.gold > main_building_tier_1_cost
|
||||
}
|
||||
}
|
||||
trigger_if = { # Development
|
||||
limit = { scope:petition_liege_development = yes }
|
||||
trigger_if = { # Prosperity
|
||||
limit = { scope:petition_liege_prosperity = yes }
|
||||
custom_tooltip = {
|
||||
text = petition_liege_development_tt
|
||||
text = petition_liege_prosperity_tt
|
||||
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
|
||||
|
|
@ -724,22 +724,22 @@ petition_liege_decision = {
|
|||
ai_chance = { value = 0 } # Currently unused
|
||||
}
|
||||
item = { # Opinion
|
||||
value = petition_liege_county_opinion
|
||||
value = petition_liege_popular_opinion
|
||||
is_shown = {
|
||||
petition_liege_admin_valid_trigger = no
|
||||
}
|
||||
is_valid = {
|
||||
custom_tooltip = {
|
||||
text = petition_liege_county_opinion_tt
|
||||
any_held_title = { petition_liege_county_opinion_trigger = yes }
|
||||
text = petition_liege_popular_opinion_tt
|
||||
any_held_title = { petition_liege_popular_opinion_trigger = yes }
|
||||
}
|
||||
}
|
||||
current_description = petition_liege_county_opinion_desc
|
||||
localization = petition_liege_decision_option_county_opinion
|
||||
current_description = petition_liege_popular_opinion_desc
|
||||
localization = petition_liege_decision_option_popular_opinion
|
||||
icon = "gfx/interface/icons/message_feed/tier_up.dds"
|
||||
ai_chance = { value = 0 } # Currently unused
|
||||
}
|
||||
### Construction/Development
|
||||
### Construction/Prosperity
|
||||
item = { # Fortify
|
||||
value = petition_liege_fortify_border
|
||||
is_shown = {
|
||||
|
|
@ -810,18 +810,18 @@ petition_liege_decision = {
|
|||
icon = "gfx/interface/icons/message_feed/religious.dds"
|
||||
ai_chance = { value = 0 } # Currently unused
|
||||
}
|
||||
item = { # Development
|
||||
value = petition_liege_development
|
||||
item = { # Prosperity
|
||||
value = petition_liege_prosperity
|
||||
is_valid = {
|
||||
custom_tooltip = {
|
||||
text = petition_liege_development_tt
|
||||
text = petition_liege_prosperity_tt
|
||||
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
|
||||
}
|
||||
current_description = petition_liege_development_desc
|
||||
localization = petition_liege_decision_option_development
|
||||
current_description = petition_liege_prosperity_desc
|
||||
localization = petition_liege_decision_option_prosperity
|
||||
icon = "gfx/interface/icons/message_feed/guest.dds"
|
||||
ai_chance = { value = 0 } # Currently unused
|
||||
}
|
||||
|
|
@ -883,8 +883,8 @@ petition_liege_decision = {
|
|||
scope:petition_liege_county_convert = { # Convert County
|
||||
set_variable = { name = petition_type value = flag:county_convert }
|
||||
}
|
||||
scope:petition_liege_county_opinion = { # County Opinion
|
||||
set_variable = { name = petition_type value = flag:county_opinion }
|
||||
scope:petition_liege_popular_opinion = { # County Opinion
|
||||
set_variable = { name = petition_type value = flag:popular_opinion }
|
||||
}
|
||||
scope:petition_liege_fortify_border = { # 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
|
||||
set_variable = { name = petition_type value = flag:construct_temple }
|
||||
}
|
||||
scope:petition_liege_development = { # Development
|
||||
set_variable = { name = petition_type value = flag:development }
|
||||
scope:petition_liege_prosperity = { # Prosperity
|
||||
set_variable = { name = petition_type value = flag:prosperity }
|
||||
}
|
||||
scope:petition_liege_gold = { # 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"
|
||||
}
|
||||
decision_group_type = major
|
||||
sort_order = 20
|
||||
|
||||
cost = {
|
||||
prestige = standard_activity_base_cost
|
||||
|
|
@ -348,7 +349,23 @@ pay_homage_decision = {
|
|||
}
|
||||
|
||||
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
|
||||
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 = {
|
||||
|
|
|
|||
|
|
@ -366,7 +366,7 @@ petition_ceremonial_liege_decision = {
|
|||
title = {
|
||||
first_valid = {
|
||||
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
|
||||
|
|
@ -450,10 +450,10 @@ petition_ceremonial_liege_decision = {
|
|||
government_has_mechanic = administrative
|
||||
is_independent_ruler = no
|
||||
trigger_if = {
|
||||
limit = { exists = top_liege.primary_title.var:administrative_ui_special_title.holder }
|
||||
limit = { exists = ceremonial_liege }
|
||||
custom_tooltip = {
|
||||
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 }
|
||||
|
|
@ -494,7 +494,7 @@ petition_ceremonial_liege_decision = {
|
|||
}
|
||||
|
||||
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
|
||||
if = {
|
||||
limit = {
|
||||
|
|
|
|||
|
|
@ -7,52 +7,6 @@
|
|||
# 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
|
||||
|
|
@ -83,6 +37,7 @@ convert_to_feudalism_liege_converted_decision = {
|
|||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
sort_order = 100
|
||||
desc = convert_to_feudalism_liege_converted_decision_desc
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -134,12 +89,47 @@ convert_to_feudalism_liege_converted_decision = {
|
|||
}
|
||||
|
||||
cost = {
|
||||
prestige = 150
|
||||
prestige = 250
|
||||
}
|
||||
|
||||
effect = {
|
||||
trigger_event = major_decisions.0001
|
||||
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
|
||||
hidden_effect = {
|
||||
every_vassal = {
|
||||
|
|
@ -166,7 +156,8 @@ convert_clan_to_feudalism_through_liege_decision = {
|
|||
picture = {
|
||||
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
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -211,7 +202,7 @@ convert_clan_to_feudalism_through_liege_decision = {
|
|||
}
|
||||
|
||||
cost = {
|
||||
prestige = 150
|
||||
prestige = 250
|
||||
}
|
||||
|
||||
effect = {
|
||||
|
|
@ -233,7 +224,7 @@ convert_clan_to_feudalism_through_liege_decision = {
|
|||
}
|
||||
|
||||
ai_potential = {
|
||||
prestige >= 150
|
||||
prestige >= 250
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
|
|
@ -255,7 +246,8 @@ convert_feudalism_to_clan_through_liege_decision = {
|
|||
picture = {
|
||||
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
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -300,7 +292,7 @@ convert_feudalism_to_clan_through_liege_decision = {
|
|||
}
|
||||
|
||||
cost = {
|
||||
prestige = 150
|
||||
prestige = 250
|
||||
}
|
||||
|
||||
effect = {
|
||||
|
|
@ -322,7 +314,7 @@ convert_feudalism_to_clan_through_liege_decision = {
|
|||
}
|
||||
|
||||
ai_potential = {
|
||||
prestige >= 150
|
||||
prestige >= 250
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
|
|
@ -359,6 +351,7 @@ convert_whole_realm_to_feudalism_decision = {
|
|||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
sort_order = 100
|
||||
desc = convert_whole_realm_to_feudalism_decision_desc
|
||||
|
||||
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 = {
|
||||
has_realm_law = tribal_authority_3
|
||||
custom_description = {
|
||||
text = faith_is_reformed
|
||||
subject = root
|
||||
faith = { NOT = { has_doctrine_parameter = unreformed } }
|
||||
trigger_if = {
|
||||
limit = {
|
||||
faith = { 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
|
||||
capital_province.county = {
|
||||
development_level >= convert_to_feudalism_development_requirement
|
||||
capital_province = {
|
||||
province_size_level >= 2
|
||||
}
|
||||
custom_description = { #You need to have 70% of all (non-regional/unique) tribal innovations!
|
||||
text = has_all_tribal_innovations
|
||||
subject = root.culture
|
||||
culture = {
|
||||
calc_true_if = {
|
||||
amount >= 9
|
||||
amount >= 10
|
||||
has_innovation = innovation_motte
|
||||
has_innovation = innovation_catapult
|
||||
has_innovation = innovation_barracks
|
||||
has_innovation = innovation_mustering_grounds
|
||||
has_innovation = innovation_bannus
|
||||
has_innovation = innovation_quilted_armor
|
||||
has_innovation = innovation_pattern_welding
|
||||
has_innovation = innovation_gavelkind
|
||||
has_innovation = innovation_crop_rotation
|
||||
has_innovation = innovation_city_planning
|
||||
has_innovation = innovation_casus_belli
|
||||
has_innovation = innovation_plenary_assemblies
|
||||
has_innovation = innovation_ledger
|
||||
has_innovation = innovation_development_01
|
||||
has_innovation = innovation_prosperity_01
|
||||
has_innovation = innovation_currency_01
|
||||
}
|
||||
}
|
||||
|
|
@ -437,7 +462,7 @@ convert_whole_realm_to_feudalism_decision = {
|
|||
}
|
||||
|
||||
cost = {
|
||||
prestige = 200
|
||||
prestige = 500
|
||||
}
|
||||
|
||||
effect = {
|
||||
|
|
@ -476,7 +501,8 @@ convert_to_tribalism_decision = {
|
|||
picture = {
|
||||
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
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -540,25 +566,28 @@ convert_to_tribalism_decision = {
|
|||
# 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)#! ###
|
||||
convert_whole_realm_to_feudalism_west_african_pagan_decision = {
|
||||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
sort_order = 100
|
||||
desc = convert_whole_realm_to_feudalism_west_african_pagan_decision_desc
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 72
|
||||
duchy = 36
|
||||
kingdom = 36
|
||||
empire = 36
|
||||
hegemony = 36
|
||||
county = 0
|
||||
duchy = 0
|
||||
kingdom = 0
|
||||
empire = 0
|
||||
hegemony = 0
|
||||
}
|
||||
|
||||
is_shown = {
|
||||
always = no
|
||||
# Only tribals need formalise.
|
||||
government_has_flag = government_is_tribal
|
||||
# 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
|
||||
piety_level >= high_piety_level
|
||||
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 = {
|
||||
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 }
|
||||
}
|
||||
}
|
||||
|
|
@ -597,20 +626,21 @@ convert_whole_realm_to_feudalism_west_african_pagan_decision = {
|
|||
subject = root.culture
|
||||
culture = {
|
||||
calc_true_if = {
|
||||
amount >= 9
|
||||
amount >= 10
|
||||
has_innovation = innovation_motte
|
||||
has_innovation = innovation_catapult
|
||||
has_innovation = innovation_barracks
|
||||
has_innovation = innovation_mustering_grounds
|
||||
has_innovation = innovation_bannus
|
||||
has_innovation = innovation_quilted_armor
|
||||
has_innovation = innovation_pattern_welding
|
||||
has_innovation = innovation_gavelkind
|
||||
has_innovation = innovation_crop_rotation
|
||||
has_innovation = innovation_city_planning
|
||||
has_innovation = innovation_casus_belli
|
||||
has_innovation = innovation_plenary_assemblies
|
||||
has_innovation = innovation_ledger
|
||||
has_innovation = innovation_development_01
|
||||
has_innovation = innovation_prosperity_01
|
||||
has_innovation = innovation_currency_01
|
||||
}
|
||||
}
|
||||
|
|
@ -680,6 +710,7 @@ declare_bloodline_holy_decision = {
|
|||
reference = "gfx/interface/illustrations/decisions/decision_family_tree.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
sort_order = 20
|
||||
desc = declare_bloodline_holy_decision_desc
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -799,6 +830,7 @@ strengthen_bloodline_decision = {
|
|||
reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
sort_order = 20
|
||||
desc = strengthen_bloodline_decision_desc
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -913,6 +945,7 @@ dynasty_of_many_crowns_decision = {
|
|||
}
|
||||
desc = dynasty_of_many_crowns_decision_desc
|
||||
decision_group_type = major
|
||||
sort_order = 20
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 0
|
||||
|
|
@ -1012,7 +1045,8 @@ found_kingdom_decision = {
|
|||
picture = {
|
||||
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 = {
|
||||
barony = 0
|
||||
county = 0
|
||||
|
|
@ -1147,7 +1181,8 @@ found_empire_decision = {
|
|||
picture = {
|
||||
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 = {
|
||||
barony = 0
|
||||
county = 0
|
||||
|
|
@ -1171,6 +1206,7 @@ found_empire_decision = {
|
|||
has_game_rule = off_custom_kingdoms
|
||||
}
|
||||
is_landed_or_landless_administrative = yes
|
||||
NOT = { government_has_flag = government_is_republic }
|
||||
is_confederation_member = no
|
||||
}
|
||||
|
||||
|
|
@ -2244,36 +2280,61 @@ found_witch_coven_decision = {
|
|||
|
||||
### Repay Loan ###
|
||||
repay_loan_decision = {
|
||||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_spend_money.dds"
|
||||
}
|
||||
picture = { reference = "gfx/interface/illustrations/decisions/decision_spend_money.dds" }
|
||||
decision_group_type = major
|
||||
|
||||
desc = repay_loan_decision_decision_desc
|
||||
selection_tooltip = repay_loan_decision_decision_tooltip
|
||||
|
||||
ai_check_interval = 0
|
||||
ai_check_interval = 24
|
||||
|
||||
is_shown = {
|
||||
var:loan_holder ?= {
|
||||
any_in_list = {
|
||||
variable = owes_me_money
|
||||
this = root
|
||||
any_owned_story = {
|
||||
story_type = story_cycle_loan
|
||||
exists = var:amount_owed
|
||||
var:lender ?= {
|
||||
any_in_list = {
|
||||
variable = owes_me_money
|
||||
this = root
|
||||
}
|
||||
}
|
||||
}
|
||||
exists = var:loan_amount_owed
|
||||
}
|
||||
|
||||
is_valid_showing_failures_only = {
|
||||
is_available = yes
|
||||
gold >= var:loan_amount_owed
|
||||
is_available_quick = {
|
||||
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 = {
|
||||
var:loan_holder ?= { save_scope_as = recipient }
|
||||
pay_short_term_gold = {
|
||||
gold = var:loan_amount_owed
|
||||
target = scope:recipient
|
||||
scope:selected_item ?= { save_scope_as = recipient }
|
||||
ordered_owned_story = {
|
||||
limit = {
|
||||
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
|
||||
scope:recipient = {
|
||||
|
|
@ -2282,14 +2343,37 @@ repay_loan_decision = {
|
|||
target = root
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ai_potential = {
|
||||
always = no
|
||||
ai_select_item = {
|
||||
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 = {
|
||||
base = 0
|
||||
base = 25
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2500,7 +2584,8 @@ found_duchy_decision = {
|
|||
picture = {
|
||||
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 = {
|
||||
barony = 0
|
||||
county = 60
|
||||
|
|
@ -2606,6 +2691,7 @@ expand_duchy_decision = {
|
|||
reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds"
|
||||
}
|
||||
decision_group_type = realm
|
||||
sort_order = 20
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 0
|
||||
|
|
@ -2671,6 +2757,7 @@ expand_duchy_decision = {
|
|||
has_game_rule = on_custom_duchies
|
||||
}
|
||||
is_landed_or_landless_administrative = yes
|
||||
NOT = { government_has_flag = government_is_republic }
|
||||
trigger_if = {
|
||||
limit = {
|
||||
highest_held_title_tier = tier_duchy
|
||||
|
|
@ -2821,7 +2908,7 @@ expand_duchy_decision = {
|
|||
}
|
||||
scope:barony.duchy = {
|
||||
ordered_de_jure_county = {
|
||||
order_by = development_level
|
||||
order_by = prosperity_level
|
||||
limit = { NOT = { this = scope:barony.county } }
|
||||
save_scope_as = new_duchy_capital
|
||||
}
|
||||
|
|
@ -2880,6 +2967,7 @@ set_de_jure_capital_decision = {
|
|||
reference = "gfx/interface/illustrations/decisions/ep3_decision_city.dds"
|
||||
}
|
||||
decision_group_type = realm
|
||||
sort_order = 20
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 0
|
||||
|
|
@ -3147,7 +3235,6 @@ set_de_jure_capital_decision = {
|
|||
scope:current_de_jure_scope ?= {
|
||||
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 = {
|
||||
limit = {
|
||||
scope:set_duchy_capital = yes
|
||||
|
|
|
|||
|
|
@ -30,7 +30,10 @@ recruit_court_position_decision = {
|
|||
decision_group_type = courtier
|
||||
|
||||
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 = {
|
||||
|
|
@ -164,6 +167,7 @@ recruit_court_position_decision = {
|
|||
item = { # Charioteer
|
||||
value = hire_charioteer_decision
|
||||
is_shown = {
|
||||
is_landed_or_landless_administrative_or_theocratic = yes
|
||||
has_ep3_dlc_trigger = yes
|
||||
is_landless_adventurer = no
|
||||
culture = {
|
||||
|
|
@ -188,6 +192,7 @@ recruit_court_position_decision = {
|
|||
item = { # Bookmaker
|
||||
value = hire_bookmaker_decision
|
||||
is_shown = {
|
||||
is_landed_or_landless_administrative_or_theocratic = yes
|
||||
has_ep3_dlc_trigger = yes
|
||||
is_landless_adventurer = no
|
||||
culture = {
|
||||
|
|
@ -212,6 +217,7 @@ recruit_court_position_decision = {
|
|||
item = { # Eunuch
|
||||
value = hire_eunuch_decision
|
||||
is_shown = {
|
||||
is_landed_or_landless_administrative_or_theocratic = yes
|
||||
has_ep3_dlc_trigger = yes
|
||||
is_landless_adventurer = no
|
||||
culture = {
|
||||
|
|
@ -236,6 +242,7 @@ recruit_court_position_decision = {
|
|||
item = { # Gardener
|
||||
value = recruit_gardener_decision
|
||||
is_shown = {
|
||||
is_landed_or_landless_administrative_or_theocratic = yes
|
||||
culture = {
|
||||
has_cultural_parameter = can_recruit_gardeners
|
||||
}
|
||||
|
|
@ -2298,7 +2305,7 @@ stress_loss_inappetetic_decision = { #by Linnéa Thimrén
|
|||
### Write Thoughts Down ###
|
||||
stress_loss_journaller_decision = { #by Linnéa Thimrén
|
||||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
|
||||
reference = "gfx/interface/illustrations/decisions/decision_erudition.dds"
|
||||
}
|
||||
desc = stress_loss_journaller_decision_desc
|
||||
selection_tooltip = stress_loss_journaller_decision_tooltip
|
||||
|
|
@ -2356,7 +2363,7 @@ stress_loss_journaller_decision = { #by Linnéa Thimrén
|
|||
### Talk to Confidant ###
|
||||
stress_loss_confider_decision = { #by Linnéa Thimrén
|
||||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
|
||||
reference = "gfx/interface/illustrations/decisions/decision_blood.dds"
|
||||
}
|
||||
desc = stress_loss_confider_decision_desc
|
||||
selection_tooltip = stress_loss_confider_decision_tooltip
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ choose_designated_terrain_decision = {
|
|||
current_description = designated_terrain_forest_decision
|
||||
localization = designated_terrain_forest_decision
|
||||
icon = "gfx/interface/icons/terrain_types/forest.dds"
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -85,7 +85,7 @@ choose_designated_terrain_decision = {
|
|||
current_description = designated_terrain_mountain_decision
|
||||
localization = designated_terrain_mountain_decision
|
||||
icon = "gfx/interface/icons/terrain_types/mountains.dds"
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -107,7 +107,7 @@ choose_designated_terrain_decision = {
|
|||
current_description = designated_terrain_plains_decision
|
||||
localization = designated_terrain_plains_decision
|
||||
icon = "gfx/interface/icons/terrain_types/plains.dds"
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 5
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -129,7 +129,7 @@ choose_designated_terrain_decision = {
|
|||
current_description = designated_terrain_drylands_decision
|
||||
localization = designated_terrain_drylands_decision
|
||||
icon = "gfx/interface/icons/terrain_types/drylands.dds"
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -235,16 +235,16 @@ choose_master_terrain_decision = {
|
|||
decision_to_second_step_button = "CHOOSE_MASTER_TERRAIN_DECISION_NEXT_STEP_BUTTON"
|
||||
show_from_start = yes
|
||||
|
||||
### Woodlands
|
||||
### Woodlands
|
||||
item = { # Forest
|
||||
value = master_terrain_forest_terrain
|
||||
current_description = master_terrain_forest_decision
|
||||
localization = master_terrain_forest_decision
|
||||
icon = "gfx/interface/icons/terrain_types/forest.dds"
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
||||
}
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -259,10 +259,10 @@ choose_master_terrain_decision = {
|
|||
current_description = master_terrain_jungle_decision
|
||||
localization = master_terrain_jungle_decision
|
||||
icon = "gfx/interface/icons/terrain_types/jungle.dds"
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
||||
}
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -277,10 +277,10 @@ choose_master_terrain_decision = {
|
|||
current_description = master_terrain_taiga_decision
|
||||
localization = master_terrain_taiga_decision
|
||||
icon = "gfx/interface/icons/terrain_types/taiga.dds"
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
||||
}
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -295,10 +295,10 @@ choose_master_terrain_decision = {
|
|||
current_description = master_terrain_wetlands_decision
|
||||
localization = master_terrain_wetlands_decision
|
||||
icon = "gfx/interface/icons/terrain_types/wetlands.dds"
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = woodlands }
|
||||
}
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -315,10 +315,10 @@ choose_master_terrain_decision = {
|
|||
current_description = master_terrain_mountains_decision
|
||||
localization = master_terrain_mountains_decision
|
||||
icon = "gfx/interface/icons/terrain_types/mountains.dds"
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
||||
}
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -333,10 +333,10 @@ choose_master_terrain_decision = {
|
|||
current_description = master_terrain_hills_decision
|
||||
localization = master_terrain_hills_decision
|
||||
icon = "gfx/interface/icons/terrain_types/hills.dds"
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
||||
}
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -351,10 +351,10 @@ choose_master_terrain_decision = {
|
|||
current_description = master_terrain_desert_mountains_decision
|
||||
localization = master_terrain_desert_mountains_decision
|
||||
icon = "gfx/interface/icons/terrain_types/desert_mountains.dds"
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
||||
}
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -371,10 +371,10 @@ choose_master_terrain_decision = {
|
|||
current_description = master_terrain_plains_decision
|
||||
localization = master_terrain_plains_decision
|
||||
icon = "gfx/interface/icons/terrain_types/plains.dds"
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
||||
}
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -389,10 +389,10 @@ choose_master_terrain_decision = {
|
|||
current_description = master_terrain_steppe_decision
|
||||
localization = master_terrain_steppe_decision
|
||||
icon = "gfx/interface/icons/terrain_types/steppe.dds"
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
||||
}
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -407,10 +407,10 @@ choose_master_terrain_decision = {
|
|||
current_description = master_terrain_farmlands_decision
|
||||
localization = master_terrain_farmlands_decision
|
||||
icon = "gfx/interface/icons/terrain_types/farmlands.dds"
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
||||
}
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -425,10 +425,10 @@ choose_master_terrain_decision = {
|
|||
current_description = master_terrain_floodplains_decision
|
||||
localization = master_terrain_floodplains_decision
|
||||
icon = "gfx/interface/icons/terrain_types/floodplains.dds"
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = lowlands }
|
||||
}
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -446,10 +446,10 @@ choose_master_terrain_decision = {
|
|||
current_description = master_terrain_drylands_decision
|
||||
localization = master_terrain_drylands_decision
|
||||
icon = "gfx/interface/icons/terrain_types/drylands.dds"
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
|
||||
}
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -464,10 +464,10 @@ choose_master_terrain_decision = {
|
|||
current_description = master_terrain_desert_decision
|
||||
localization = master_terrain_desert_decision
|
||||
icon = "gfx/interface/icons/terrain_types/desert.dds"
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
|
||||
}
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -482,10 +482,10 @@ choose_master_terrain_decision = {
|
|||
current_description = master_terrain_oasis_decision
|
||||
localization = master_terrain_oasis_decision
|
||||
icon = "gfx/interface/icons/terrain_types/oasis.dds"
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
|
||||
is_shown = {
|
||||
landless_inspector_terrain_master_trigger = { TERRAIN = drylands }
|
||||
}
|
||||
ai_chance = {
|
||||
ai_chance = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -523,7 +523,7 @@ choose_master_terrain_decision = {
|
|||
landless_inspector_terrain_master_trigger = { TERRAIN = highlands }
|
||||
}
|
||||
switch = {
|
||||
trigger = yes
|
||||
trigger = yes
|
||||
scope:master_terrain_mountains_terrain = {
|
||||
landless_inspector_master_terrain_effect = { TERRAIN = mountains }
|
||||
}
|
||||
|
|
@ -913,7 +913,7 @@ enact_legacy_of_adventurer_decision = {
|
|||
has_ep3_dlc_trigger = yes
|
||||
is_landless_adventurer = yes
|
||||
NOT = { has_trait = gallowsbait }
|
||||
NOT = {
|
||||
NOT = {
|
||||
house = {
|
||||
has_house_modifier = legacy_adventurer_house_modifier
|
||||
}
|
||||
|
|
@ -947,7 +947,7 @@ enact_legacy_of_adventurer_decision = {
|
|||
save_temporary_scope_value_as = {
|
||||
name = contract_tally
|
||||
value = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
custom_tooltip = {
|
||||
text = has_enough_contracts_tt
|
||||
|
|
|
|||
|
|
@ -126,6 +126,10 @@ rites_of_passage_decision = {
|
|||
}
|
||||
|
||||
ai_potential = {
|
||||
OR = {
|
||||
government_has_flag = government_is_tribal
|
||||
government_has_flag = government_is_nomadic
|
||||
}
|
||||
OR = {
|
||||
any_child = {
|
||||
character_can_rites_of_passage_trigger = yes
|
||||
|
|
|
|||
|
|
@ -2564,7 +2564,12 @@ commission_icon_decision = {
|
|||
if = {
|
||||
# Conditional exists to avoid false-positives during tooltip generation, but 'local_artisan' should always exist on execution!
|
||||
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 = {
|
||||
add_trait = devoted
|
||||
}
|
||||
|
|
|
|||
|
|
@ -375,13 +375,13 @@ introduce_a_new_fashion_at_court_decision = {
|
|||
}
|
||||
|
||||
#############################################
|
||||
# Finance Culture Development #
|
||||
# Finance Culture Prosperity #
|
||||
# by Maxence Voleau #
|
||||
#############################################
|
||||
|
||||
### Promote Other Culture Development Decision ###
|
||||
promote_other_culture_development_decision = {
|
||||
title = promote_other_culture_development_decision_name
|
||||
### Promote Other Culture Prosperity Decision ###
|
||||
promote_other_culture_prosperity_decision = {
|
||||
title = promote_other_culture_prosperity_decision_name
|
||||
picture = {
|
||||
trigger = {
|
||||
culture = { has_graphical_east_asia_culture_group_trigger = yes }
|
||||
|
|
@ -397,8 +397,8 @@ promote_other_culture_development_decision = {
|
|||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_misc.dds"
|
||||
}
|
||||
desc = promote_other_culture_development_decision_desc
|
||||
selection_tooltip = promote_other_culture_development_decision_tooltip
|
||||
desc = promote_other_culture_prosperity_decision_desc
|
||||
selection_tooltip = promote_other_culture_prosperity_decision_tooltip
|
||||
cooldown = { years = 10 }
|
||||
sort_order = 90
|
||||
|
||||
|
|
@ -410,7 +410,7 @@ promote_other_culture_development_decision = {
|
|||
|
||||
is_valid_showing_failures_only = {
|
||||
custom_tooltip = {
|
||||
text = promote_other_culture_development_decision_not_acceptance_tt
|
||||
text = promote_other_culture_prosperity_decision_not_acceptance_tt
|
||||
any_sub_realm_county = {
|
||||
count > 0
|
||||
AND = {
|
||||
|
|
@ -471,11 +471,11 @@ promote_other_culture_development_decision = {
|
|||
every_in_list = {
|
||||
list = promoted_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 = {
|
||||
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
|
||||
|
|
@ -495,6 +495,7 @@ promote_other_culture_development_decision = {
|
|||
modifier = promote_culture_modifier
|
||||
years = 10
|
||||
}
|
||||
change_county_control = 5
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -221,6 +221,7 @@ estate_governor_patrols_decision = {
|
|||
modifier = ep3_estate_governor_patrols_modifier
|
||||
years = 15
|
||||
}
|
||||
change_county_control = 5
|
||||
}
|
||||
increase_governance_effect = { VALUE = 6 }
|
||||
}
|
||||
|
|
@ -370,7 +371,7 @@ estate_granary_decision = {
|
|||
limit = {
|
||||
domicile ?= {
|
||||
domicile_location.county = {
|
||||
county_control < 100
|
||||
county_control < county_control_baseline
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -380,21 +381,21 @@ estate_granary_decision = {
|
|||
limit = {
|
||||
domicile ?= {
|
||||
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 = {
|
||||
limit = {
|
||||
domicile ?= {
|
||||
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 = {
|
||||
limit = {
|
||||
|
|
@ -731,7 +732,8 @@ convert_to_administrative_decision = {
|
|||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/ep3_cerimonial_decision.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
decision_group_type = realm
|
||||
sort_order = 40
|
||||
title = {
|
||||
first_valid = {
|
||||
triggered_desc = {
|
||||
|
|
@ -783,6 +785,10 @@ convert_to_administrative_decision = {
|
|||
government_has_flag = government_is_feudal
|
||||
government_has_flag = government_is_clan
|
||||
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 = {
|
||||
has_character_flag = granted_title_government_blocker
|
||||
|
|
@ -851,6 +857,7 @@ convert_to_administrative_decision = {
|
|||
limit = {
|
||||
top_liege = this
|
||||
is_ai = no
|
||||
NOT = { government_has_flag = government_is_republic }
|
||||
}
|
||||
custom_tooltip = {
|
||||
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 = {
|
||||
limit = { is_ai = yes }
|
||||
calc_true_if = {
|
||||
|
|
@ -872,7 +885,7 @@ convert_to_administrative_decision = {
|
|||
culture = { has_cultural_pillar = ethos_egalitarian }
|
||||
culture = { has_cultural_tradition = tradition_legalistic }
|
||||
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 }
|
||||
dynasty = { has_dynasty_perk = erudition_legacy_5 }
|
||||
dynasty = { has_dynasty_perk = law_legacy_5 }
|
||||
|
|
@ -1354,7 +1367,8 @@ convert_to_feudalism_from_administrative_decision = {
|
|||
picture = {
|
||||
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
|
||||
|
||||
is_shown = {
|
||||
|
|
@ -1373,12 +1387,11 @@ convert_to_feudalism_from_administrative_decision = {
|
|||
is_valid = {
|
||||
is_landed = yes
|
||||
trigger_if = {
|
||||
limit = {
|
||||
is_independent_ruler = no
|
||||
}
|
||||
top_liege ?= {
|
||||
realm_law_authority_level_0 = yes
|
||||
}
|
||||
limit = { is_independent_ruler = no }
|
||||
custom_tooltip = {
|
||||
text = liege_has_realm_law_authority_0_tt
|
||||
top_liege ?= { realm_law_authority_level_0 = yes }
|
||||
}
|
||||
custom_tooltip = {
|
||||
text = governorship_is_on_the_border_tt
|
||||
any_sub_realm_county = {
|
||||
|
|
@ -1858,10 +1871,8 @@ change_imperial_aspirations_decision = {
|
|||
|
||||
is_valid = {
|
||||
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.
|
||||
limit = {
|
||||
top_liege = this
|
||||
}
|
||||
trigger_if = { # Unavailable if you are the top liege - Unless if you have either modifier, so you may remove it.
|
||||
limit = { top_liege = this }
|
||||
OR = {
|
||||
has_character_modifier = ep3_admin_renounce_throne_personal
|
||||
house ?= { has_house_modifier = ep3_admin_renounce_throne_house }
|
||||
|
|
|
|||
|
|
@ -112,12 +112,7 @@ become_landless_adventurer_decision = {
|
|||
# Relevant cultures/faiths
|
||||
trigger_if = {
|
||||
limit = {
|
||||
NAND = {
|
||||
is_ai = no
|
||||
government_has_mechanic = administrative
|
||||
top_liege = this
|
||||
is_landed = no
|
||||
}
|
||||
NOT = { government_has_flag = government_is_merchant }
|
||||
}
|
||||
OR = {
|
||||
culture = { has_cultural_parameter = unlock_voluntary_laampdom }
|
||||
|
|
@ -127,9 +122,27 @@ become_landless_adventurer_decision = {
|
|||
text = nomadic_government_tt
|
||||
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 = {
|
||||
|
|
@ -141,11 +154,16 @@ become_landless_adventurer_decision = {
|
|||
|
||||
effect = {
|
||||
save_scope_as = adventurer
|
||||
set_variable = {
|
||||
name = gdp_recently_became_adventurer_cooldown
|
||||
years = 5
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
player_heir ?= {
|
||||
this != root
|
||||
is_adult = yes
|
||||
is_ruler = no
|
||||
}
|
||||
}
|
||||
player_heir = {
|
||||
|
|
@ -185,12 +203,29 @@ become_landless_adventurer_decision = {
|
|||
}
|
||||
create_landless_adventurer_title_tooltip_effect = yes
|
||||
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 = {
|
||||
modifier = ep3_voluntary_laamp_character_modifier
|
||||
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 }
|
||||
# Debug tracking
|
||||
if = {
|
||||
|
|
@ -476,10 +511,10 @@ wipe_slate_decision = {
|
|||
|
||||
cost = {
|
||||
gold = {
|
||||
value = 100
|
||||
value = 50
|
||||
add = {
|
||||
value = highest_held_title_tier
|
||||
multiply = 25
|
||||
multiply = 12
|
||||
}
|
||||
}
|
||||
prestige = {
|
||||
|
|
@ -864,7 +899,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_europe
|
||||
geographical_region = world_steppe_west
|
||||
|
|
@ -883,7 +918,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_europe
|
||||
geographical_region = world_africa_north
|
||||
|
|
@ -902,7 +937,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_europe
|
||||
geographical_region = world_steppe_west
|
||||
|
|
@ -922,7 +957,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_europe
|
||||
geographical_region = world_steppe_west
|
||||
|
|
@ -943,7 +978,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_europe_south
|
||||
geographical_region = world_europe_west
|
||||
|
|
@ -965,7 +1000,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_europe_south
|
||||
geographical_region = world_africa
|
||||
|
|
@ -984,7 +1019,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_europe_south
|
||||
geographical_region = world_asia_minor
|
||||
|
|
@ -1006,7 +1041,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_europe_south
|
||||
geographical_region = world_asia_minor
|
||||
|
|
@ -1028,7 +1063,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_europe_south
|
||||
geographical_region = world_middle_east
|
||||
|
|
@ -1049,7 +1084,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_europe_south
|
||||
geographical_region = world_middle_east
|
||||
|
|
@ -1070,7 +1105,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_europe_south
|
||||
geographical_region = world_middle_east
|
||||
|
|
@ -1093,7 +1128,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_middle_east
|
||||
geographical_region = world_india
|
||||
|
|
@ -1114,7 +1149,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_middle_east
|
||||
geographical_region = world_india
|
||||
|
|
@ -1135,7 +1170,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_middle_east
|
||||
geographical_region = world_india
|
||||
|
|
@ -1156,7 +1191,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_india
|
||||
geographical_region = world_tibet
|
||||
|
|
@ -1175,7 +1210,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_india
|
||||
geographical_region = world_steppe
|
||||
|
|
@ -1194,7 +1229,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_india
|
||||
geographical_region = world_tibet
|
||||
|
|
@ -1214,7 +1249,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_india
|
||||
geographical_region = world_tibet
|
||||
|
|
@ -1237,7 +1272,7 @@ treasure_hunting_contract_decision = {
|
|||
is_valid = {
|
||||
custom_description = {
|
||||
text = treasure_hunting_contract_decision_limit
|
||||
capital_province = {
|
||||
capital_province ?= {
|
||||
OR = {
|
||||
geographical_region = world_india
|
||||
geographical_region = world_tibet
|
||||
|
|
@ -1816,7 +1851,10 @@ reject_inheritance_decision = {
|
|||
# They have children with you.
|
||||
any_child = {
|
||||
count >= 1
|
||||
NOT = { has_trait = disinherited }
|
||||
NOR = {
|
||||
has_trait = disinherited
|
||||
has_trait = adopted_no_inheritance
|
||||
}
|
||||
any_parent = { this = root }
|
||||
}
|
||||
# Or thought they might.
|
||||
|
|
@ -2171,6 +2209,12 @@ embrace_responsibilities_decision = {
|
|||
### Change Election Candidacy Status ###
|
||||
change_election_candidacy_status_decision = {
|
||||
# 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" }
|
||||
desc = {
|
||||
first_valid = {
|
||||
|
|
@ -2330,7 +2374,7 @@ bandit_king_decision = {
|
|||
}
|
||||
|
||||
cost = {
|
||||
gold = 500
|
||||
gold = 250
|
||||
prestige = 2000
|
||||
}
|
||||
|
||||
|
|
@ -2432,14 +2476,14 @@ seasoned_visitor_decision = {
|
|||
custom_tooltip = {
|
||||
text = seasoned_visitor_decision_not_enough_poi
|
||||
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 = {
|
||||
amount >= 2
|
||||
custom_tooltip = {
|
||||
text = seasoned_visitor_decision_not_enough_poi_advanced
|
||||
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
|
||||
has_trait_xp = {
|
||||
|
|
@ -2457,8 +2501,8 @@ seasoned_visitor_decision = {
|
|||
}
|
||||
|
||||
cost = {
|
||||
prestige = 1500
|
||||
gold = 500
|
||||
prestige = 500
|
||||
gold = 250
|
||||
}
|
||||
|
||||
effect = {
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ separatist_uprising_decision = {
|
|||
|
||||
cost = {
|
||||
prestige = 2000
|
||||
gold = 500
|
||||
gold = 250
|
||||
}
|
||||
|
||||
effect = {
|
||||
|
|
|
|||
|
|
@ -1094,6 +1094,8 @@ fp3_become_clan_government_decision = {
|
|||
}
|
||||
desc = fp3_become_clan_government_decision_desc
|
||||
selection_tooltip = fp3_become_clan_government_decision_tooltip
|
||||
decision_group_type = realm
|
||||
sort_order = 40
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
|
|
@ -1147,7 +1149,7 @@ fp3_become_clan_government_decision = {
|
|||
change_government = clan_government
|
||||
# Increase unity, uses this effect since both chars are not clan when script is evaluated
|
||||
house.house_head = {
|
||||
apply_clan_unity_interaction_effect = {
|
||||
apply_house_unity_interaction_effect = {
|
||||
CHARACTER = root
|
||||
TARGET = root.house.house_head
|
||||
DESC = clan_unity_adopt_clan.desc
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ raise_stele_decision = {
|
|||
|
||||
cooldown = { years = 10 }
|
||||
|
||||
sort_order = 80
|
||||
sort_order = 10
|
||||
|
||||
is_shown = {
|
||||
# Landed characters only: nobody likes a mercenary.
|
||||
|
|
|
|||
|
|
@ -82,14 +82,23 @@ mpo_desperate_stance_decision = {
|
|||
sort_order = 100
|
||||
|
||||
is_shown = {
|
||||
has_mpo_dlc_trigger = yes
|
||||
government_has_flag = government_is_nomadic
|
||||
exists = situation:the_great_steppe
|
||||
any_character_situation = {
|
||||
any_participant_group = {
|
||||
participant_group_type = nomad_rulers_capital
|
||||
}
|
||||
}
|
||||
exists = situation:the_great_steppe
|
||||
has_mpo_dlc_trigger = yes
|
||||
any_character_situation = {
|
||||
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 = {
|
||||
|
|
@ -146,13 +155,13 @@ adopt_nomadic_ways_decision = {
|
|||
picture = {
|
||||
reference = "gfx/interface/illustrations/event_story/mpo_steppe_region.dds"
|
||||
}
|
||||
decision_group_type = adventurer
|
||||
decision_group_type = realm
|
||||
sort_order = 100
|
||||
|
||||
is_shown = {
|
||||
is_landless_adventurer = yes
|
||||
has_ep3_dlc_trigger = yes
|
||||
has_mpo_dlc_trigger = yes
|
||||
has_playable_adventurer_dlc_trigger = yes
|
||||
is_landless_adventurer = yes
|
||||
}
|
||||
|
||||
is_valid = {
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,136 +1,137 @@
|
|||
##Pax Mongolica
|
||||
### Peace of the Great Khan ###
|
||||
mpo_pax_mongolica_decision = {
|
||||
picture = {
|
||||
reference = "gfx/interface/illustrations/event_scenes/mpo_city_steppe.dds"
|
||||
}
|
||||
decision_group_type = nomad_major
|
||||
sort_order = 120
|
||||
# NEOW 2555: historical Pax Mongolica decision disabled.
|
||||
###Pax Mongolica
|
||||
#### Peace of the Great Khan ###
|
||||
#mpo_pax_mongolica_decision = {
|
||||
# picture = {
|
||||
# reference = "gfx/interface/illustrations/event_scenes/mpo_city_steppe.dds"
|
||||
# }
|
||||
# decision_group_type = nomad_major
|
||||
# sort_order = 120
|
||||
|
||||
is_shown = {
|
||||
government_has_flag = government_is_nomadic
|
||||
any_character_situation = {
|
||||
this = situation:the_great_steppe
|
||||
}
|
||||
NOT = { has_variable = pax_mongolica_var }
|
||||
exists = situation:the_great_steppe
|
||||
}
|
||||
# is_shown = {
|
||||
# government_has_flag = government_is_nomadic
|
||||
# any_character_situation = {
|
||||
# this = situation:the_great_steppe
|
||||
# }
|
||||
# NOT = { has_variable = pax_mongolica_var }
|
||||
# exists = situation:the_great_steppe
|
||||
# }
|
||||
|
||||
is_valid = {
|
||||
dynasty ?= { has_dynasty_perk = mpo_nomad_legacy_5 }
|
||||
OR = {
|
||||
has_realm_law = nomadic_authority_4
|
||||
has_realm_law = nomadic_authority_5
|
||||
}
|
||||
}
|
||||
# is_valid = {
|
||||
# dynasty ?= { has_dynasty_perk = mpo_nomad_legacy_5 }
|
||||
# OR = {
|
||||
# has_realm_law = nomadic_authority_4
|
||||
# has_realm_law = nomadic_authority_5
|
||||
# }
|
||||
# }
|
||||
|
||||
is_valid_showing_failures_only = {
|
||||
is_available_adult = yes
|
||||
}
|
||||
# is_valid_showing_failures_only = {
|
||||
# is_available_adult = yes
|
||||
# }
|
||||
|
||||
cost = {
|
||||
gold = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
has_treasury = no
|
||||
}
|
||||
add = monumental_gold_value
|
||||
}
|
||||
}
|
||||
treasury = {
|
||||
value = 0
|
||||
if = {
|
||||
limit = {
|
||||
has_treasury = yes
|
||||
}
|
||||
add = monumental_gold_value
|
||||
}
|
||||
}
|
||||
prestige = {
|
||||
value = massive_prestige_value
|
||||
}
|
||||
}
|
||||
# cost = {
|
||||
# gold = {
|
||||
# value = 0
|
||||
# if = {
|
||||
# limit = {
|
||||
# has_treasury = no
|
||||
# }
|
||||
# add = monumental_gold_value
|
||||
# }
|
||||
# }
|
||||
# treasury = {
|
||||
# value = 0
|
||||
# if = {
|
||||
# limit = {
|
||||
# has_treasury = yes
|
||||
# }
|
||||
# add = monumental_gold_value
|
||||
# }
|
||||
# }
|
||||
# prestige = {
|
||||
# value = massive_prestige_value
|
||||
# }
|
||||
# }
|
||||
|
||||
|
||||
effect = {
|
||||
set_variable = pax_mongolica_var
|
||||
# Rewards given out in the event
|
||||
show_as_tooltip = {
|
||||
add_character_modifier = {
|
||||
modifier = pax_mongolica_ruler_modifier # Forever
|
||||
}
|
||||
custom_tooltip = pax_mongolica_every_county_in_steppe_tt
|
||||
every_realm_county = {
|
||||
limit = {
|
||||
is_landless_type_title = no
|
||||
any_county_situation = { this = situation:the_great_steppe }
|
||||
holder.dynasty = root.dynasty
|
||||
}
|
||||
random_county_province = {
|
||||
limit = { has_holding = no }
|
||||
set_holding_type = city_holding
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
NOT = {
|
||||
culture = { has_innovation = innovation_city_planning }
|
||||
}
|
||||
}
|
||||
culture = { add_innovation = innovation_city_planning }
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
NOT = {
|
||||
culture = { has_innovation = innovation_development_01 }
|
||||
}
|
||||
}
|
||||
culture = { add_innovation = innovation_development_01 }
|
||||
}
|
||||
else = {
|
||||
culture = { add_random_innovation = culture_group_civic }
|
||||
}
|
||||
}
|
||||
trigger_event = mpo_decisions_events.0400
|
||||
}
|
||||
# effect = {
|
||||
# set_variable = pax_mongolica_var
|
||||
# # Rewards given out in the event
|
||||
# show_as_tooltip = {
|
||||
# add_character_modifier = {
|
||||
# modifier = pax_mongolica_ruler_modifier # Forever
|
||||
# }
|
||||
# custom_tooltip = pax_mongolica_every_county_in_steppe_tt
|
||||
# every_realm_county = {
|
||||
# limit = {
|
||||
# is_landless_type_title = no
|
||||
# any_county_situation = { this = situation:the_great_steppe }
|
||||
# holder.dynasty = root.dynasty
|
||||
# }
|
||||
# random_county_province = {
|
||||
# limit = { has_holding = no }
|
||||
# set_holding_type = city_holding
|
||||
# }
|
||||
# }
|
||||
# if = {
|
||||
# limit = {
|
||||
# NOT = {
|
||||
# culture = { has_innovation = innovation_city_planning }
|
||||
# }
|
||||
# }
|
||||
# culture = { add_innovation = innovation_city_planning }
|
||||
# }
|
||||
# else_if = {
|
||||
# limit = {
|
||||
# NOT = {
|
||||
# culture = { has_innovation = innovation_development_01 }
|
||||
# }
|
||||
# }
|
||||
# culture = { add_innovation = innovation_development_01 }
|
||||
# }
|
||||
# else = {
|
||||
# culture = { add_random_innovation = culture_group_civic }
|
||||
# }
|
||||
# }
|
||||
# trigger_event = mpo_decisions_events.0400
|
||||
# }
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 0
|
||||
duchy = 0
|
||||
kingdom = 0
|
||||
empire = 24
|
||||
hegemony = 24
|
||||
}
|
||||
# ai_check_interval_by_tier = {
|
||||
# barony = 0
|
||||
# county = 0
|
||||
# duchy = 0
|
||||
# kingdom = 0
|
||||
# empire = 24
|
||||
# hegemony = 24
|
||||
# }
|
||||
|
||||
ai_potential = {
|
||||
prestige >= massive_prestige_value
|
||||
}
|
||||
# ai_potential = {
|
||||
# prestige >= massive_prestige_value
|
||||
# }
|
||||
|
||||
ai_will_do = {
|
||||
base = 30
|
||||
modifier = {
|
||||
add = -100
|
||||
NOT = {
|
||||
prestige >= {
|
||||
value = monumental_gold_value
|
||||
multiply = 2
|
||||
}
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
add = -100
|
||||
NOT = {
|
||||
prestige >= {
|
||||
value = massive_prestige_value
|
||||
multiply = 2
|
||||
}
|
||||
}
|
||||
}
|
||||
modifier = {
|
||||
add = 50
|
||||
highest_held_title_tier >= tier_empire
|
||||
}
|
||||
}
|
||||
}
|
||||
# ai_will_do = {
|
||||
# base = 30
|
||||
# modifier = {
|
||||
# add = -100
|
||||
# NOT = {
|
||||
# prestige >= {
|
||||
# value = monumental_gold_value
|
||||
# multiply = 2
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# modifier = {
|
||||
# add = -100
|
||||
# NOT = {
|
||||
# prestige >= {
|
||||
# value = massive_prestige_value
|
||||
# multiply = 2
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# modifier = {
|
||||
# add = 50
|
||||
# highest_held_title_tier >= tier_empire
|
||||
# }
|
||||
# }
|
||||
#}
|
||||
|
|
|
|||
|
|
@ -606,6 +606,25 @@ pam_permit_tenet_bull_decision = {
|
|||
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
|
||||
limit = {
|
||||
any_character_tenet = {
|
||||
|
|
@ -649,6 +668,10 @@ pam_permit_tenet_bull_decision = {
|
|||
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
|
||||
}
|
||||
|
|
@ -674,6 +697,10 @@ pam_permit_tenet_bull_decision = {
|
|||
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
|
||||
}
|
||||
|
|
@ -710,6 +737,10 @@ pam_permit_tenet_bull_decision = {
|
|||
pam_tenet_can_be_permitted_no_actor_trigger = yes
|
||||
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
|
||||
}
|
||||
}
|
||||
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 = {
|
||||
random_undesired_tenet = {
|
||||
limit = {
|
||||
|
|
@ -916,6 +972,14 @@ pam_prohibit_tenet_bull_decision = {
|
|||
}
|
||||
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 = {
|
||||
known_tenets = yes
|
||||
only_negative = yes
|
||||
|
|
|
|||
|
|
@ -102,6 +102,10 @@ declare_antipope_decision = {
|
|||
limit = { pam_antipope_declaration_discounted_trigger = yes }
|
||||
multiply = 0.67
|
||||
}
|
||||
if = {
|
||||
limit = { gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes }
|
||||
multiply = 0.5
|
||||
}
|
||||
}
|
||||
}
|
||||
treasury = {
|
||||
|
|
@ -119,6 +123,10 @@ declare_antipope_decision = {
|
|||
limit = { pam_antipope_declaration_discounted_trigger = yes }
|
||||
multiply = 0.67
|
||||
}
|
||||
if = {
|
||||
limit = { gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes }
|
||||
multiply = 0.5
|
||||
}
|
||||
}
|
||||
}
|
||||
piety = {
|
||||
|
|
@ -131,6 +139,10 @@ declare_antipope_decision = {
|
|||
limit = { pam_antipope_declaration_discounted_trigger = yes }
|
||||
multiply = 0.67
|
||||
}
|
||||
if = {
|
||||
limit = { gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes }
|
||||
multiply = 0
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_variable = antipope_squabble_unlock
|
||||
|
|
@ -226,7 +238,10 @@ declare_antipope_decision = {
|
|||
|
||||
ai_potential = {
|
||||
is_adult = yes
|
||||
ai_zeal >= 0
|
||||
OR = {
|
||||
ai_zeal >= 0
|
||||
gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes
|
||||
}
|
||||
any_vassal_or_below = {
|
||||
pam_valid_antipope_clergy_vassal_trigger = { LIEGE = root }
|
||||
}
|
||||
|
|
@ -260,23 +275,22 @@ declare_antipope_decision = {
|
|||
step = 5
|
||||
max = 25
|
||||
}
|
||||
modifier = {
|
||||
add = 25
|
||||
gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = yes
|
||||
}
|
||||
modifier = {
|
||||
factor = 2
|
||||
OR = {
|
||||
has_relation_rival = faith.religious_head
|
||||
has_relation_nemesis = faith.religious_head
|
||||
}
|
||||
has_relation_rival = faith.religious_head
|
||||
}
|
||||
modifier = { # AI shouldn't usually do this if they're main rite
|
||||
factor = 0.15
|
||||
rite = faith.main_rite
|
||||
gg_excommunicated_ghibelline_leader_in_dictatus_papae_trigger = no
|
||||
}
|
||||
modifier = {
|
||||
factor = 0
|
||||
OR = {
|
||||
has_relation_friend = faith.religious_head
|
||||
has_relation_best_friend = faith.religious_head
|
||||
}
|
||||
has_relation_friend = faith.religious_head
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -558,17 +572,11 @@ declare_yourself_antipope_decision = {
|
|||
}
|
||||
modifier = {
|
||||
factor = 2
|
||||
OR = {
|
||||
has_relation_rival = faith.religious_head
|
||||
has_relation_nemesis = faith.religious_head
|
||||
}
|
||||
has_relation_rival = faith.religious_head
|
||||
}
|
||||
modifier = {
|
||||
factor = 0
|
||||
OR = {
|
||||
has_relation_friend = faith.religious_head
|
||||
has_relation_best_friend = faith.religious_head
|
||||
}
|
||||
has_relation_friend = faith.religious_head
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,6 +55,8 @@ pam_decision_confession = {
|
|||
sort_order = 110
|
||||
|
||||
is_shown = {
|
||||
is_landless_adventurer = no
|
||||
is_landless_merchant = no
|
||||
has_spiritual_fulfillment_type = christian_fulfillment
|
||||
root.rite ?= {
|
||||
has_at_least_tenet_status = {
|
||||
|
|
@ -135,17 +137,18 @@ pam_decision_act_of_devotion = {
|
|||
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 60
|
||||
duchy = 60
|
||||
kingdom = 48
|
||||
county = 120
|
||||
duchy = 120
|
||||
kingdom = 60
|
||||
empire = 48
|
||||
hegemony = 24
|
||||
hegemony = 12
|
||||
}
|
||||
|
||||
sort_order = 80
|
||||
|
||||
is_shown = {
|
||||
has_spiritual_fulfillment_type = christian_fulfillment
|
||||
has_fulfillment_parameter = sp_act_of_devotion_decision
|
||||
has_pam_dlc_trigger = yes
|
||||
is_landless_adventurer = no
|
||||
}
|
||||
|
|
@ -228,10 +231,10 @@ pam_mentor_sp_decision = {
|
|||
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 24
|
||||
duchy = 24
|
||||
kingdom = 12
|
||||
empire = 12
|
||||
county = 120
|
||||
duchy = 120
|
||||
kingdom = 60
|
||||
empire = 24
|
||||
hegemony = 12
|
||||
}
|
||||
|
||||
|
|
@ -239,6 +242,7 @@ pam_mentor_sp_decision = {
|
|||
|
||||
is_shown = {
|
||||
has_spiritual_fulfillment_type = christian_fulfillment
|
||||
has_fulfillment_parameter = sp_mentor_in_sp
|
||||
has_pam_dlc_trigger = yes
|
||||
}
|
||||
|
||||
|
|
@ -362,8 +366,8 @@ pam_establish_theocratic_dynasty_decision = {
|
|||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 0
|
||||
duchy = 48
|
||||
kingdom = 24
|
||||
duchy = 120
|
||||
kingdom = 60
|
||||
empire = 12
|
||||
hegemony = 12
|
||||
}
|
||||
|
|
@ -429,6 +433,7 @@ pam_convert_to_theocracy_decision = {
|
|||
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
|
||||
}
|
||||
decision_group_type = realm
|
||||
sort_order = 40
|
||||
desc = pam_convert_to_theocracy_decision_desc
|
||||
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"
|
||||
}
|
||||
decision_group_type = realm
|
||||
sort_order = 40
|
||||
desc = pam_convert_theocracy_to_feudal_decision_desc
|
||||
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_tradition = tradition_legalistic }
|
||||
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 = erudition_legacy_5 }
|
||||
NOT = { has_trait = zealous }
|
||||
|
|
@ -792,9 +798,7 @@ pam_kowtow_to_pope_decision = {
|
|||
|
||||
is_shown = {
|
||||
exists = top_participant_group:the_christian_church
|
||||
situation:the_christian_church ?= {
|
||||
situation_current_phase = investiture_crisis
|
||||
}
|
||||
situation:the_christian_church ?= { situation_current_phase = investiture_crisis }
|
||||
government_is_religious_trigger = no
|
||||
is_christian_trigger = yes
|
||||
has_pam_dlc_trigger = yes
|
||||
|
|
@ -836,6 +840,20 @@ pam_kowtow_to_pope_decision = {
|
|||
modifier = grateful_opinion
|
||||
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 = {
|
||||
type = event_toast_effect_good
|
||||
|
|
@ -848,6 +866,8 @@ pam_kowtow_to_pope_decision = {
|
|||
}
|
||||
|
||||
ai_potential = {
|
||||
situation:the_christian_church ?= { situation_current_phase = investiture_crisis }
|
||||
religion ?= religion:christianity_religion
|
||||
has_pam_dlc_trigger = yes
|
||||
government_is_religious_trigger = no
|
||||
}
|
||||
|
|
@ -883,6 +903,7 @@ pam_determine_patron_saint_decision = {
|
|||
# Christian specific
|
||||
is_christian_trigger = yes
|
||||
NOT = { has_variable = pam_chose_patron_saint_var }
|
||||
has_personal_tenet_flag = tenet_dulia_can_select_patron_saint
|
||||
has_pam_dlc_trigger = yes
|
||||
}
|
||||
|
||||
|
|
@ -998,8 +1019,8 @@ pam_determine_patron_saint_decision = {
|
|||
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 96
|
||||
duchy = 96
|
||||
county = 120
|
||||
duchy = 120
|
||||
kingdom = 96
|
||||
empire = 96
|
||||
hegemony = 96
|
||||
|
|
@ -1216,15 +1237,15 @@ create_hof_decision = {
|
|||
}
|
||||
|
||||
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
|
||||
# Defer to a same-faith liege; they should be the one establishing the HoF
|
||||
OR = {
|
||||
top_liege = this
|
||||
NOT = {
|
||||
any_liege_or_above = {
|
||||
faith = root.faith
|
||||
}
|
||||
}
|
||||
NOT = { 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
|
||||
pam_levy_the_tithes_decision = {
|
||||
picture = {
|
||||
|
|
@ -1260,9 +1612,14 @@ pam_levy_the_tithes_decision = {
|
|||
}
|
||||
|
||||
is_shown = {
|
||||
is_landless_adventurer = no
|
||||
is_landless_merchant = no
|
||||
any_character_situation = { # You are part of the Christian Situation
|
||||
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
|
||||
is_clergy = no
|
||||
is_ruler = yes
|
||||
|
|
@ -1339,15 +1696,16 @@ pam_send_legatine_mission_decision = {
|
|||
barony = 0
|
||||
county = 0
|
||||
duchy = 0
|
||||
kingdom = 24
|
||||
empire = 12
|
||||
kingdom = 60
|
||||
empire = 24
|
||||
hegemony = 12
|
||||
}
|
||||
|
||||
is_shown = {
|
||||
is_clergy = yes
|
||||
any_sub_realm_county = {
|
||||
always = yes
|
||||
is_landed = yes
|
||||
top_participant_group:the_christian_church ?= {
|
||||
has_participant_group_parameter = the_christian_church_legatine_mission
|
||||
}
|
||||
has_pam_dlc_trigger = yes
|
||||
is_ruler = yes
|
||||
|
|
@ -1420,13 +1778,13 @@ pam_send_legatine_mission_decision = {
|
|||
}
|
||||
if = {
|
||||
limit = {
|
||||
development_level <= bad_development_level
|
||||
prosperity_level <= bad_prosperity_level
|
||||
}
|
||||
add = 10
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
county_control <= 50
|
||||
county_control < county_control_baseline
|
||||
}
|
||||
add = 50
|
||||
}
|
||||
|
|
@ -3109,9 +3467,9 @@ pam_promulgate_word_of_pious_deeds_decision = {
|
|||
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 24
|
||||
duchy = 24
|
||||
kingdom = 12
|
||||
county = 120
|
||||
duchy = 120
|
||||
kingdom = 24
|
||||
empire = 12
|
||||
hegemony = 12
|
||||
}
|
||||
|
|
@ -3119,6 +3477,7 @@ pam_promulgate_word_of_pious_deeds_decision = {
|
|||
sort_order = 110
|
||||
|
||||
is_shown = {
|
||||
domicile ?= { has_domicile_parameter = unlocks_pam_propagate_word_of_my_piety_decision }
|
||||
pam_can_hold_cardinalate_trigger = yes
|
||||
is_clergy = yes
|
||||
has_spiritual_fulfillment_type = christian_fulfillment
|
||||
|
|
@ -3425,7 +3784,7 @@ pam_declare_rite_heresy_decision = {
|
|||
selection_tooltip = pam_declare_rite_heresy_decision_tooltip
|
||||
confirm_text = pam_declare_rite_heresy_decision_confirm
|
||||
|
||||
sort_order = 108
|
||||
sort_order = 50
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
|
|
@ -3640,7 +3999,7 @@ pam_permit_tenet_decision = {
|
|||
selection_tooltip = pam_permit_tenet_decision_tooltip
|
||||
confirm_text = pam_permit_tenet_decision_confirm
|
||||
|
||||
sort_order = 110
|
||||
sort_order = 50
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
|
|
@ -3743,7 +4102,26 @@ pam_permit_tenet_decision = {
|
|||
|
||||
ai_select_item = {
|
||||
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 = {
|
||||
any_character_tenet = {
|
||||
knowledge_filter = known
|
||||
|
|
@ -3776,6 +4154,10 @@ pam_permit_tenet_decision = {
|
|||
modifier = {
|
||||
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
|
||||
}
|
||||
|
|
@ -3791,6 +4173,10 @@ pam_permit_tenet_decision = {
|
|||
religion = religion:eastern_orthodox_religion
|
||||
}
|
||||
OR = {
|
||||
any_character_tenet = {
|
||||
knowledge_filter = known
|
||||
pam_tenet_ai_should_permit_intrinsic_trigger = { CHARACTER = root }
|
||||
}
|
||||
any_desired_tenet = {
|
||||
only_positive = yes
|
||||
threshold = 1
|
||||
|
|
@ -3971,6 +4357,25 @@ pam_prohibit_tenet_decision = {
|
|||
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 = {
|
||||
random_undesired_tenet = {
|
||||
limit = {
|
||||
|
|
@ -4006,6 +4411,11 @@ pam_prohibit_tenet_decision = {
|
|||
pam_tenet_can_be_prohibited_no_actor_trigger = yes
|
||||
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 = {
|
||||
known_tenets = yes
|
||||
only_negative = yes
|
||||
|
|
@ -4827,6 +5237,8 @@ pam_persecute_tenet_decision = {
|
|||
}
|
||||
|
||||
is_shown = {
|
||||
is_landless_adventurer = no
|
||||
is_landless_merchant = no
|
||||
has_tenet_popularity_trigger = yes
|
||||
is_playable_character = yes
|
||||
has_pam_dlc_trigger = yes
|
||||
|
|
@ -5079,6 +5491,7 @@ consecrate_kingdom_decision = {
|
|||
}
|
||||
is_landed_or_landless_administrative = yes
|
||||
is_confederation_member = no
|
||||
NOT = { government_has_flag = government_is_republic }
|
||||
OR = {
|
||||
exists = rite.head_of_rite
|
||||
exists = faith.religious_head
|
||||
|
|
@ -6072,7 +6485,7 @@ pam_invite_syncretic_exiles_decision = {
|
|||
limit = {
|
||||
pam_personal_syncretism_exile_rite_trigger = yes
|
||||
}
|
||||
order_by = var:converted_development
|
||||
order_by = var:converted_prosperity
|
||||
save_scope_as = target_rite
|
||||
}
|
||||
}
|
||||
|
|
@ -6306,7 +6719,7 @@ pam_personal_sacrifice_of_wealth_decision = {
|
|||
ai_item_will_do = {
|
||||
value = 10
|
||||
if = {
|
||||
limit = { development_level <= bad_development_level }
|
||||
limit = { prosperity_level <= bad_prosperity_level }
|
||||
add = 50
|
||||
}
|
||||
if = {
|
||||
|
|
@ -6350,7 +6763,7 @@ pam_personal_sacrifice_of_wealth_decision = {
|
|||
}
|
||||
modifier = {
|
||||
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 = {
|
||||
is_available_adult = yes
|
||||
is_at_war = no
|
||||
pam_government_is_religious_playable_trigger = yes
|
||||
short_term_treasury_or_gold >= minor_treasury_or_gold_value
|
||||
OR = {
|
||||
any_courtier = { pam_clerical_court_ordain_candidate_trigger = yes }
|
||||
any_courtier = { pam_clerical_court_pupil_trigger = yes }
|
||||
|
|
|
|||
|
|
@ -635,7 +635,8 @@ pam_extract_relic_decision = {
|
|||
}
|
||||
|
||||
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 = {
|
||||
|
|
|
|||
|
|
@ -2095,11 +2095,16 @@ ai_movement_petition_change_laws_decision = {
|
|||
}
|
||||
}
|
||||
# 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 = {
|
||||
picture = {
|
||||
trigger = { tgp_retires_to_eastern_estate_trigger = yes }
|
||||
reference = "gfx/interface/illustrations/event_scenes/tgp_asia_estate.dds"
|
||||
}
|
||||
picture = {
|
||||
reference = "gfx/interface/illustrations/event_scenes/ep3_medi_estate.dds"
|
||||
}
|
||||
|
||||
sort_order = 85
|
||||
|
||||
desc = {
|
||||
|
|
@ -2121,8 +2126,11 @@ renounce_noble_family_title_decision = {
|
|||
|
||||
is_shown = {
|
||||
any_held_title = { is_noble_family_title = yes }
|
||||
NOT = { religion = religion:buddhism_religion } # Uses tgp_japan_become_a_monk_decision
|
||||
NOT = { top_liege = root } #This is not a general abdication decision
|
||||
NOR = {
|
||||
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_playable_character = yes
|
||||
has_tgp_dlc_trigger = yes
|
||||
|
|
@ -2140,15 +2148,22 @@ renounce_noble_family_title_decision = {
|
|||
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_available_adult = yes
|
||||
is_at_war_with_liege = no
|
||||
trigger_if = {
|
||||
limit = {
|
||||
has_realm_law_flag = celestial_retirement_law
|
||||
}
|
||||
limit = { has_realm_law_flag = celestial_retirement_law }
|
||||
tgp_is_above_retirement_age_trigger = { REALM_OWNER = root }
|
||||
}
|
||||
}
|
||||
|
|
@ -2162,7 +2177,13 @@ renounce_noble_family_title_decision = {
|
|||
}
|
||||
}
|
||||
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
|
||||
if = {
|
||||
limit = { exists = scope:new_player }
|
||||
|
|
|
|||
|
|
@ -58,7 +58,8 @@ convert_to_mandala_government_decision = {
|
|||
picture = {
|
||||
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
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -248,7 +249,8 @@ assimilate_to_mandala_decision = {
|
|||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/tgp_decision_mandala.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
decision_group_type = realm
|
||||
sort_order = 40
|
||||
desc = {
|
||||
first_valid = {
|
||||
triggered_desc = {
|
||||
|
|
@ -273,6 +275,7 @@ assimilate_to_mandala_decision = {
|
|||
}
|
||||
|
||||
is_shown = {
|
||||
is_landed = yes
|
||||
highest_held_title_tier > tier_barony
|
||||
overlord ?= { government_has_flag = government_is_mandala }
|
||||
NAND = {
|
||||
|
|
@ -436,6 +439,7 @@ assimilate_to_mandala_decision = {
|
|||
this != top_overlord
|
||||
overlord = { government_has_flag = government_is_mandala }
|
||||
primary_title.tier > tier_barony
|
||||
NOT = { government_has_flag = government_is_republic }
|
||||
#Keep the tributaries Wanua
|
||||
trigger_if = {
|
||||
limit = {
|
||||
|
|
@ -524,7 +528,8 @@ mandala_adopt_clan_government_decision = {
|
|||
picture = {
|
||||
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
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -668,7 +673,7 @@ seize_mandala_capital_decision = {
|
|||
any_sub_realm_barony = {
|
||||
title_province ?= {
|
||||
has_building_with_flag = mandala_capital_building
|
||||
has_ruined_great_building = no
|
||||
has_ruined_great_district = no
|
||||
}
|
||||
kingdom ?= root.capital_county.kingdom
|
||||
}
|
||||
|
|
@ -689,7 +694,7 @@ seize_mandala_capital_decision = {
|
|||
kingdom = root.capital_county.kingdom
|
||||
title_province = {
|
||||
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
|
||||
title_province = {
|
||||
has_building_with_flag = mandala_capital_building
|
||||
has_ruined_great_building = no
|
||||
has_ruined_great_district = no
|
||||
}
|
||||
}
|
||||
holder = { save_scope_as = previous_holder }
|
||||
|
|
|
|||
|
|
@ -21,9 +21,15 @@ visit_silk_road_market_decision = {
|
|||
is_shown = {
|
||||
exists = situation:silk_road_situation
|
||||
OR = {
|
||||
any_character_situation = { situation_type = silk_road_situation }
|
||||
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:
|
||||
OR = {
|
||||
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 = occident }
|
||||
}
|
||||
is_playable_character = yes
|
||||
|
||||
has_tgp_dlc_trigger = yes
|
||||
}
|
||||
|
||||
is_valid = {
|
||||
is_adult = yes
|
||||
gold >= major_gold_value
|
||||
}
|
||||
|
||||
is_valid_showing_failures_only = {
|
||||
|
|
@ -49,6 +51,10 @@ visit_silk_road_market_decision = {
|
|||
is_incapable = no
|
||||
}
|
||||
|
||||
cost = {
|
||||
gold = major_gold_value
|
||||
}
|
||||
|
||||
widget = {
|
||||
gui = "decision_view_widget_option_list_generic"
|
||||
controller = decision_option_list_controller
|
||||
|
|
@ -62,8 +68,8 @@ visit_silk_road_market_decision = {
|
|||
is_valid = {
|
||||
custom_tooltip = {
|
||||
text = no_building_at_silk_road_market_desc
|
||||
title:c_jingzhao = { # Chang'an
|
||||
any_county_province = { has_building_with_flag = silk_road_node }
|
||||
title:b_zhouzhi.title_province = { # Chang'an
|
||||
has_building_with_flag = silk_road_node
|
||||
}
|
||||
}
|
||||
custom_tooltip = {
|
||||
|
|
@ -116,8 +122,8 @@ visit_silk_road_market_decision = {
|
|||
is_valid = {
|
||||
custom_tooltip = {
|
||||
text = no_building_at_silk_road_market_desc
|
||||
title:c_lhasa = {
|
||||
any_county_province = { has_building_with_flag = silk_road_node }
|
||||
title:b_potala.title_province = { # Lhasa
|
||||
has_building_with_flag = silk_road_node
|
||||
}
|
||||
}
|
||||
custom_tooltip = {
|
||||
|
|
@ -170,8 +176,8 @@ visit_silk_road_market_decision = {
|
|||
is_valid = {
|
||||
custom_tooltip = {
|
||||
text = no_building_at_silk_road_market_desc
|
||||
title:c_lahur = {
|
||||
any_county_province = { has_building_with_flag = silk_road_node }
|
||||
title:b_lahur.title_province = { # Lahur
|
||||
has_building_with_flag = silk_road_node
|
||||
}
|
||||
}
|
||||
custom_tooltip = {
|
||||
|
|
@ -224,8 +230,8 @@ visit_silk_road_market_decision = {
|
|||
is_valid = {
|
||||
custom_tooltip = {
|
||||
text = no_building_at_silk_road_market_desc
|
||||
title:c_shazhou = { # Dunhuang
|
||||
any_county_province = { has_building_with_flag = silk_road_node }
|
||||
title:b_dunhuang_2.title_province = { # Dunhuang
|
||||
has_building_with_flag = silk_road_node
|
||||
}
|
||||
}
|
||||
custom_tooltip = {
|
||||
|
|
@ -272,14 +278,14 @@ visit_silk_road_market_decision = {
|
|||
}
|
||||
}
|
||||
}
|
||||
item = { # Khiva
|
||||
value = c_khiva
|
||||
item = { # Gurganj
|
||||
value = c_gurganj
|
||||
is_shown = { always = yes }
|
||||
is_valid = {
|
||||
custom_tooltip = {
|
||||
text = no_building_at_silk_road_market_desc
|
||||
title:c_khiva = {
|
||||
any_county_province = { has_building_with_flag = silk_road_node }
|
||||
title:b_gurganj.title_province = { # Gurganj
|
||||
has_building_with_flag = silk_road_node
|
||||
}
|
||||
}
|
||||
custom_tooltip = {
|
||||
|
|
@ -287,7 +293,7 @@ visit_silk_road_market_decision = {
|
|||
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"
|
||||
ai_chance = {
|
||||
value = 1
|
||||
|
|
@ -295,7 +301,7 @@ visit_silk_road_market_decision = {
|
|||
limit = {
|
||||
root.location = {
|
||||
squared_distance = {
|
||||
target = title:c_khiva.title_province
|
||||
target = title:c_gurganj.title_province
|
||||
value <= squared_distance_small
|
||||
}
|
||||
}
|
||||
|
|
@ -306,7 +312,7 @@ visit_silk_road_market_decision = {
|
|||
limit = {
|
||||
root.location = {
|
||||
squared_distance = {
|
||||
target = title:c_khiva.title_province
|
||||
target = title:c_gurganj.title_province
|
||||
value <= squared_distance_large
|
||||
}
|
||||
}
|
||||
|
|
@ -317,7 +323,7 @@ visit_silk_road_market_decision = {
|
|||
limit = {
|
||||
root.location = {
|
||||
squared_distance = {
|
||||
target = title:c_khiva.title_province
|
||||
target = title:c_gurganj.title_province
|
||||
value > squared_distance_huge
|
||||
}
|
||||
}
|
||||
|
|
@ -326,14 +332,14 @@ visit_silk_road_market_decision = {
|
|||
}
|
||||
}
|
||||
}
|
||||
item = { # Dvin
|
||||
value = c_dvin
|
||||
item = { # Tabriz
|
||||
value = c_tabriz
|
||||
is_shown = { always = yes }
|
||||
is_valid = {
|
||||
custom_tooltip = {
|
||||
text = no_building_at_silk_road_market_desc
|
||||
title:c_dvin = {
|
||||
any_county_province = { has_building_with_flag = silk_road_node }
|
||||
title:b_tabriz.title_province = { # Tabriz
|
||||
has_building_with_flag = silk_road_node
|
||||
}
|
||||
}
|
||||
custom_tooltip = {
|
||||
|
|
@ -341,7 +347,7 @@ visit_silk_road_market_decision = {
|
|||
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"
|
||||
ai_chance = {
|
||||
value = 1
|
||||
|
|
@ -349,7 +355,7 @@ visit_silk_road_market_decision = {
|
|||
limit = {
|
||||
root.location = {
|
||||
squared_distance = {
|
||||
target = title:c_dvin.title_province
|
||||
target = title:c_tabriz.title_province
|
||||
value <= squared_distance_small
|
||||
}
|
||||
}
|
||||
|
|
@ -360,7 +366,7 @@ visit_silk_road_market_decision = {
|
|||
limit = {
|
||||
root.location = {
|
||||
squared_distance = {
|
||||
target = title:c_dvin.title_province
|
||||
target = title:c_tabriz.title_province
|
||||
value <= squared_distance_large
|
||||
}
|
||||
}
|
||||
|
|
@ -371,7 +377,7 @@ visit_silk_road_market_decision = {
|
|||
limit = {
|
||||
root.location = {
|
||||
squared_distance = {
|
||||
target = title:c_dvin.title_province
|
||||
target = title:c_tabriz.title_province
|
||||
value > squared_distance_huge
|
||||
}
|
||||
}
|
||||
|
|
@ -383,11 +389,10 @@ visit_silk_road_market_decision = {
|
|||
}
|
||||
|
||||
effect = {
|
||||
remove_short_term_gold = major_gold_value
|
||||
switch = {
|
||||
trigger = yes
|
||||
scope:c_dvin = { # Dvin
|
||||
title:c_dvin = { tgp_silk_road_decision_scope_effect = yes }
|
||||
scope:c_tabriz = { # Tabriz
|
||||
title:c_tabriz = { tgp_silk_road_decision_scope_effect = yes }
|
||||
}
|
||||
scope:c_jingzhao = { # Chang'an
|
||||
title:c_jingzhao = { tgp_silk_road_decision_scope_effect = yes }
|
||||
|
|
@ -401,8 +406,8 @@ visit_silk_road_market_decision = {
|
|||
scope:c_lhasa = { # Lhasa
|
||||
title:c_lhasa = { tgp_silk_road_decision_scope_effect = yes }
|
||||
}
|
||||
scope:c_khiva = { # Khiva
|
||||
title:c_khiva = { tgp_silk_road_decision_scope_effect = yes }
|
||||
scope:c_gurganj = { # Gurganj
|
||||
title:c_gurganj = { tgp_silk_road_decision_scope_effect = yes }
|
||||
}
|
||||
}
|
||||
if = {
|
||||
|
|
@ -419,16 +424,22 @@ visit_silk_road_market_decision = {
|
|||
on_arrival_event = tgp_silk_road_events.0010
|
||||
travel_with_domicile = no
|
||||
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
|
||||
#on_arrival_destinations = last
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = { exists = scope:innovation_temp }
|
||||
custom_tooltip = potential_innovation_at_silk_road_market_desc
|
||||
limit = { government_has_flag = government_is_merchant }
|
||||
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 = {
|
||||
limit = {
|
||||
root.location = {
|
||||
|
|
|
|||
|
|
@ -382,7 +382,8 @@ convert_to_meritocratic_decision = {
|
|||
picture = {
|
||||
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 = {
|
||||
barony = 0
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ tribute_mission_decision_mandala = {
|
|||
reference = "gfx/interface/illustrations/decisions/tgp_projects_mandala_capital.dds"
|
||||
}
|
||||
decision_group_type = realm
|
||||
sort_order = 10
|
||||
|
||||
should_create_alert = { always = yes }
|
||||
|
||||
|
|
@ -13,6 +14,7 @@ tribute_mission_decision_mandala = {
|
|||
cooldown = { years = 5 }
|
||||
|
||||
is_shown = {
|
||||
NOT = { government_has_flag = government_is_merchant }
|
||||
is_tributary = yes
|
||||
suzerain ?= { government_has_flag = government_is_mandala }
|
||||
}
|
||||
|
|
@ -126,6 +128,8 @@ tribute_mission_decision_mandala = {
|
|||
}
|
||||
|
||||
ai_potential = {
|
||||
is_tributary = yes
|
||||
suzerain ?= { government_has_flag = government_is_mandala }
|
||||
tribute_mission_decision_ai_potential_trigger = { TARGET = suzerain }
|
||||
}
|
||||
|
||||
|
|
@ -140,6 +144,7 @@ tribute_mission_decision_china = {
|
|||
reference = "gfx/interface/illustrations/decisions/tgp_kowtow.dds"
|
||||
}
|
||||
decision_group_type = realm
|
||||
sort_order = 10
|
||||
|
||||
should_create_alert = { always = yes }
|
||||
|
||||
|
|
@ -148,8 +153,9 @@ tribute_mission_decision_china = {
|
|||
cooldown = { years = 5 }
|
||||
|
||||
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 }
|
||||
is_tributary_or_independent_neighbor_of_hegemon_trigger = { HEGEMON = h_china }
|
||||
}
|
||||
|
||||
is_valid_showing_failures_only = {
|
||||
|
|
@ -253,7 +259,8 @@ tribute_mission_decision_china = {
|
|||
}
|
||||
|
||||
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 }
|
||||
}
|
||||
|
||||
|
|
@ -274,6 +281,7 @@ tribute_mission_decision_roman_empire = {
|
|||
reference = "gfx/interface/illustrations/decisions/ep3_decision_roman_restoration.dds"
|
||||
}
|
||||
decision_group_type = realm
|
||||
sort_order = 10
|
||||
|
||||
should_create_alert = { always = yes }
|
||||
|
||||
|
|
@ -282,6 +290,7 @@ tribute_mission_decision_roman_empire = {
|
|||
cooldown = { years = 5 }
|
||||
|
||||
is_shown = {
|
||||
NOT = { government_has_flag = government_is_merchant }
|
||||
title:h_roman_empire ?= { is_title_created = yes }
|
||||
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"
|
||||
}
|
||||
decision_group_type = realm
|
||||
sort_order = 10
|
||||
|
||||
should_create_alert = { always = yes }
|
||||
|
||||
|
|
@ -416,6 +426,7 @@ tribute_mission_decision_eastern_roman_empire = {
|
|||
cooldown = { years = 5 }
|
||||
|
||||
is_shown = {
|
||||
NOT = { government_has_flag = government_is_merchant }
|
||||
title:h_eastern_roman_empire ?= { is_title_created = yes }
|
||||
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"
|
||||
}
|
||||
decision_group_type = realm
|
||||
sort_order = 10
|
||||
|
||||
should_create_alert = { always = yes }
|
||||
|
||||
|
|
@ -550,6 +562,7 @@ tribute_mission_decision_dar_al_islam = {
|
|||
cooldown = { years = 5 }
|
||||
|
||||
is_shown = {
|
||||
NOT = { government_has_flag = government_is_merchant }
|
||||
title:h_dar_al_islam ?= { is_title_created = yes }
|
||||
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"
|
||||
}
|
||||
decision_group_type = realm
|
||||
sort_order = 10
|
||||
|
||||
should_create_alert = { always = yes }
|
||||
|
||||
|
|
@ -684,6 +698,7 @@ tribute_mission_decision_india = {
|
|||
cooldown = { years = 5 }
|
||||
|
||||
is_shown = {
|
||||
NOT = { government_has_flag = government_is_merchant }
|
||||
title:h_india ?= { is_title_created = yes }
|
||||
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 = {
|
||||
slot_type = main
|
||||
internal_slots = 2
|
||||
|
|
|
|||
|
|
@ -773,7 +773,7 @@ peasant_faction = {
|
|||
war_keep_on_attacker_victory = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
# } # NEOW: closes a disabled historical Roman-restoration conditional
|
||||
}
|
||||
|
||||
leader_leaves = {
|
||||
|
|
|
|||
|
|
@ -1249,20 +1249,20 @@ loot = {
|
|||
|
||||
barter = {
|
||||
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
|
||||
}
|
||||
|
||||
barterer = {
|
||||
texture = "gfx/interface/icons/icon_barter.dds"
|
||||
parent = barter
|
||||
alias = { barterers traders trader }
|
||||
alias = { barterers }
|
||||
}
|
||||
|
||||
barter_goods = {
|
||||
texture = "gfx/interface/icons/icon_barter.dds"
|
||||
parent = barter
|
||||
alias = { barter_goods_i trade_goods }
|
||||
alias = { barter_goods_i }
|
||||
}
|
||||
|
||||
army_commander = {
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ e_caucasia = {
|
|||
b_ashtarak = { # Ashtarak
|
||||
province = 8958
|
||||
color = { 148 124 23 }
|
||||
color2 = { 255 255 255 }
|
||||
# color2 removed: invalid CK3 landed-title property in 1.21
|
||||
}
|
||||
}
|
||||
c_gegharkunik = { # Gegharkunik
|
||||
|
|
|
|||
|
|
@ -1031,7 +1031,7 @@ e_finland = {
|
|||
}
|
||||
b_uusikaupunki = { # Uusikaupunki
|
||||
province = 180
|
||||
ccolor = { 235 245 245 }
|
||||
color = { 235 245 245 }
|
||||
|
||||
cultural_names = {
|
||||
name_list_NEOW_norwegian=cn_nystad
|
||||
|
|
|
|||
|
|
@ -356,7 +356,7 @@ k_compostelan_papacy = {
|
|||
no_automatic_claims = yes
|
||||
always_follows_primary_heir = 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 = {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
@nomadic_authority_cooldown_years = 5
|
||||
@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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# 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
|
||||
random_list = {
|
||||
25 = {
|
||||
change_development_progress_with_overflow = -10
|
||||
change_prosperity_progress_with_overflow = -10
|
||||
}
|
||||
25 = {
|
||||
change_development_progress_with_overflow = -15
|
||||
change_prosperity_progress_with_overflow = -15
|
||||
}
|
||||
25 = {
|
||||
change_development_progress_with_overflow = -20
|
||||
change_prosperity_progress_with_overflow = -20
|
||||
}
|
||||
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
|
||||
faction_demand.1010 #Reinforce populist rebels
|
||||
faction_demand.1110 #Reinforce peasant rebels
|
||||
gdp_burgher.0030
|
||||
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
|
||||
}
|
||||
|
|
@ -421,7 +422,7 @@ on_siege_completion = {
|
|||
title = successful_sieges_give_piety_toast
|
||||
left_icon = root
|
||||
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
|
||||
left_icon = root
|
||||
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
|
||||
left_icon = root
|
||||
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 = {
|
||||
limit = {
|
||||
has_legend_chapter_trigger = { CHAPTER = extra_deed }
|
||||
scope:barony.county.development_level >= good_development_level
|
||||
scope:barony.county.prosperity_level >= good_prosperity_level
|
||||
NOT = {
|
||||
promoted_legend ?= {
|
||||
has_legend_chapter = {
|
||||
|
|
@ -687,9 +688,21 @@ on_siege_looting = {
|
|||
domicile ?= { change_provisions = adventurer_siege_provisions_amount }
|
||||
}
|
||||
}
|
||||
add_province_modifier = {
|
||||
modifier = recently_looted_modifier
|
||||
years = 5
|
||||
trade_market = {
|
||||
add_trade_market_modifier = {
|
||||
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
|
||||
}
|
||||
}
|
||||
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
|
||||
left_icon = scope:county.holder
|
||||
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 = {
|
||||
limit = {
|
||||
|
|
@ -880,10 +1050,18 @@ on_raid_action_completion = {
|
|||
}
|
||||
}
|
||||
}
|
||||
scope:barony.title_province = {
|
||||
add_province_modifier = {
|
||||
modifier = recently_looted_modifier
|
||||
years = 5
|
||||
scope:barony = {
|
||||
title_province = {
|
||||
add_province_modifier = {
|
||||
modifier = recently_looted_modifier
|
||||
years = 5
|
||||
}
|
||||
}
|
||||
trade_market = {
|
||||
add_trade_market_modifier = {
|
||||
modifier = gdp_market_recently_raided_capacity_modifier
|
||||
years = 5
|
||||
}
|
||||
}
|
||||
county = {
|
||||
if = {
|
||||
|
|
@ -895,16 +1073,16 @@ on_raid_action_completion = {
|
|||
change_county_control = raid_county_control_loss_value
|
||||
random_list = {
|
||||
25 = {
|
||||
change_development_progress_with_overflow = -2
|
||||
change_prosperity_progress_with_overflow = -2
|
||||
}
|
||||
25 = {
|
||||
change_development_progress_with_overflow = -3
|
||||
change_prosperity_progress_with_overflow = -3
|
||||
}
|
||||
25 = {
|
||||
change_development_progress_with_overflow = -4
|
||||
change_prosperity_progress_with_overflow = -4
|
||||
}
|
||||
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
|
||||
left_icon = scope:raider
|
||||
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 = {
|
||||
add_loot = scope:value
|
||||
scope:barony.title_province = {
|
||||
add_province_modifier = {
|
||||
modifier = recently_bartered_modifier
|
||||
years = 5
|
||||
scope:barony = {
|
||||
title_province = {
|
||||
add_province_modifier = {
|
||||
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
|
||||
left_icon = scope:barterer
|
||||
right_icon = scope:barony
|
||||
|
||||
scope:barony.title_province = {
|
||||
add_province_modifier = {
|
||||
modifier = recently_bartered_modifier
|
||||
years = 5
|
||||
scope:barony = {
|
||||
title_province = {
|
||||
add_province_modifier = {
|
||||
modifier = recently_bartered_modifier
|
||||
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 = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = primary_armament
|
||||
NOT = { has_variable = artifact_battles_won_var }
|
||||
}
|
||||
}
|
||||
}
|
||||
every_side_knight = {
|
||||
random_character_artifact = {
|
||||
limit = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = primary_armament
|
||||
NOT = { has_variable = artifact_battles_won_var }
|
||||
if = {
|
||||
limit = {
|
||||
any_side_knight = {
|
||||
any_character_artifact = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = primary_armament
|
||||
NOT = { has_variable = artifact_battles_won_var }
|
||||
}
|
||||
}
|
||||
set_variable = {
|
||||
name = artifact_battles_won_var
|
||||
value = 1
|
||||
}
|
||||
every_side_knight = {
|
||||
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_if = {
|
||||
limit = {
|
||||
any_side_knight = {
|
||||
any_character_artifact = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = primary_armament
|
||||
has_variable = artifact_battles_won_var
|
||||
}
|
||||
}
|
||||
}
|
||||
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
|
||||
else = {
|
||||
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 = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = armor
|
||||
NOT = { has_variable = artifact_battles_won_var }
|
||||
}
|
||||
}
|
||||
}
|
||||
every_side_knight = {
|
||||
random_character_artifact = {
|
||||
limit = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = armor
|
||||
NOT = { has_variable = artifact_battles_won_var }
|
||||
if = {
|
||||
limit = {
|
||||
any_side_knight = {
|
||||
any_character_artifact = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = armor
|
||||
NOT = { has_variable = artifact_battles_won_var }
|
||||
}
|
||||
}
|
||||
set_variable = {
|
||||
name = artifact_battles_won_var
|
||||
value = 1
|
||||
}
|
||||
every_side_knight = {
|
||||
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_if = {
|
||||
limit = {
|
||||
any_side_knight = {
|
||||
any_character_artifact = {
|
||||
is_equipped = yes
|
||||
artifact_slot_type = armor
|
||||
has_variable = artifact_battles_won_var
|
||||
}
|
||||
}
|
||||
}
|
||||
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
|
||||
else = {
|
||||
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 = 0
|
||||
add = root.enemy_side.side_max_army_size
|
||||
divide = 100
|
||||
divide = 400
|
||||
min = 5
|
||||
}
|
||||
}
|
||||
|
|
@ -465,7 +467,7 @@ on_combat_end_winner = {
|
|||
value = {
|
||||
value = 0
|
||||
add = root.enemy_side.side_max_army_size
|
||||
divide = 100
|
||||
divide = 400
|
||||
min = 5
|
||||
}
|
||||
}
|
||||
|
|
@ -482,6 +484,20 @@ on_combat_end_winner = {
|
|||
every_side_commander = {
|
||||
commander_trait_leveling_leveling_effect = { XP = 1 }
|
||||
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
|
||||
|
|
@ -525,7 +541,7 @@ on_combat_end_winner = {
|
|||
on_combat_end_loser = {
|
||||
events = {
|
||||
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.
|
||||
combat_event.2111 # Battle Lost: glory goes down.
|
||||
}
|
||||
|
|
@ -696,8 +712,8 @@ on_combat_end_loser = {
|
|||
modifier = {
|
||||
factor = accolade_progress # scales with accolade progress
|
||||
}
|
||||
modifier = { # must have an eligible knight
|
||||
NOT = {
|
||||
if = {
|
||||
limit = { # must have an eligible knight
|
||||
root = {
|
||||
any_side_knight = {
|
||||
can_unlock_accolade_attribute_trigger = {
|
||||
|
|
@ -706,42 +722,41 @@ on_combat_end_loser = {
|
|||
}
|
||||
}
|
||||
}
|
||||
factor = 0
|
||||
}
|
||||
save_scope_as = accolade_liege
|
||||
set_variable = {
|
||||
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
|
||||
save_scope_as = accolade_liege
|
||||
set_variable = {
|
||||
name = accolade_progress
|
||||
value = 0
|
||||
}
|
||||
}
|
||||
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
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
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
|
||||
|
||||
merchant_inspector_clear_specialized_market_effect = yes
|
||||
|
||||
burgher_clear_sponsor_links_effect = yes
|
||||
|
||||
# Legend inheritance
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -2414,9 +2418,39 @@ on_death = {
|
|||
if = {
|
||||
limit = { is_valid_for_legitimacy_change = yes }
|
||||
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 = {
|
||||
# limit = {
|
||||
# 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
|
||||
situation:the_great_steppe ?= {
|
||||
every_participant_group = {
|
||||
|
|
@ -1033,246 +1178,54 @@ on_game_start = {
|
|||
limit = {
|
||||
has_cp3_dlc_trigger = yes
|
||||
}
|
||||
title:b_barcelona.title_province = { add_special_building_slot = drassanes_01 } #1892
|
||||
title:b_merv.title_province = { add_special_building = kyz_kala_01 } #4238
|
||||
if = { limit = { game_start_date >= 1178.10.1 } title:b_cluny.title_province = { add_special_building = cluny_abbey_02 } } #2304
|
||||
else_if = { limit = { game_start_date >= 1066.9.15 } title:b_cluny.title_province = { add_special_building = cluny_abbey_01 } }
|
||||
else = { title:b_cluny.title_province = { add_special_building_slot = cluny_abbey_01 } }
|
||||
title:b_york.title_province = { add_special_building = york_walls_01 } #1595
|
||||
title:b_damascus.title_province = { add_special_building = damascus_mosque_01 } #5924
|
||||
title:b_lhasa.title_province = { add_special_building = jokhang_01 } #9237
|
||||
if = { limit = { game_start_date >= 1178.10.1 } title:b_schmalkalden.title_province = { add_special_building = wartburg_01 } } #3010
|
||||
else = { title:b_schmalkalden.title_province = { add_special_building_slot = wartburg_01 } }
|
||||
title:b_lalibela.title_province = { add_special_building_slot = beta_giyorgis_01 } #8301
|
||||
if = { limit = { game_start_date >= 1066.9.15 } title:b_novgorod.title_province = { add_special_building = holy_wisdom_01 } } #5137
|
||||
else = { title:b_novgorod.title_province = { add_special_building_slot = holy_wisdom_01 } }
|
||||
title:b_kano.title_province = { add_special_building_slot = kano_walls_01 } #6519
|
||||
title:b_somapur.title_province = { add_special_building = somapura_university_01 } #848
|
||||
if = { limit = { game_start_date >= 1178.10.1 } title:b_firenze.title_province = { add_special_building = duomo_florence_02 } } #2543
|
||||
else = { title:b_firenze.title_province = { add_special_building = duomo_florence_01 } }
|
||||
title:b_konarak.title_province = { add_special_building_slot = konark_temple_01 } #928
|
||||
title:b_fes.title_province = { add_special_building = al_qarawiyyin_university_01 } #4694
|
||||
title:b_kairouan.title_province = { add_special_building = kairouan_basins_01 } #4594
|
||||
title:b_al-ghaba.title_province = { add_special_building = ghana_palace_01 } #6628 #NOTE: likely existed since the 8th, but earliest (only) source on palace is from 1068
|
||||
title:b_visegrad_hun.title_province = { add_special_building_slot = visegrad_castle_01 } #3803
|
||||
if = { limit = { game_start_date >= 1161.9.15 } title:b_leczyca.title_province = { add_special_building = wawel_cathedral_01 } } #4924 #Date of consecreation of Archcollegiate Church of St. Mary and St. Alexius in Tum
|
||||
else = { title:b_leczyca.title_province = { add_special_building_slot = wawel_cathedral_01 } }
|
||||
title:b_vatapi.title_province = { add_special_building = vatapi_caves_01 } #1198
|
||||
if = { limit = { game_start_date >= 1178.10.1 } title:b_jaisalmer.title_province = { add_special_building = jaisalmer_fort_01 } } #3387
|
||||
else = { title:b_jaisalmer.title_province = { add_special_building_slot = jaisalmer_fort_01 } } #3387
|
||||
title:b_barcelona.title_province = { add_special_district_slot = drassanes_01_district } #1892
|
||||
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_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_district = cluny_abbey_01_district } }
|
||||
else = { title:b_cluny.title_province = { add_special_district_slot = cluny_abbey_01_district } }
|
||||
title:b_york.title_province = { add_special_district = york_walls_01_district } #1595
|
||||
title:b_damascus.title_province = { add_special_district = damascus_mosque_01_district } #5924
|
||||
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_district = wartburg_01_district } } #3010
|
||||
else = { title:b_schmalkalden.title_province = { add_special_district_slot = wartburg_01_district } }
|
||||
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_district = holy_wisdom_01_district } } #5137
|
||||
else = { title:b_novgorod.title_province = { add_special_district_slot = holy_wisdom_01_district } }
|
||||
title:b_kano.title_province = { add_special_district_slot = kano_walls_01_district } #6519
|
||||
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_district = duomo_florence_01_district } } #2543
|
||||
else = { title:b_firenze.title_province = { add_special_district = duomo_florence_01_district } }
|
||||
title:b_konarak.title_province = { add_special_district_slot = konark_temple_01_district } #928
|
||||
title:b_fes.title_province = { add_special_district = al_qarawiyyin_university_01_district } #4694
|
||||
title:b_kairouan.title_province = { add_special_district = kairouan_basins_01_district } #4594
|
||||
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_district_slot = visegrad_castle_01_district } #3803
|
||||
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_district_slot = wawel_cathedral_01_district } }
|
||||
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_district = jaisalmer_fort_01_district } } #3387
|
||||
else = { title:b_jaisalmer.title_province = { add_special_district_slot = jaisalmer_fort_01_district } } #3387
|
||||
}
|
||||
|
||||
### RELIGIOUS THINGS ###
|
||||
# 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_faith = {
|
||||
every_holy_site = {
|
||||
save_scope_as = holy_site_faith
|
||||
every_holy_site_barony = {
|
||||
limit = {
|
||||
title_province = {
|
||||
has_special_building_slot = no
|
||||
has_special_district_slot = no
|
||||
}
|
||||
}
|
||||
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 = {
|
||||
# if = {
|
||||
# limit = {
|
||||
|
|
@ -1372,59 +1325,59 @@ on_game_start = {
|
|||
title:b_fes.title_province = {
|
||||
if = {
|
||||
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 = {
|
||||
if = {
|
||||
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_salamanca.title_province = { add_special_building_slot = generic_university }
|
||||
title:b_madrid.title_province = { add_special_building_slot = generic_university }
|
||||
#title:b_oxford.title_province = { add_special_building_slot = generic_university } # Added in province history
|
||||
title:b_cambridge.title_province = { add_special_building_slot = generic_university }
|
||||
title:b_padua.title_province = { add_special_building_slot = generic_university }
|
||||
title:b_coimbra.title_province = { add_special_building_slot = generic_university }
|
||||
title:b_napoli.title_province = { add_special_building_slot = generic_university }
|
||||
title:b_milano.title_province = { add_special_building_slot = generic_university }
|
||||
title:b_vienna.title_province = { add_special_building_slot = generic_university }
|
||||
title:b_praha.title_province = { add_special_building_slot = generic_university }
|
||||
title:b_perugia.title_province = { add_special_building_slot = generic_university }
|
||||
title:b_malappuram.title_province = { add_special_building_slot = generic_university }
|
||||
title:b_janakpur.title_province = { add_special_building_slot = generic_university }
|
||||
title:b_uppsala.title_province = { add_special_building_slot = generic_university }
|
||||
title:b_montlhery.title_province = { add_special_building_slot = generic_university } # 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_wazwan.title_province = { add_special_building_slot = generic_university } # 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_speyer.title_province = { add_special_building_slot = generic_university } # 1350ish, should be in Heidelberg but that's a church
|
||||
title:b_krakow.title_province = { add_special_building_slot = generic_university } # 1364
|
||||
title:b_pisa.title_province = { add_special_building_slot = generic_university } # 1350ish
|
||||
title:b_rostock.title_province = { add_special_building_slot = generic_university } # 1400ish
|
||||
title:b_turin.title_province = { add_special_building_slot = generic_university } # 1400ish
|
||||
title:b_ferrara.title_province = { add_special_building_slot = generic_university } # 1400ish
|
||||
title:b_leipzig.title_province = { add_special_building_slot = generic_university } # 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_bologna.title_province = { add_special_district_slot = generic_university_district } # Added in province history
|
||||
title:b_salamanca.title_province = { add_special_district_slot = generic_university_district }
|
||||
title:b_madrid.title_province = { add_special_district_slot = generic_university_district }
|
||||
#title:b_oxford.title_province = { add_special_district_slot = generic_university_district } # Added in province history
|
||||
title:b_cambridge.title_province = { add_special_district_slot = generic_university_district }
|
||||
title:b_padua.title_province = { add_special_district_slot = generic_university_district }
|
||||
title:b_coimbra.title_province = { add_special_district_slot = generic_university_district }
|
||||
title:b_napoli.title_province = { add_special_district_slot = generic_university_district }
|
||||
title:b_milano.title_province = { add_special_district_slot = generic_university_district }
|
||||
title:b_vienna.title_province = { add_special_district_slot = generic_university_district }
|
||||
title:b_praha.title_province = { add_special_district_slot = generic_university_district }
|
||||
title:b_perugia.title_province = { add_special_district_slot = generic_university_district }
|
||||
title:b_malappuram.title_province = { add_special_district_slot = generic_university_district }
|
||||
title:b_janakpur.title_province = { add_special_district_slot = generic_university_district }
|
||||
title:b_uppsala.title_province = { add_special_district_slot = generic_university_district }
|
||||
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_district_slot = generic_university_district } # Technically should be Tunis, but that's occupied by a cathedral
|
||||
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_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_district_slot = generic_university_district } # 1350ish, should be in Heidelberg but that's a church
|
||||
title:b_krakow.title_province = { add_special_district_slot = generic_university_district } # 1364
|
||||
title:b_pisa.title_province = { add_special_district_slot = generic_university_district } # 1350ish
|
||||
title:b_rostock.title_province = { add_special_district_slot = generic_university_district } # 1400ish
|
||||
title:b_turin.title_province = { add_special_district_slot = generic_university_district } # 1400ish
|
||||
title:b_ferrara.title_province = { add_special_district_slot = generic_university_district } # 1400ish
|
||||
title:b_leipzig.title_province = { add_special_district_slot = generic_university_district } # 1400ish, a city holding
|
||||
title:b_messina.title_province = { add_special_district_slot = generic_university_district } # 1400ish, should be in Catania but that's a church
|
||||
if = {
|
||||
limit = {
|
||||
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 = {
|
||||
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_bidar.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_district_slot = generic_university_district } # 1450ish, but still fun to build
|
||||
title:b_changsha.title_province = {
|
||||
add_special_building_slot = generic_university
|
||||
add_special_district_slot = generic_university_district
|
||||
}
|
||||
|
||||
### 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: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: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 }
|
||||
|
||||
### 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:yellow_river_region }
|
||||
##### 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 #####
|
||||
if = {
|
||||
limit = { has_tgp_dlc_trigger = yes }
|
||||
|
|
@ -2847,6 +2800,12 @@ on_game_start = {
|
|||
on_game_start_after_lobby = {
|
||||
effect = {
|
||||
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
|
||||
situation:the_great_steppe ?= {
|
||||
|
|
@ -3670,7 +3629,7 @@ on_game_start_after_lobby = {
|
|||
# has_trait = dull
|
||||
# has_trait = intellect_bad
|
||||
# location.county ?= {
|
||||
# development_level <= bad_development_level
|
||||
# prosperity_level <= bad_prosperity_level
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
|
@ -15811,7 +15770,7 @@ on_game_start_after_lobby = {
|
|||
}
|
||||
|
||||
### 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 ###
|
||||
|
|
@ -16144,15 +16103,15 @@ on_game_start_after_lobby = {
|
|||
# }
|
||||
every_in_list = {
|
||||
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 = {
|
||||
limit = { is_independent_ruler = yes }
|
||||
every_noble_family = {
|
||||
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 = {
|
||||
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
|
||||
}
|
||||
generate_building = yes
|
||||
brewery_counter_start_effect = yes
|
||||
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. brewery_counter_start_effect = yes
|
||||
}
|
||||
every_domicile = {
|
||||
limit = { exists = owner }
|
||||
|
|
@ -16200,9 +16159,9 @@ on_game_start_after_lobby = {
|
|||
owner.culture ?= { has_innovation = innovation_city_planning }
|
||||
}
|
||||
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 = {
|
||||
if = {
|
||||
|
|
@ -16238,57 +16197,57 @@ on_game_start_after_lobby = {
|
|||
generate_building = yes
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level >= 8
|
||||
county.prosperity_level >= 8
|
||||
}
|
||||
generate_building = yes
|
||||
generate_building = yes
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level >= 10
|
||||
county.prosperity_level >= 10
|
||||
}
|
||||
generate_building = yes
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level >= 12
|
||||
county.prosperity_level >= 12
|
||||
}
|
||||
generate_building = yes
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level >= 14
|
||||
county.prosperity_level >= 14
|
||||
}
|
||||
generate_building = yes
|
||||
generate_building = yes
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level >= 16
|
||||
county.prosperity_level >= 16
|
||||
}
|
||||
generate_building = yes
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level >= 18
|
||||
county.prosperity_level >= 18
|
||||
}
|
||||
generate_building = yes
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level >= 20
|
||||
county.prosperity_level >= 20
|
||||
}
|
||||
generate_building = yes
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
county.development_level >= 25
|
||||
county.prosperity_level >= 25
|
||||
}
|
||||
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 = {
|
||||
#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 }
|
||||
}
|
||||
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 = {
|
||||
limit = {
|
||||
|
|
@ -16455,10 +16414,10 @@ on_game_start_after_lobby = {
|
|||
add_domicile_building = japanese_manor_main_03
|
||||
while = {
|
||||
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 = {
|
||||
if = {
|
||||
|
|
@ -16781,6 +16740,40 @@ on_game_start_after_lobby = {
|
|||
}
|
||||
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
|
||||
}
|
||||
|
||||
|
|
@ -16789,6 +16782,8 @@ on_game_start_after_lobby = {
|
|||
historical_artifacts.0050
|
||||
historical_artifacts.0023 # Historical Artifacts Generator
|
||||
coronation_events.0302 # ACH crown giveaway
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,49 @@ on_artifact_changed_owner = {
|
|||
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.
|
||||
|
|
|
|||
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
|
||||
on_building_completed = {
|
||||
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
|
||||
scope:character ?= {
|
||||
if = {
|
||||
|
|
@ -50,7 +76,7 @@ on_building_completed = {
|
|||
title = building_temples_gives_development_toast
|
||||
left_icon = root.county
|
||||
root.county = {
|
||||
change_development_progress_with_overflow = minor_development_progress_gain
|
||||
change_prosperity_progress_with_overflow = minor_prosperity_progress_gain
|
||||
set_variable = {
|
||||
name = dev_gain_cooldown
|
||||
value = yes
|
||||
|
|
@ -73,7 +99,7 @@ on_building_completed = {
|
|||
title = tenet_pentarchy_development_growth_in_holy_sites_toast
|
||||
left_icon = scope:character
|
||||
root.county = {
|
||||
change_development_progress_with_overflow = medium_development_progress_gain
|
||||
change_prosperity_progress_with_overflow = medium_prosperity_progress_gain
|
||||
set_variable = {
|
||||
name = dev_gain_cooldown
|
||||
value = yes
|
||||
|
|
@ -91,7 +117,7 @@ on_building_completed = {
|
|||
NOT = { county = { has_variable = dev_gain_cooldown } }
|
||||
}
|
||||
county = {
|
||||
change_development_progress_with_overflow = 25
|
||||
change_prosperity_progress_with_overflow = 25
|
||||
set_variable = {
|
||||
name = dev_gain_cooldown
|
||||
value = yes
|
||||
|
|
@ -244,14 +270,14 @@ on_building_completed = {
|
|||
random = {
|
||||
chance = 10
|
||||
modifier = {
|
||||
add = county.development_level
|
||||
add = county.prosperity_level
|
||||
}
|
||||
set_variable = {
|
||||
name = number_prestigious_new_guests
|
||||
value = 1
|
||||
}
|
||||
if = {
|
||||
limit = { county.development_level >= max_development_level }
|
||||
limit = { county.prosperity_level >= max_prosperity_level }
|
||||
|
||||
set_variable = {
|
||||
name = holding_quality
|
||||
|
|
@ -259,28 +285,28 @@ on_building_completed = {
|
|||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = { county.development_level >= great_development_level }
|
||||
limit = { county.prosperity_level >= great_prosperity_level }
|
||||
set_variable = {
|
||||
name = holding_quality
|
||||
value = 3
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = { county.development_level >= good_development_level }
|
||||
limit = { county.prosperity_level >= good_prosperity_level }
|
||||
set_variable = {
|
||||
name = holding_quality
|
||||
value = 2
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = { county.development_level >= medium_development_level }
|
||||
limit = { county.prosperity_level >= medium_prosperity_level }
|
||||
set_variable = {
|
||||
name = holding_quality
|
||||
value = 2
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = { county.development_level >= bad_development_level }
|
||||
limit = { county.prosperity_level >= bad_prosperity_level }
|
||||
set_variable = {
|
||||
name = holding_quality
|
||||
value = 1
|
||||
|
|
@ -317,7 +343,7 @@ on_building_completed = {
|
|||
}
|
||||
}
|
||||
}
|
||||
county = { change_development_progress_with_overflow = 10 }
|
||||
county = { change_prosperity_progress_with_overflow = 10 }
|
||||
}
|
||||
|
||||
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 = {
|
||||
limit = {
|
||||
scope:character ?= { has_character_modifier = the_city_builder_modifier }
|
||||
|
|
@ -903,6 +929,21 @@ on_building_cancelled = {
|
|||
limit = { has_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
|
||||
add_gold = {
|
||||
value = minor_gold_value
|
||||
add = scope:province.county.development_level
|
||||
add = scope:province.county.prosperity_level
|
||||
}
|
||||
scope:province = {
|
||||
if = {
|
||||
limit = {
|
||||
this = county.title_province
|
||||
county.development_level >= 1
|
||||
county.prosperity_level >= 1
|
||||
}
|
||||
county = {
|
||||
change_development_progress_with_overflow = {
|
||||
value = scope:province.county.development_level
|
||||
change_prosperity_progress_with_overflow = {
|
||||
value = scope:province.county.prosperity_level
|
||||
multiply = 10
|
||||
multiply = -1
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ on_faith_created = {
|
|||
limit = { faith = root }
|
||||
pam_on_conversion_effect = yes
|
||||
remove_character_modifier = religious_reformer_modifier
|
||||
gdp_update_usury_reputation_effect = yes
|
||||
# If you have a legend maybe we change it?
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -260,7 +261,7 @@ on_faith_created = {
|
|||
# if = {
|
||||
# limit = {
|
||||
# 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 }
|
||||
# }
|
||||
|
|
@ -777,6 +778,7 @@ on_faith_conversion = {
|
|||
pam_on_conversion_effect = yes
|
||||
pam_remove_forbidden_personal_tenet_secret_if_invalid_effect = yes
|
||||
update_syncretism_personal_tenet_effect = yes
|
||||
gdp_update_usury_reputation_effect = yes
|
||||
# EP3 - State Faith
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -1144,9 +1146,9 @@ on_rite_change = {
|
|||
# limit = {
|
||||
# highest_held_title_tier >= tier_county
|
||||
# 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_top_has_catalyst = catalyst_the_christian_church_ruler_converted_from_christianity
|
||||
# }
|
||||
|
|
@ -1159,9 +1161,9 @@ on_rite_change = {
|
|||
# limit = {
|
||||
# highest_held_title_tier >= tier_county
|
||||
# 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_top_has_catalyst = catalyst_the_christian_church_ruler_converted_to_christianity
|
||||
# }
|
||||
|
|
@ -1590,7 +1592,7 @@ pagan_conversion_pulse = {
|
|||
}
|
||||
}
|
||||
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 = {
|
||||
|
|
@ -1598,12 +1600,12 @@ pagan_conversion_pulse = {
|
|||
current_date <= 1000.1.1
|
||||
}
|
||||
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 = {
|
||||
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 = {
|
||||
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 = {
|
||||
# scope:landed_title = {
|
||||
# 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 = {
|
||||
|
|
@ -254,6 +254,10 @@ on_title_destroyed = {
|
|||
# scope:title = the title that changes hands
|
||||
# scope:previous_holder = previous holder. Might be dead
|
||||
on_title_gain = {
|
||||
on_actions = {
|
||||
gdp_league_focus_on_title_gain
|
||||
}
|
||||
|
||||
effect = {
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -305,23 +309,48 @@ on_title_gain = {
|
|||
if = {
|
||||
limit = { clerical_elector_title ?= scope:title }
|
||||
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 = {
|
||||
limit = {
|
||||
exists = clerical_elector_title
|
||||
scope:title = clerical_elector_title
|
||||
}
|
||||
add_character_flag = cardinal_flag
|
||||
situation:the_christian_church ?= {
|
||||
add_manual_participant = prev
|
||||
}
|
||||
}
|
||||
# Unconditional: also catches a sitting Head of Faith who is handed a cardinalate
|
||||
pam_vacate_head_of_faith_cardinalate_effect = yes
|
||||
limit = {
|
||||
scope:transfer_type = flag:election
|
||||
government_has_flag = government_is_republic
|
||||
}
|
||||
scope:title = {
|
||||
every_full_assembly_member = {
|
||||
if = {
|
||||
limit = {
|
||||
has_character_modifier = gdp_popular_mandate_modifier
|
||||
}
|
||||
remove_character_modifier = gdp_popular_mandate_modifier
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
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 ?= {
|
||||
add_manual_participant = prev
|
||||
|
|
@ -334,7 +363,7 @@ on_title_gain = {
|
|||
scope:transfer_type = flag:inheritance
|
||||
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 = {
|
||||
scope:title = { has_clerical_region = yes }
|
||||
scope:title = { has_title_law = clerical_appointment_law }
|
||||
|
|
@ -359,7 +388,7 @@ on_title_gain = {
|
|||
if = {
|
||||
limit = {
|
||||
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 }
|
||||
}
|
||||
pam_seed_monk_courtiers_effect = yes
|
||||
|
|
@ -443,7 +472,7 @@ on_title_gain = {
|
|||
# The challenger registers only after the title change
|
||||
if = {
|
||||
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_family_becomes_prelate_effect = {
|
||||
|
|
@ -453,7 +482,7 @@ on_title_gain = {
|
|||
}
|
||||
else_if = {
|
||||
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 }
|
||||
NOT = {
|
||||
any_held_title = {
|
||||
|
|
@ -472,7 +501,7 @@ on_title_gain = {
|
|||
pam_the_christian_church_clergy_gained_landed_title_catalyst_effect = yes
|
||||
#if = {
|
||||
# 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 }
|
||||
# exists = scope:previous_holder
|
||||
# }
|
||||
|
|
@ -2489,7 +2518,10 @@ on_title_gain = {
|
|||
if = {
|
||||
limit = {
|
||||
is_governor = yes
|
||||
NOT = { has_trait = governor }
|
||||
NOR = {
|
||||
has_trait = governor
|
||||
has_character_flag = gdp_founding_republic
|
||||
}
|
||||
scope:title = {
|
||||
tier >= root.main_administrative_tier
|
||||
}
|
||||
|
|
@ -2919,6 +2951,41 @@ on_title_gain = {
|
|||
scope:title = { update_dynamic_coa = yes }
|
||||
|
||||
### 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
|
||||
if = {
|
||||
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 = {
|
||||
# Overwrite if there is a more specific Reason
|
||||
root = {
|
||||
|
|
@ -3324,9 +3430,9 @@ on_title_gain = {
|
|||
# if = {
|
||||
# limit = {
|
||||
# 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 ?= {
|
||||
# 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 = {
|
||||
# scope:transfer_type = flag:created
|
||||
|
|
@ -3345,9 +3451,9 @@ on_title_gain = {
|
|||
# limit = {
|
||||
# scope:title.tier = tier_county
|
||||
# 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 ?= {
|
||||
# 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 = {
|
||||
# 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 = {
|
||||
roman_restoration.0005 #New Roman Emperor gets Augustus trait. (old holder, if still alive, loses it)
|
||||
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. roman_restoration.0005 #New Roman Emperor gets Augustus trait. (old holder, if still alive, loses it)
|
||||
# NEOW 2555: event not loaded. roman_restoration.0199 #Restoring the Pentarchy.
|
||||
# NEOW 2555: event not loaded. title_event.0021 # Rename/recolor Britannia based on founder's culture; applied immediately on creation
|
||||
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
|
||||
british_isles.1032 # Danelaw-England partition calc.
|
||||
title_event.0001 # Rename West Francia to France
|
||||
title_event.0002 # Rename East Francia to Germany
|
||||
title_event.0011 # Asturias becomes Leon upon emergence of Castille
|
||||
# NEOW 2555: event not loaded. british_isles.1032 # Danelaw-England partition calc.
|
||||
# NEOW 2555: event not loaded. title_event.0001 # Rename West Francia to France
|
||||
# NEOW 2555: event not loaded. title_event.0002 # Rename East Francia to Germany
|
||||
# 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.
|
||||
diarchy.0011
|
||||
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
|
||||
gdp_merchant_family.9010 # Merhcant child
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3475,30 +3631,22 @@ on_title_gain_inheritance = {
|
|||
becomes_independent = { change = scope:change }
|
||||
}
|
||||
}
|
||||
# if = {
|
||||
# limit = {
|
||||
# scope:title = {
|
||||
# OR = {
|
||||
# this = title:e_mongol_empire
|
||||
# AND = {
|
||||
# exists = global_var:greatest_of_khans_title
|
||||
# this = global_var:greatest_of_khans_title
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# has_character_flag = gain_mongol_succession_dread
|
||||
# }
|
||||
# add_dread = 50
|
||||
# }
|
||||
# else_if = {
|
||||
# limit = {
|
||||
# OR = {
|
||||
# scope:title = title:h_roman_empire
|
||||
# scope:title = title:h_eastern_roman_empire
|
||||
# }
|
||||
# }
|
||||
# set_variable = uses_custom_caesar_flavourization
|
||||
# }
|
||||
|
||||
#########
|
||||
# GDP #
|
||||
#########
|
||||
gdp_merchant_patron_change_on_title_transfer_effect = yes
|
||||
# CE3 achievement: Where There's a Will — inherited from the murdered cleric
|
||||
if = {
|
||||
limit = {
|
||||
exists = var:ce3_will_victim
|
||||
scope:previous_holder ?= var:ce3_will_victim
|
||||
}
|
||||
add_achievement_global_variable_effect = {
|
||||
VARIABLE = ce3_13_where_theres_a_will_achievement_unlocked
|
||||
VALUE = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3622,7 +3770,11 @@ on_title_gain_usurpation = {
|
|||
# scope:new_holder = new holder.
|
||||
on_title_lost = {
|
||||
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 = {
|
||||
|
|
@ -3874,6 +4026,31 @@ on_title_lost = {
|
|||
# EP3 LAAMP SUPPORTER INVALIDATION
|
||||
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
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -4198,61 +4375,62 @@ on_title_lost = {
|
|||
# BP3 - Inspector perks cleanup effect
|
||||
landless_inspector_cleanup_modifier = yes
|
||||
|
||||
#End Greatest of Khans story if title was lost
|
||||
if = {
|
||||
limit = {
|
||||
any_owned_story = {
|
||||
story_type = story_greatest_of_khans
|
||||
}
|
||||
global_var:greatest_of_khans_title ?= {
|
||||
this = scope:title
|
||||
}
|
||||
OR = {
|
||||
NOT = {
|
||||
exists = scope:new_holder
|
||||
}
|
||||
scope:new_holder = {
|
||||
NOR = {
|
||||
AND = {
|
||||
exists = dynasty
|
||||
dynasty ?= root.dynasty
|
||||
}
|
||||
is_grandchild_of = root
|
||||
is_child_of = root
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
is_alive = yes
|
||||
}
|
||||
trigger_event = {
|
||||
id = mpo_greatest_of_khans.0040
|
||||
days = 1
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
exists = root.player_heir
|
||||
exists = root.dynasty
|
||||
player_heir.dynasty ?= root.dynasty
|
||||
}
|
||||
player_heir ?= {
|
||||
trigger_event = {
|
||||
id = mpo_greatest_of_khans.0040
|
||||
days = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
else = {
|
||||
every_owned_story = {
|
||||
limit = { story_type = story_greatest_of_khans }
|
||||
end_story = yes
|
||||
}
|
||||
remove_character_modifier = the_great_khan_modifier
|
||||
}
|
||||
}
|
||||
# NEOW 2555: disabled Great Khan event has no live title-transfer hook.
|
||||
#End Greatest of Khans story if title was lost
|
||||
# if = {
|
||||
# limit = {
|
||||
# any_owned_story = {
|
||||
# story_type = story_greatest_of_khans
|
||||
# }
|
||||
# global_var:greatest_of_khans_title ?= {
|
||||
# this = scope:title
|
||||
# }
|
||||
# OR = {
|
||||
# NOT = {
|
||||
# exists = scope:new_holder
|
||||
# }
|
||||
# scope:new_holder = {
|
||||
# NOR = {
|
||||
# AND = {
|
||||
# exists = dynasty
|
||||
# dynasty ?= root.dynasty
|
||||
# }
|
||||
# is_grandchild_of = root
|
||||
# is_child_of = root
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# if = {
|
||||
# limit = {
|
||||
# is_alive = yes
|
||||
# }
|
||||
# trigger_event = {
|
||||
# id = mpo_greatest_of_khans.0040
|
||||
# days = 1
|
||||
# }
|
||||
# }
|
||||
# else_if = {
|
||||
# limit = {
|
||||
# exists = root.player_heir
|
||||
# exists = root.dynasty
|
||||
# player_heir.dynasty ?= root.dynasty
|
||||
# }
|
||||
# player_heir ?= {
|
||||
# trigger_event = {
|
||||
# id = mpo_greatest_of_khans.0040
|
||||
# days = 1
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# else = {
|
||||
# every_owned_story = {
|
||||
# limit = { story_type = story_greatest_of_khans }
|
||||
# end_story = yes
|
||||
# }
|
||||
# remove_character_modifier = the_great_khan_modifier
|
||||
# }
|
||||
# }
|
||||
#Coronation loyalty modifier
|
||||
if = {
|
||||
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 = {
|
||||
limit = {
|
||||
|
|
@ -4440,18 +4638,79 @@ on_title_lost = {
|
|||
#########
|
||||
# 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 = {
|
||||
# limit = {
|
||||
# scope:title = {
|
||||
# has_clerical_region = yes
|
||||
# root = { religion = religion:christianity_religion }
|
||||
# scope:new_holder = { NOT = { religion = religion:christianity_religion } }
|
||||
# }
|
||||
# game_start_date = 1178.10.1
|
||||
# scope:new_holder = { is_from_ruler_designer = yes }
|
||||
# }
|
||||
# situation:the_christian_church.situation_sub_region:core = {
|
||||
# remove_clerical_realm_from_sub_region = scope:landed_title
|
||||
# #Ghibellines/HRE
|
||||
# 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
|
||||
}
|
||||
}
|
||||
### 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.
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -5530,9 +5837,58 @@ on_realm_capital_change = {
|
|||
if = {
|
||||
limit = {
|
||||
is_landed = no
|
||||
is_in_army = no
|
||||
is_travelling = no
|
||||
NOT = { exists = involved_activity }
|
||||
should_in_default_location_trigger = yes
|
||||
}
|
||||
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
|
||||
}
|
||||
|
|
@ -5548,3 +5904,68 @@ on_realm_capital_change = {
|
|||
# Not called if new primary title is the same as the previous primary title
|
||||
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 = {
|
||||
mpo_special_flavor_events.0001
|
||||
gdp_travel_events.2000
|
||||
}
|
||||
|
||||
# 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
|
||||
# Wandering Lifestyle XP
|
||||
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
|
||||
traveler_progress_point_gain_effect = { CHANGE = 1 RANDOM_CHANGE = 1 }
|
||||
# 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
|
||||
}
|
||||
# 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
|
||||
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
|
||||
100 = travel_danger_events.9030 # Rain: delay
|
||||
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.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
|
||||
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 = travel_events.3020 #A warm welcome
|
||||
}
|
||||
events = {
|
||||
gdp_travel_events.2000
|
||||
}
|
||||
effect = {
|
||||
# Achievements.
|
||||
if = {
|
||||
|
|
@ -1167,6 +1222,8 @@ on_travel_plan_arrival = {
|
|||
|
||||
# Visited Points of Interest tracker, currently only for Adventurers
|
||||
points_of_interest_tracker_effect = yes
|
||||
|
||||
gdp_merchant_legacy_4_visit_entrepot_effect = yes
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1217,6 +1274,29 @@ on_travel_plan_start = {
|
|||
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
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -1460,6 +1540,8 @@ on_travel_plan_start = {
|
|||
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.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
|
||||
}
|
||||
first_valid = {
|
||||
pilgrimage.9010 #Bury the old host after finishing the Pilgrimage
|
||||
pilgrimage.9001 #Nice Spiritual Journey
|
||||
# NEOW 2555: event not loaded. pilgrimage.9010 #Bury the old host after finishing the Pilgrimage
|
||||
# NEOW 2555: event not loaded. pilgrimage.9001 #Nice Spiritual Journey
|
||||
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?
|
||||
travel_completion_event.1000
|
||||
}
|
||||
events = {
|
||||
ep3_laamps.9971
|
||||
gdp_travel_events.2000
|
||||
}
|
||||
|
||||
effect = {
|
||||
|
|
@ -1578,6 +1661,13 @@ on_travel_plan_complete = {
|
|||
# Roaming flag
|
||||
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.
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -1589,6 +1679,30 @@ on_travel_plan_complete = {
|
|||
left_icon = root
|
||||
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.
|
||||
player_adventurer_contract_generation_on_wait_in_place_effect = yes
|
||||
# Generate contracts if you are far away from your previous location.
|
||||
|
|
@ -1814,6 +1928,8 @@ on_travel_plan_abort = {
|
|||
of_the_people_effect = yes
|
||||
# Wayfarer Stress Loss
|
||||
wayfarer_the_home_away_from_home_modifier_effect = yes
|
||||
# Merchant Souvenirs Aplenty cleanup
|
||||
merchant_souvenirs_aplenty_clear_effect = yes
|
||||
# Remove Excursion modifier
|
||||
destination_remove_excursion_modifier_effect = yes
|
||||
# Roaming flag
|
||||
|
|
@ -1822,6 +1938,13 @@ on_travel_plan_abort = {
|
|||
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 = {
|
||||
limit = {
|
||||
current_travel_plan = { is_travel_with_domicile = yes }
|
||||
|
|
@ -1883,6 +2006,9 @@ on_travel_plan_abort = {
|
|||
#Invalidate Mandala Contracts
|
||||
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
|
||||
requested_tribute_mission_penalty_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.
|
||||
on_travel_plan_cancel = {
|
||||
effect = {
|
||||
merchant_souvenirs_aplenty_clear_effect = yes
|
||||
if = {
|
||||
limit = { has_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
|
||||
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
|
||||
requested_tribute_mission_penalty_effect = yes
|
||||
tribute_mission_clean_up_variables_effect = yes
|
||||
|
|
|
|||
|
|
@ -1162,7 +1162,7 @@ on_war_started = {
|
|||
scope:attacker = {
|
||||
has_pam_dlc_trigger = yes
|
||||
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
|
||||
}
|
||||
scope:war = { # They have their own catalysts
|
||||
|
|
@ -1208,7 +1208,7 @@ on_war_started = {
|
|||
}
|
||||
}
|
||||
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 = {
|
||||
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
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
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
|
||||
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
|
||||
}
|
||||
NOT = { has_character_flag = recently_got_pam_christian_event }
|
||||
pam_secular_faith_clergy_ok_actor_trigger = yes
|
||||
}
|
||||
weight_multiplier = {
|
||||
base = 1
|
||||
|
|
|
|||
|
|
@ -298,6 +298,7 @@ yearly_global_pulse = {
|
|||
on_actions = {
|
||||
inspiration_maintenance_global_pulse
|
||||
natural_disaster_maintenance_global_pulse
|
||||
gdp_merchant_population_global_pulse
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -556,6 +557,8 @@ yearly_playable_pulse = {
|
|||
if = {
|
||||
limit = {
|
||||
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
|
||||
}
|
||||
|
|
@ -916,6 +919,127 @@ yearly_playable_pulse = {
|
|||
}
|
||||
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
|
||||
hidden_effect = {
|
||||
|
|
@ -1936,7 +2060,7 @@ yearly_playable_pulse = {
|
|||
weight = {
|
||||
base = 1
|
||||
modifier = {
|
||||
divide = development_level
|
||||
divide = prosperity_level
|
||||
}
|
||||
modifier = {
|
||||
divide = county_control
|
||||
|
|
@ -1977,12 +2101,22 @@ yearly_playable_pulse = {
|
|||
events = {
|
||||
court_maintenance.0012 # Dynasty banner improves with renown
|
||||
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 = {
|
||||
ai_character_pulse
|
||||
delay = { days = 75 }
|
||||
|
||||
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 = {
|
||||
events = {
|
||||
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 = {
|
||||
# 800 = 0
|
||||
|
|
@ -2277,6 +2416,31 @@ three_year_playable_pulse = {
|
|||
}
|
||||
}
|
||||
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_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 = {
|
||||
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
|
||||
6 = ep3_yearly_events_admin
|
||||
6 = NEOW_yearly_flavor_events
|
||||
6 = tgp_japan_yearly_events
|
||||
6 = tgp_china_yearly_events
|
||||
3 = tgp_mandala_yearly_events
|
||||
# 6 = tgp_japan_yearly_events # NEOW 2555: removed East/South Asian regions
|
||||
# 6 = tgp_china_yearly_events # NEOW 2555: removed East/South Asian regions
|
||||
# 3 = tgp_mandala_yearly_events # NEOW 2555: removed East/South Asian regions
|
||||
6 = ongoing_house_feud_events
|
||||
10 = mpo_yearly_events_nomads
|
||||
6 = gdp_merchant_yearly_events
|
||||
}
|
||||
effect = {
|
||||
# Special Holy Seeds drops
|
||||
|
|
@ -2729,9 +2901,9 @@ random_yearly_everyone_pulse = {
|
|||
house_feud_ai_scheme_pulse
|
||||
}
|
||||
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
|
||||
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 = {
|
||||
500 = 0
|
||||
|
|
@ -2912,6 +3084,10 @@ three_year_pool_pulse = {
|
|||
}
|
||||
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
|
||||
|
|
@ -2980,14 +3156,7 @@ on_yearly_common_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 = {
|
||||
random_events = {
|
||||
|
|
@ -3833,43 +4002,43 @@ on_yearly_events = {
|
|||
# 200 = tgp_dynastic_cycle_events.0050 # Debate the Favoured Movement and get ahead of them
|
||||
|
||||
# TGP - Confucianism Events
|
||||
250 = tgp_china_yearly.0001 # Charitable Acts
|
||||
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.0015 # Settle merchant dispute
|
||||
250 = tgp_china_yearly.0020 # County has unpaid back-taxes
|
||||
# 250 = tgp_china_yearly.0001 # Charitable Acts
|
||||
# 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.0015 # Settle merchant dispute
|
||||
# 250 = tgp_china_yearly.0020 # County has unpaid back-taxes
|
||||
|
||||
100 = tgp_japan_yearly_events.0001 # 0001 - Spreading Joy - furoshiki
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
10 = tgp_japan_yearly_events.1090 # 1090 - Growing old with no heir
|
||||
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.0001 # 0001 - Spreading Joy - furoshiki
|
||||
# 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
|
||||
# 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
|
||||
# 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
|
||||
# 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
|
||||
# 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
|
||||
# 10 = tgp_japan_yearly_events.1090 # 1090 - Growing old with no heir
|
||||
# 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
|
||||
#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
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
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.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.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.1260 #1260 - Begin a journey of poetic discovery
|
||||
# 10 = tgp_japan_yearly_events.1090 # 1090 - Growing old with no heir
|
||||
# 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
|
||||
# 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
|
||||
# 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
|
||||
# 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
|
||||
# 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.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.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.1260 #1260 - Begin a journey of poetic discovery
|
||||
|
||||
# TGP- Mandala Events
|
||||
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
|
||||
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
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
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
|
||||
@normal_cost_base = 60
|
||||
@expensive_cost_base = 90
|
||||
@very_expensive_cost_base = @[expensive_cost_base * 2]
|
||||
@main_cost_base = 100
|
||||
@main_cost_new_holding = 200
|
||||
@tribal_cost_base = 15
|
||||
|
|
@ -346,6 +347,7 @@
|
|||
@cheap_cost_scale_addition_per_tier = 15
|
||||
@normal_cost_scale_addition_per_tier = 30
|
||||
@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
|
||||
@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_3_threshold = 30
|
||||
traveler_rank_up_4_threshold = 40
|
||||
|
|
|
|||
|
|
@ -1058,4 +1058,168 @@ ai_overlord_defensive_power_impact = {
|
|||
add = -0.2
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
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
|
||||
subtract = 2
|
||||
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 = {
|
||||
has_holding = no
|
||||
has_ongoing_construction = no
|
||||
has_ongoing_holding_construction = no
|
||||
}
|
||||
begin_create_holding = church_holding
|
||||
save_scope_as = province
|
||||
|
|
@ -1044,9 +1044,9 @@ take_vows_demand_effect = {
|
|||
has_trait = bastard
|
||||
}
|
||||
}
|
||||
set_relation_rival = {
|
||||
target = scope:puppet_or_actor
|
||||
reason = rival_forced_to_take_vows
|
||||
set_relation_rival_effect = {
|
||||
TARGET = scope:puppet_or_actor
|
||||
REASON = rival_forced_to_take_vows
|
||||
}
|
||||
}
|
||||
else = {
|
||||
|
|
@ -3794,6 +3794,10 @@ monastic_lease_swapping_effect = {
|
|||
}
|
||||
any_leased_title = {
|
||||
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
|
||||
}
|
||||
|
|
@ -3803,6 +3807,10 @@ monastic_lease_swapping_effect = {
|
|||
}
|
||||
any_leased_title = {
|
||||
monastic_lease_can_be_suborned_trigger = { ORDER = scope:holy_order }
|
||||
holder ?= {
|
||||
primary_title.tier > tier_barony
|
||||
domain_size > 1
|
||||
}
|
||||
}
|
||||
}
|
||||
save_scope_as = target_order
|
||||
|
|
@ -3813,6 +3821,10 @@ monastic_lease_swapping_effect = {
|
|||
}
|
||||
limit = {
|
||||
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 = {
|
||||
county = scope:target_order.leader.capital_county
|
||||
}
|
||||
|
|
@ -3833,6 +3845,10 @@ monastic_lease_swapping_effect = {
|
|||
}
|
||||
limit = {
|
||||
monastic_lease_can_be_suborned_trigger = { ORDER = scope:holy_order }
|
||||
holder ?= {
|
||||
primary_title.tier > tier_barony
|
||||
domain_size > 1
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
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
|
||||
}
|
||||
else_if = {
|
||||
|
|
|
|||
|
|
@ -14590,6 +14590,8 @@ abduct_outcome_roll_effect = {
|
|||
random = {
|
||||
chance = scope:discovery_chance
|
||||
custom_tooltip = abduct_become_discovered_roll_tt
|
||||
#Guelphs & Ghibellines
|
||||
gg_failed_scheme_effect = { SCHEME = abduct }
|
||||
save_scope_value_as = {
|
||||
name = scheme_discovered
|
||||
value = yes
|
||||
|
|
@ -14675,6 +14677,13 @@ abduct_success_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
|
||||
scope:target = {
|
||||
show_as_tooltip = {
|
||||
|
|
|
|||
|
|
@ -1757,7 +1757,6 @@ purchase_land_interaction_shortened_effect = {
|
|||
if = {
|
||||
limit = { character:90028 ?= this }
|
||||
custom_tooltip = ep3_story_cycle_harrying.3053.b.tt
|
||||
add_character_flag = hereward_settled_flag
|
||||
}
|
||||
show_as_tooltip = {
|
||||
if = {
|
||||
|
|
|
|||
|
|
@ -94,6 +94,41 @@ ai_has_warlike_personality = {
|
|||
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.
|
||||
has_variable = imperial_expedition_charged
|
||||
#Or our Devaraja decrees it
|
||||
|
|
|
|||
|
|
@ -1657,6 +1657,16 @@ portrait_italian_clothing_spouse_trigger = {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### GDP ###
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### General clothing triggers ###
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
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 = {
|
||||
OR = {
|
||||
scope:culture = { has_coa_gfx = french_coa_gfx }
|
||||
|
|
|
|||
|
|
@ -423,13 +423,13 @@ employer_has_treasury_to_offer_job_trigger = {
|
|||
scope:employer = {
|
||||
OR = {
|
||||
treasury_or_gold >= {
|
||||
value = 50
|
||||
value = 15
|
||||
multiply = task_contract_employer_tier_gold_multiplier_value
|
||||
}
|
||||
trigger_if = {
|
||||
limit = { government_allows = barter }
|
||||
barter_goods >= {
|
||||
value = 50
|
||||
value = 15
|
||||
multiply = task_contract_employer_tier_gold_multiplier_value
|
||||
# wanua rulers start with lower than 100 barter goods
|
||||
# divide = define:NBarter|BARTER_GOODS_TO_LOOT_MULT
|
||||
|
|
|
|||
|
|
@ -89,8 +89,6 @@ temperate_seasons_trigger = {
|
|||
geographical_region = world_europe
|
||||
geographical_region = world_asia_minor
|
||||
geographical_region = world_middle_east
|
||||
geographical_region = world_india_rajastan
|
||||
geographical_region = world_india_bengal
|
||||
geographical_region = world_africa_north
|
||||
geographical_region = world_steppe
|
||||
geographical_region = world_tibet
|
||||
|
|
|
|||
|
|
@ -22,6 +22,27 @@ fp2_character_uninvolved_in_struggle_trigger = {
|
|||
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 = {
|
||||
has_fp2_dlc_trigger = yes
|
||||
dynasty.dynast = {
|
||||
|
|
@ -42,7 +63,7 @@ eligible_for_fp2_dynasty_legacies_trigger = {
|
|||
}
|
||||
|
||||
|
||||
#is_toledo_ownership_valid_trigger = {
|
||||
is_toledo_ownership_valid_trigger = {
|
||||
always = no
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -403,3 +403,36 @@ ep3_orthodox_faith_trigger = {
|
|||
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 = {
|
||||
has_pam_dlc_trigger = yes
|
||||
is_landless_adventurer = no
|
||||
is_landless_merchant = no
|
||||
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.
|
||||
pam_sell_claim_target_in_own_clerical_region_trigger = {
|
||||
exists = $TARGET$.clerical_region_title
|
||||
any_held_title = {
|
||||
has_clerical_region = yes
|
||||
this = $TARGET$.clerical_region_title
|
||||
}
|
||||
$TARGET$.clerical_region_title.holder ?= this
|
||||
$TARGET$.clerical_region_title = { has_clerical_region = yes }
|
||||
}
|
||||
|
||||
# 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 = {
|
||||
has_pam_dlc_trigger = yes
|
||||
is_landless_adventurer = no
|
||||
is_landless_merchant = no
|
||||
highest_held_title_tier >= tier_duchy
|
||||
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 = {
|
||||
|
|
@ -842,13 +844,10 @@ is_valid_cathedral_upgrade_spot_in_province_trigger = {
|
|||
custom_tooltip = {
|
||||
text = great_project_cathedral_01_required_for_upgrade_tt
|
||||
has_building = great_project_cathedral_01
|
||||
NOT = { has_building = great_project_cathedral_02 }
|
||||
NOT = { has_building = great_project_cathedral_03 }
|
||||
}
|
||||
custom_tooltip = {
|
||||
text = no_cathedral_upgrade_in_progress_tt
|
||||
NOR = {
|
||||
has_building = great_project_cathedral_under_construction
|
||||
any_great_project_in_province = {
|
||||
OR = {
|
||||
great_project_type = pam_cathedral_01
|
||||
|
|
@ -864,12 +863,10 @@ is_valid_cathedral_tier_3_upgrade_spot_in_province_trigger = {
|
|||
custom_tooltip = {
|
||||
text = great_project_cathedral_02_required_for_tier_3_upgrade_tt
|
||||
has_building = great_project_cathedral_02
|
||||
NOT = { has_building = great_project_cathedral_03 }
|
||||
}
|
||||
custom_tooltip = {
|
||||
text = no_cathedral_upgrade_in_progress_tt
|
||||
NOR = {
|
||||
has_building = great_project_cathedral_under_construction
|
||||
any_great_project_in_province = {
|
||||
OR = {
|
||||
great_project_type = pam_cathedral_01
|
||||
|
|
@ -896,14 +893,20 @@ has_accessible_cathedral_tier_2_upgrade_site_trigger = {
|
|||
}
|
||||
}
|
||||
trigger_else = {
|
||||
# Matches the actual clerical_region_theocracy_capitals province filter
|
||||
faith = {
|
||||
any_faith_ruler = {
|
||||
highest_held_title_tier >= tier_county
|
||||
any_realm_county = {
|
||||
any_county_province = {
|
||||
is_valid_cathedral_upgrade_spot_in_province_trigger = yes
|
||||
save_temporary_scope_as = cathedral_faith_temp
|
||||
OR = {
|
||||
any_clerical_region_title = {
|
||||
holder ?= {
|
||||
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 = {
|
||||
# Same as above
|
||||
faith = {
|
||||
any_faith_ruler = {
|
||||
highest_held_title_tier >= tier_county
|
||||
any_realm_county = {
|
||||
any_county_province = {
|
||||
is_valid_cathedral_tier_3_upgrade_spot_in_province_trigger = yes
|
||||
save_temporary_scope_as = cathedral_faith_temp
|
||||
OR = {
|
||||
any_clerical_region_title = {
|
||||
holder ?= {
|
||||
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 = {
|
||||
save_temporary_scope_as = monastic_county
|
||||
OR = {
|
||||
clerical_region_title.holder ?= $CHARACTER$
|
||||
$CHARACTER$ = {
|
||||
any_sub_realm_county = {
|
||||
this = scope:monastic_county
|
||||
}
|
||||
}
|
||||
clerical_region_title.holder ?= $CHARACTER$
|
||||
}
|
||||
}
|
||||
county = {
|
||||
|
|
@ -1273,13 +1282,23 @@ can_have_realm_priest_puppet_trigger = {
|
|||
rite = { rite_has_doctrine = doctrine_theocracy_temporal }
|
||||
is_clergy = 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 = {
|
||||
has_pam_dlc_trigger = yes
|
||||
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
|
||||
|
|
@ -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 = {
|
||||
OR = {
|
||||
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
|
||||
trigger_if = {
|
||||
limit = { is_playable_character = yes }
|
||||
exists = puppet:theological_agent_puppet
|
||||
OR = {
|
||||
exists = puppet:theological_agent_puppet
|
||||
exists = puppet:external_theological_agent_puppet
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
always = no
|
||||
|
|
@ -1457,11 +1479,11 @@ ecumenical_shareable_unknown_tenet_for_root_trigger = {
|
|||
|
||||
pam_request_legitimacy_priest_trigger = {
|
||||
this != $CHARACTER$
|
||||
OR = {
|
||||
$CHARACTER$.religious_head_or_challenger = this
|
||||
government_has_flag = government_is_ecclesiastical
|
||||
}
|
||||
faith = $CHARACTER$.faith
|
||||
OR = {
|
||||
government_has_flag = government_is_ecclesiastical
|
||||
$CHARACTER$.religious_head_or_challenger = this
|
||||
}
|
||||
}
|
||||
|
||||
pam_ecclesiastical_superior_or_subordinate_trigger = {
|
||||
|
|
@ -1656,6 +1678,27 @@ pam_grants_own_divorce_trigger = {
|
|||
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 = {
|
||||
rite = {
|
||||
NOR = {
|
||||
|
|
@ -1870,12 +1913,13 @@ pam_ai_deposable_cleric_trigger = {
|
|||
pam_beseech_claims_access_trigger = {
|
||||
has_pam_dlc_trigger = yes
|
||||
pam_clergy_interactions_faith_trigger = yes
|
||||
NOT = {
|
||||
NOR = {
|
||||
government_has_flag = government_is_ecclesiastical
|
||||
government_has_flag = government_is_republic
|
||||
}
|
||||
}
|
||||
pam_actor_rite_has_core_simony_trigger = {
|
||||
scope:actor = {
|
||||
scope:puppet_or_actor = {
|
||||
rite = {
|
||||
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
|
||||
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 = {
|
||||
$ACTOR$.capital_county.clerical_region_title ?= {
|
||||
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
|
||||
# We only apply this to the AI, so players keep the full list
|
||||
pam_tenet_ai_may_permit_trigger = {
|
||||
|
|
@ -2751,6 +2807,7 @@ pam_tenet_ai_may_permit_trigger = {
|
|||
OR = {
|
||||
pam_tenet_is_christological_heresy_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$ }
|
||||
|
|
@ -2761,6 +2818,7 @@ pam_tenet_ai_may_permit_trigger = {
|
|||
}
|
||||
|
||||
pam_tenet_ai_may_prohibit_trigger = {
|
||||
NOT = { tenet_is_intrinsic_to_faith_trigger = { FAITH = $CHARACTER$.faith } }
|
||||
trigger_if = {
|
||||
limit = {
|
||||
$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_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
|
||||
|
|
@ -2778,6 +2837,68 @@ pam_tenet_ai_should_purge_trigger = {
|
|||
pam_tenet_is_christian_abomination_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 = {
|
||||
|
|
@ -2836,11 +2957,54 @@ pam_faith_tenet_is_core_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 = {
|
||||
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
|
||||
|
|
@ -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
|
||||
pam_catholic_hof_weak_papal_state_control_trigger = {
|
||||
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 = {
|
||||
faith = { save_temporary_scope_as = temp_faith }
|
||||
any_personal_tenet = {
|
||||
|
|
@ -3139,6 +3340,78 @@ pam_ai_can_consider_forbidden_personal_tenet_trigger = {
|
|||
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 = {
|
||||
OR = {
|
||||
religion = religion:catholic_religion
|
||||
|
|
@ -4658,7 +4931,7 @@ pam_valid_excommunication_target_trigger = {
|
|||
trigger_else = {
|
||||
custom_tooltip = {
|
||||
text = bishop_excommunication_target_wanderer_tt
|
||||
location.county = {
|
||||
location.county ?= {
|
||||
OR = {
|
||||
holder ?= {
|
||||
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 = {
|
||||
custom_description = {
|
||||
text = incite_claim_war_attacker_must_share_faith_tt
|
||||
object = scope:puppet_or_actor
|
||||
faith = scope:puppet_or_actor.faith
|
||||
}
|
||||
custom_description = {
|
||||
|
|
@ -4929,6 +5203,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
|||
}
|
||||
custom_description = {
|
||||
text = incite_claim_war_attacker_must_be_strong_enough_tt
|
||||
object = $RECIPIENT$
|
||||
current_military_strength >= $RECIPIENT$.one_tenth_current_military_strength
|
||||
}
|
||||
custom_description = {
|
||||
|
|
@ -4943,6 +5218,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
|||
}
|
||||
custom_description = {
|
||||
text = incite_claim_war_attacker_must_not_be_blocked_diplomacy_tt
|
||||
object = $RECIPIENT$
|
||||
NOR = {
|
||||
this = scope:puppet_or_actor
|
||||
this = $RECIPIENT$
|
||||
|
|
@ -4958,6 +5234,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
|||
}
|
||||
custom_description = {
|
||||
text = incite_claim_war_attacker_liege_not_at_war_tt
|
||||
object = $RECIPIENT$
|
||||
NOT = {
|
||||
any_liege_or_above = {
|
||||
is_at_war_with = $RECIPIENT$
|
||||
|
|
@ -4966,6 +5243,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
|||
}
|
||||
custom_description = {
|
||||
text = incite_claim_war_attacker_must_have_claim_on_recipient_tt
|
||||
object = $RECIPIENT$
|
||||
any_claim = {
|
||||
tier >= tier_county
|
||||
tier <= tier_kingdom
|
||||
|
|
@ -4979,6 +5257,7 @@ claim_war_incited_attacker_can_be_picked_trigger = {
|
|||
limit = { exists = scope:target }
|
||||
custom_description = {
|
||||
text = incite_claim_war_attacker_must_have_claim_on_target_tt
|
||||
object = scope:target
|
||||
has_claim_on = scope:target
|
||||
}
|
||||
}
|
||||
|
|
@ -5694,7 +5973,13 @@ pam_college_election_title_has_electors_trigger = {
|
|||
faith.religious_head_title = { any_elector = {} }
|
||||
}
|
||||
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$
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
trigger_else_if = {
|
||||
limit = { title:k_papal_state = { any_elector = {} } }
|
||||
is_candidate_from_set = {
|
||||
title = title:k_papal_state
|
||||
source = $SOURCE$
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
is_candidate_from_set = {
|
||||
title = title:k_papal_state.holder.primary_title
|
||||
source = $SOURCE$
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_else = { # Error log suppressing
|
||||
always = no
|
||||
|
|
@ -6253,10 +6545,36 @@ target_valid_request_unformed_title_trigger = {
|
|||
}
|
||||
|
||||
pam_personal_pacifism_offensive_war_ban_trigger = {
|
||||
custom_tooltip = {
|
||||
text = pam_personal_pacifism_offensive_war_ban_tt
|
||||
scope:attacker = {
|
||||
NOT = { has_personal_tenet_flag = tenet_pacifism_no_offensive_war }
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:attacker = {
|
||||
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.
|
||||
pam_personal_syncretism_exile_rite_trigger = {
|
||||
exists = var:converted_development
|
||||
var:converted_development >= 1
|
||||
exists = var:converted_prosperity
|
||||
var:converted_prosperity >= 1
|
||||
NOT = { rite_has_parameter = unreformed }
|
||||
exists = var:associated_culture
|
||||
exists = var:associated_county
|
||||
|
|
@ -7404,6 +7722,27 @@ can_send_make_external_ruler_puppet_trigger = {
|
|||
exists = $RECIPIENT$.rite.head_of_rite
|
||||
$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$ = {
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
any_desired_tenet = {
|
||||
only_positive = yes
|
||||
|
|
|
|||
|
|
@ -1,34 +1,35 @@
|
|||
### Exists so we can track Ali or any subsequent Zanj Leaders.
|
||||
story_zanj_rebellion = {
|
||||
# NEOW 2555: Historical Zanj rebellion story (original source retained as comments).
|
||||
### Exists so we can track Ali or any subsequent Zanj Leaders.
|
||||
#story_zanj_rebellion = {
|
||||
|
||||
on_setup = {
|
||||
story_owner = {
|
||||
set_variable = {
|
||||
name = zanj_rebellion_strength_score
|
||||
value = 7
|
||||
}
|
||||
}
|
||||
}
|
||||
on_owner_death = {
|
||||
inherit_zanj_rebellion_effect = yes
|
||||
}
|
||||
on_end = {}
|
||||
# on_setup = {
|
||||
# story_owner = {
|
||||
# set_variable = {
|
||||
# name = zanj_rebellion_strength_score
|
||||
# value = 7
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# on_owner_death = {
|
||||
# inherit_zanj_rebellion_effect = yes
|
||||
# }
|
||||
# on_end = {}
|
||||
|
||||
#Maintenance group
|
||||
effect_group = {
|
||||
days = 1
|
||||
trigger = {
|
||||
story_owner = { is_landed = no }
|
||||
}
|
||||
triggered_effect = {
|
||||
trigger = { always = yes }
|
||||
effect = {
|
||||
#You became a landless adventurer/administrative! Ending story prematurely.
|
||||
story_owner = { save_scope_as = story_owner }
|
||||
debug_log = "Zanj invalidated"
|
||||
debug_log_scopes = yes
|
||||
end_story = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# #Maintenance group
|
||||
# effect_group = {
|
||||
# days = 1
|
||||
# trigger = {
|
||||
# story_owner = { is_landed = no }
|
||||
# }
|
||||
# triggered_effect = {
|
||||
# trigger = { always = yes }
|
||||
# effect = {
|
||||
# #You became a landless adventurer/administrative! Ending story prematurely.
|
||||
# story_owner = { save_scope_as = story_owner }
|
||||
# debug_log = "Zanj invalidated"
|
||||
# debug_log_scopes = yes
|
||||
# end_story = yes
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
#}
|
||||
|
|
@ -1,265 +1,266 @@
|
|||
story_greatest_of_khans = {
|
||||
visible = yes
|
||||
icon = {
|
||||
trigger = {
|
||||
always = yes
|
||||
}
|
||||
reference = "gfx/interface/icons/story_cycles/bow_steppe.dds"
|
||||
}
|
||||
background = {
|
||||
reference = "gfx/interface/illustrations/event_scenes/mpo_steppe_evening.dds"
|
||||
}
|
||||
visualization = {
|
||||
custom_string_key = "GREATEST_OF_KHANS_INFORMATION_STRING"
|
||||
decisions = { mpo_gok_world_conquest_decision }
|
||||
}
|
||||
# NEOW 2555: Great Khan historical story that invokes Mongol event IDs (original source retained as comments).
|
||||
#story_greatest_of_khans = {
|
||||
# visible = yes
|
||||
# icon = {
|
||||
# trigger = {
|
||||
# always = yes
|
||||
# }
|
||||
# reference = "gfx/interface/icons/story_cycles/bow_steppe.dds"
|
||||
# }
|
||||
# background = {
|
||||
# reference = "gfx/interface/illustrations/event_scenes/mpo_steppe_evening.dds"
|
||||
# }
|
||||
# visualization = {
|
||||
# custom_string_key = "GREATEST_OF_KHANS_INFORMATION_STRING"
|
||||
# decisions = { mpo_gok_world_conquest_decision }
|
||||
# }
|
||||
|
||||
on_setup = {
|
||||
if = {
|
||||
limit = {
|
||||
NOT = {
|
||||
has_mpo_dlc_trigger = yes
|
||||
}
|
||||
}
|
||||
end_story = yes
|
||||
}
|
||||
else = {
|
||||
set_global_variable = {
|
||||
name = gok_empire_crumble_date
|
||||
value = {
|
||||
value = current_year
|
||||
add = 75
|
||||
}
|
||||
}
|
||||
set_variable = {
|
||||
name = gok_final_date
|
||||
value = {
|
||||
value = current_year
|
||||
add = 75
|
||||
}
|
||||
}
|
||||
set_global_variable = {
|
||||
name = first_gok
|
||||
value = story_owner
|
||||
}
|
||||
# on_setup = {
|
||||
# if = {
|
||||
# limit = {
|
||||
# NOT = {
|
||||
# has_mpo_dlc_trigger = yes
|
||||
# }
|
||||
# }
|
||||
# end_story = yes
|
||||
# }
|
||||
# else = {
|
||||
# set_global_variable = {
|
||||
# name = gok_empire_crumble_date
|
||||
# value = {
|
||||
# value = current_year
|
||||
# add = 75
|
||||
# }
|
||||
# }
|
||||
# set_variable = {
|
||||
# name = gok_final_date
|
||||
# value = {
|
||||
# value = current_year
|
||||
# add = 75
|
||||
# }
|
||||
# }
|
||||
# set_global_variable = {
|
||||
# name = first_gok
|
||||
# value = story_owner
|
||||
# }
|
||||
|
||||
set_global_variable = {
|
||||
name = greatest_of_khans_title
|
||||
value = story_owner.primary_title
|
||||
}
|
||||
global_var:greatest_of_khans_title = {
|
||||
set_variable = {
|
||||
name = chaotic_succession_protection
|
||||
value = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# set_global_variable = {
|
||||
# name = greatest_of_khans_title
|
||||
# value = story_owner.primary_title
|
||||
# }
|
||||
# global_var:greatest_of_khans_title = {
|
||||
# set_variable = {
|
||||
# name = chaotic_succession_protection
|
||||
# value = yes
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
on_end = {
|
||||
if = {
|
||||
limit = {
|
||||
exists = global_var:active_conquerors
|
||||
}
|
||||
change_global_variable = {
|
||||
name = active_conquerors
|
||||
add = -1
|
||||
}
|
||||
}
|
||||
global_var:greatest_of_khans_title = {
|
||||
remove_variable = chaotic_succession_protection
|
||||
}
|
||||
remove_global_variable = first_gok
|
||||
remove_global_variable = gok_empire_crumble_date
|
||||
}
|
||||
# on_end = {
|
||||
# if = {
|
||||
# limit = {
|
||||
# exists = global_var:active_conquerors
|
||||
# }
|
||||
# change_global_variable = {
|
||||
# name = active_conquerors
|
||||
# add = -1
|
||||
# }
|
||||
# }
|
||||
# global_var:greatest_of_khans_title = {
|
||||
# remove_variable = chaotic_succession_protection
|
||||
# }
|
||||
# remove_global_variable = first_gok
|
||||
# remove_global_variable = gok_empire_crumble_date
|
||||
# }
|
||||
|
||||
on_owner_death = {
|
||||
# Handle story succession
|
||||
story_owner = {
|
||||
save_scope_as = old_khan # for news events
|
||||
if = {
|
||||
limit = {
|
||||
any_child = { # if the Khan has a reasonable heir...
|
||||
is_primary_heir_of = scope:story.story_owner
|
||||
}
|
||||
}
|
||||
random_child = {
|
||||
limit = {
|
||||
is_primary_heir_of = scope:story.story_owner
|
||||
}
|
||||
save_scope_as = new_khan # for news events
|
||||
save_scope_as = new_story_owner # pass chain to appropriate target
|
||||
add_character_flag = {
|
||||
flag = gain_mongol_succession_dread
|
||||
days = 2
|
||||
}
|
||||
add_character_modifier = {
|
||||
modifier = the_great_khan_modifier
|
||||
}
|
||||
}
|
||||
every_player = {
|
||||
trigger_event = {
|
||||
id = mongol_invasion.1001
|
||||
days = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
dynasty = {
|
||||
any_dynasty_member = { # if the Khan has some other heir not family?)
|
||||
is_primary_heir_of = scope:story.story_owner
|
||||
}
|
||||
}
|
||||
}
|
||||
dynasty = {
|
||||
random_dynasty_member = {
|
||||
limit = {
|
||||
is_primary_heir_of = scope:story.story_owner
|
||||
}
|
||||
save_scope_as = new_khan # for news events
|
||||
save_scope_as = new_story_owner # pass chain toappropriate target
|
||||
add_character_flag = {
|
||||
flag = gain_mongol_succession_dread
|
||||
days = 2
|
||||
}
|
||||
add_character_modifier = {
|
||||
modifier = the_great_khan_modifier
|
||||
}
|
||||
}
|
||||
}
|
||||
every_player = {
|
||||
trigger_event = {
|
||||
id = mongol_invasion.1001
|
||||
days = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
primary_heir = {
|
||||
is_grandchild_of = scope:story.story_owner
|
||||
}
|
||||
}
|
||||
primary_heir = {
|
||||
save_scope_as = new_khan # for news events
|
||||
save_scope_as = new_story_owner # pass chain to appropriate target
|
||||
add_character_flag = {
|
||||
flag = gain_mongol_succession_dread
|
||||
days = 2
|
||||
}
|
||||
add_character_modifier = {
|
||||
modifier = the_great_khan_modifier
|
||||
}
|
||||
}
|
||||
every_player = {
|
||||
trigger_event = {
|
||||
id = mongol_invasion.1001
|
||||
days = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
else_if = { # If the empire passes out of the original dynasty, the story will automatically end
|
||||
limit = {
|
||||
NOT = {
|
||||
dynasty = {
|
||||
any_dynasty_member = { # if the Khan has some otherheir (not family?)
|
||||
is_primary_heir_of = scope:story.story_owner
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
scope:story.story_owner.primary_heir = {
|
||||
save_scope_as = new_khan
|
||||
}
|
||||
every_player = {
|
||||
trigger_event = {
|
||||
id = mongol_invasion.1001
|
||||
days = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = { exists = scope:new_story_owner }
|
||||
make_story_owner = scope:new_story_owner
|
||||
}
|
||||
#Story end event
|
||||
else = {
|
||||
if = {
|
||||
limit = {
|
||||
exists = story_owner.player_heir
|
||||
exists = story_owner.dynasty
|
||||
story_owner.player_heir = {
|
||||
dynasty ?= root.story_owner.dynasty
|
||||
}
|
||||
}
|
||||
story_owner.player_heir ?= {
|
||||
trigger_event = {
|
||||
id = mpo_greatest_of_khans.0040
|
||||
days = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
else = {
|
||||
end_story = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
# on_owner_death = {
|
||||
# # Handle story succession
|
||||
# story_owner = {
|
||||
# save_scope_as = old_khan # for news events
|
||||
# if = {
|
||||
# limit = {
|
||||
# any_child = { # if the Khan has a reasonable heir...
|
||||
# is_primary_heir_of = scope:story.story_owner
|
||||
# }
|
||||
# }
|
||||
# random_child = {
|
||||
# limit = {
|
||||
# is_primary_heir_of = scope:story.story_owner
|
||||
# }
|
||||
# save_scope_as = new_khan # for news events
|
||||
# save_scope_as = new_story_owner # pass chain to appropriate target
|
||||
# add_character_flag = {
|
||||
# flag = gain_mongol_succession_dread
|
||||
# days = 2
|
||||
# }
|
||||
# add_character_modifier = {
|
||||
# modifier = the_great_khan_modifier
|
||||
# }
|
||||
# }
|
||||
# every_player = {
|
||||
# trigger_event = {
|
||||
# id = mongol_invasion.1001
|
||||
# days = 1
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# else_if = {
|
||||
# limit = {
|
||||
# dynasty = {
|
||||
# any_dynasty_member = { # if the Khan has some other heir not family?)
|
||||
# is_primary_heir_of = scope:story.story_owner
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# dynasty = {
|
||||
# random_dynasty_member = {
|
||||
# limit = {
|
||||
# is_primary_heir_of = scope:story.story_owner
|
||||
# }
|
||||
# save_scope_as = new_khan # for news events
|
||||
# save_scope_as = new_story_owner # pass chain toappropriate target
|
||||
# add_character_flag = {
|
||||
# flag = gain_mongol_succession_dread
|
||||
# days = 2
|
||||
# }
|
||||
# add_character_modifier = {
|
||||
# modifier = the_great_khan_modifier
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# every_player = {
|
||||
# trigger_event = {
|
||||
# id = mongol_invasion.1001
|
||||
# days = 1
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# else_if = {
|
||||
# limit = {
|
||||
# primary_heir = {
|
||||
# is_grandchild_of = scope:story.story_owner
|
||||
# }
|
||||
# }
|
||||
# primary_heir = {
|
||||
# save_scope_as = new_khan # for news events
|
||||
# save_scope_as = new_story_owner # pass chain to appropriate target
|
||||
# add_character_flag = {
|
||||
# flag = gain_mongol_succession_dread
|
||||
# days = 2
|
||||
# }
|
||||
# add_character_modifier = {
|
||||
# modifier = the_great_khan_modifier
|
||||
# }
|
||||
# }
|
||||
# every_player = {
|
||||
# trigger_event = {
|
||||
# id = mongol_invasion.1001
|
||||
# days = 1
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# else_if = { # If the empire passes out of the original dynasty, the story will automatically end
|
||||
# limit = {
|
||||
# NOT = {
|
||||
# dynasty = {
|
||||
# any_dynasty_member = { # if the Khan has some otherheir (not family?)
|
||||
# is_primary_heir_of = scope:story.story_owner
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# scope:story.story_owner.primary_heir = {
|
||||
# save_scope_as = new_khan
|
||||
# }
|
||||
# every_player = {
|
||||
# trigger_event = {
|
||||
# id = mongol_invasion.1001
|
||||
# days = 1
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# if = {
|
||||
# limit = { exists = scope:new_story_owner }
|
||||
# make_story_owner = scope:new_story_owner
|
||||
# }
|
||||
# #Story end event
|
||||
# else = {
|
||||
# if = {
|
||||
# limit = {
|
||||
# exists = story_owner.player_heir
|
||||
# exists = story_owner.dynasty
|
||||
# story_owner.player_heir = {
|
||||
# dynasty ?= root.story_owner.dynasty
|
||||
# }
|
||||
# }
|
||||
# story_owner.player_heir ?= {
|
||||
# trigger_event = {
|
||||
# id = mpo_greatest_of_khans.0040
|
||||
# days = 1
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# else = {
|
||||
# end_story = yes
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
#Invalidation end!
|
||||
effect_group = {
|
||||
years = 75
|
||||
# #Invalidation end!
|
||||
# effect_group = {
|
||||
# years = 75
|
||||
|
||||
triggered_effect = {
|
||||
trigger = {
|
||||
exists = story_owner
|
||||
}
|
||||
effect = {
|
||||
story_owner = {
|
||||
save_scope_as = timed_out
|
||||
trigger_event = {
|
||||
id = mpo_greatest_of_khans.0040
|
||||
days = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# triggered_effect = {
|
||||
# trigger = {
|
||||
# exists = story_owner
|
||||
# }
|
||||
# effect = {
|
||||
# story_owner = {
|
||||
# save_scope_as = timed_out
|
||||
# trigger_event = {
|
||||
# id = mpo_greatest_of_khans.0040
|
||||
# days = 1
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
#Start a new war if none is ongoing
|
||||
effect_group = {
|
||||
days = { 30 60 }
|
||||
# #Start a new war if none is ongoing
|
||||
# effect_group = {
|
||||
# days = { 30 60 }
|
||||
|
||||
trigger = {
|
||||
story_owner = {
|
||||
is_at_war = no
|
||||
gold > 0
|
||||
exists = global_var:greatest_of_khans_title
|
||||
any_held_title = {
|
||||
this = global_var:greatest_of_khans_title
|
||||
}
|
||||
}
|
||||
}
|
||||
# trigger = {
|
||||
# story_owner = {
|
||||
# is_at_war = no
|
||||
# gold > 0
|
||||
# exists = global_var:greatest_of_khans_title
|
||||
# any_held_title = {
|
||||
# this = global_var:greatest_of_khans_title
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
triggered_effect = {
|
||||
trigger = {
|
||||
story_owner = {
|
||||
is_ai = yes
|
||||
}
|
||||
}
|
||||
effect = {
|
||||
story_owner = {
|
||||
gok_war_target_evaluation_and_declaration_effect = yes
|
||||
}
|
||||
debug_log = "The story started a new war for the Greatest of Khans"
|
||||
debug_log_date = yes
|
||||
story_owner = {
|
||||
save_scope_as = owner
|
||||
}
|
||||
debug_log_scopes = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
# triggered_effect = {
|
||||
# trigger = {
|
||||
# story_owner = {
|
||||
# is_ai = yes
|
||||
# }
|
||||
# }
|
||||
# effect = {
|
||||
# story_owner = {
|
||||
# gok_war_target_evaluation_and_declaration_effect = yes
|
||||
# }
|
||||
# debug_log = "The story started a new war for the Greatest of Khans"
|
||||
# debug_log_date = yes
|
||||
# story_owner = {
|
||||
# save_scope_as = owner
|
||||
# }
|
||||
# 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
|
||||
# by Petter Vilberg
|
||||
|
||||
story_almohad_invasion = {
|
||||
#story_almohad_invasion = {
|
||||
|
||||
on_setup = {
|
||||
set_global_variable = {
|
||||
name = spawned_almohads
|
||||
value = yes
|
||||
}
|
||||
}
|
||||
# on_setup = {
|
||||
# set_global_variable = {
|
||||
# name = spawned_almohads
|
||||
# value = yes
|
||||
# }
|
||||
# }
|
||||
|
||||
on_end = {
|
||||
debug_log = "Almohad story ended on:"
|
||||
debug_log_date = yes
|
||||
}
|
||||
# on_end = {
|
||||
# debug_log = "Almohad story ended on:"
|
||||
# debug_log_date = yes
|
||||
# }
|
||||
|
||||
on_owner_death = {
|
||||
if = {
|
||||
limit = { NOT = { exists = var:had_ibn_tumart_succession } }
|
||||
set_variable = {
|
||||
name = had_ibn_tumart_succession
|
||||
value = yes
|
||||
}
|
||||
if = {
|
||||
limit = { exists = var:ibn_tumart_triggered_death }
|
||||
if = {
|
||||
limit = {
|
||||
var:al_mumin = {
|
||||
is_alive = yes
|
||||
faith = faith:masmudi
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = { var:al_mumin = { is_imprisoned = yes } }
|
||||
var:al_mumin = { release_from_prison = yes }
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { var:ibn_tumart.primary_heir = var:al_mumin }
|
||||
}
|
||||
create_title_and_vassal_change = {
|
||||
type = granted
|
||||
save_scope_as = change
|
||||
add_claim_on_loss = no
|
||||
}
|
||||
var:ibn_tumart = {
|
||||
save_scope_as = ibn_tumart
|
||||
every_held_title = {
|
||||
limit = { is_capital_barony = no }
|
||||
change_title_holder = {
|
||||
holder = scope:story.var:al_mumin
|
||||
change = scope:change
|
||||
}
|
||||
}
|
||||
}
|
||||
resolve_title_and_vassal_change = scope:change
|
||||
# on_owner_death = {
|
||||
# if = {
|
||||
# limit = { NOT = { exists = var:had_ibn_tumart_succession } }
|
||||
# set_variable = {
|
||||
# name = had_ibn_tumart_succession
|
||||
# value = yes
|
||||
# }
|
||||
# if = {
|
||||
# limit = { exists = var:ibn_tumart_triggered_death }
|
||||
# if = {
|
||||
# limit = {
|
||||
# var:al_mumin = {
|
||||
# is_alive = yes
|
||||
# faith = faith:masmudi
|
||||
# }
|
||||
# }
|
||||
# if = {
|
||||
# limit = { var:al_mumin = { is_imprisoned = yes } }
|
||||
# var:al_mumin = { release_from_prison = yes }
|
||||
# }
|
||||
# if = {
|
||||
# limit = {
|
||||
# NOT = { var:ibn_tumart.primary_heir = var:al_mumin }
|
||||
# }
|
||||
# create_title_and_vassal_change = {
|
||||
# type = granted
|
||||
# save_scope_as = change
|
||||
# add_claim_on_loss = no
|
||||
# }
|
||||
# var:ibn_tumart = {
|
||||
# save_scope_as = ibn_tumart
|
||||
# every_held_title = {
|
||||
# limit = { is_capital_barony = no }
|
||||
# change_title_holder = {
|
||||
# holder = scope:story.var:al_mumin
|
||||
# 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 = {
|
||||
save_scope_as = almohad_county
|
||||
}
|
||||
# var:almohad_county = {
|
||||
# save_scope_as = almohad_county
|
||||
# }
|
||||
|
||||
story_owner = {
|
||||
if = { # Make sure they get back to warfare
|
||||
limit = { is_at_war = no }
|
||||
almohads_find_target_titles_effect = yes
|
||||
almohads_declare_war_for_target_title_effect = yes
|
||||
}
|
||||
spawn_second_almohad_troops_effect = yes
|
||||
# story_owner = {
|
||||
# if = { # Make sure they get back to warfare
|
||||
# limit = { is_at_war = no }
|
||||
# almohads_find_target_titles_effect = yes
|
||||
# almohads_declare_war_for_target_title_effect = yes
|
||||
# }
|
||||
# spawn_second_almohad_troops_effect = yes
|
||||
|
||||
save_scope_as = al_mumin
|
||||
# save_scope_as = al_mumin
|
||||
|
||||
every_war_enemy = {
|
||||
trigger_event = almohad.1003
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else = {
|
||||
end_story = yes
|
||||
}
|
||||
}
|
||||
# every_war_enemy = {
|
||||
# trigger_event = almohad.1003
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# else = {
|
||||
# end_story = yes
|
||||
# }
|
||||
# }
|
||||
|
||||
|
||||
|
||||
#Kill ibn Tumert if he suffers a defeat
|
||||
effect_group = {
|
||||
days = { 20 80 }
|
||||
# #Kill ibn Tumert if he suffers a defeat
|
||||
# effect_group = {
|
||||
# days = { 20 80 }
|
||||
|
||||
trigger = {
|
||||
story_owner = var:ibn_tumart
|
||||
story_owner = { is_alive = yes }
|
||||
exists = global_var:almohads_were_defeated
|
||||
}
|
||||
# trigger = {
|
||||
# story_owner = var:ibn_tumart
|
||||
# story_owner = { is_alive = yes }
|
||||
# exists = global_var:almohads_were_defeated
|
||||
# }
|
||||
|
||||
triggered_effect = {
|
||||
trigger = {
|
||||
always = yes
|
||||
}
|
||||
effect = {
|
||||
debug_log = "Trying to kill Ibn Tumert!"
|
||||
set_variable = {
|
||||
name = ibn_tumart_triggered_death
|
||||
value = yes
|
||||
}
|
||||
story_owner = {
|
||||
death = natural
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# triggered_effect = {
|
||||
# trigger = {
|
||||
# always = yes
|
||||
# }
|
||||
# effect = {
|
||||
# debug_log = "Trying to kill Ibn Tumert!"
|
||||
# set_variable = {
|
||||
# name = ibn_tumart_triggered_death
|
||||
# value = yes
|
||||
# }
|
||||
# story_owner = {
|
||||
# death = natural
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
#Rebuild Marrakesh
|
||||
effect_group = {
|
||||
days = 180
|
||||
# #Rebuild Marrakesh
|
||||
# effect_group = {
|
||||
# days = 180
|
||||
|
||||
trigger = {
|
||||
NOT = { exists = var:fired_marrakesh_event }
|
||||
story_owner = {
|
||||
any_sub_realm_county = {
|
||||
this = title:c_marrakesh
|
||||
OR = {
|
||||
holder = scope:story.story_owner
|
||||
holder = { is_ai = no }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# trigger = {
|
||||
# NOT = { exists = var:fired_marrakesh_event }
|
||||
# story_owner = {
|
||||
# any_sub_realm_county = {
|
||||
# this = title:c_marrakesh
|
||||
# OR = {
|
||||
# holder = scope:story.story_owner
|
||||
# holder = { is_ai = no }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
triggered_effect = {
|
||||
trigger = {
|
||||
always = yes
|
||||
}
|
||||
effect = {
|
||||
set_variable = {
|
||||
name = fired_marrakesh_event
|
||||
value = yes
|
||||
}
|
||||
story_owner = {
|
||||
trigger_event = almohad.1004
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# triggered_effect = {
|
||||
# trigger = {
|
||||
# always = yes
|
||||
# }
|
||||
# effect = {
|
||||
# set_variable = {
|
||||
# name = fired_marrakesh_event
|
||||
# value = yes
|
||||
# }
|
||||
# story_owner = {
|
||||
# trigger_event = almohad.1004
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
#Maintenance group
|
||||
effect_group = {
|
||||
days = 1
|
||||
trigger = {
|
||||
story_owner = { is_landed = no }
|
||||
}
|
||||
triggered_effect = {
|
||||
trigger = { always = yes }
|
||||
effect = {
|
||||
#You became a landless adventurer/administrative! Ending story prematurely.
|
||||
story_owner = { save_scope_as = story_owner }
|
||||
debug_log = "Almohads invalidated"
|
||||
debug_log_scopes = yes
|
||||
end_story = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# #Maintenance group
|
||||
# effect_group = {
|
||||
# days = 1
|
||||
# trigger = {
|
||||
# story_owner = { is_landed = no }
|
||||
# }
|
||||
# triggered_effect = {
|
||||
# trigger = { always = yes }
|
||||
# effect = {
|
||||
# #You became a landless adventurer/administrative! Ending story prematurely.
|
||||
# story_owner = { save_scope_as = story_owner }
|
||||
# debug_log = "Almohads invalidated"
|
||||
# debug_log_scopes = 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 = {
|
||||
story_owner = { # Find a place for the Seljuks to settle
|
||||
set_variable = {
|
||||
name = seljuk_invasion_nomad_strength_score
|
||||
value = 10
|
||||
}
|
||||
try_to_settle_the_seljuk_effect = yes
|
||||
}
|
||||
set_variable = {
|
||||
name = succession_counter
|
||||
value = 0
|
||||
}
|
||||
}
|
||||
# on_setup = {
|
||||
# story_owner = { # Find a place for the Seljuks to settle
|
||||
# set_variable = {
|
||||
# name = seljuk_invasion_nomad_strength_score
|
||||
# value = 10
|
||||
# }
|
||||
# try_to_settle_the_seljuk_effect = yes
|
||||
# }
|
||||
# set_variable = {
|
||||
# name = succession_counter
|
||||
# value = 0
|
||||
# }
|
||||
# }
|
||||
|
||||
on_end = {}
|
||||
# on_end = {}
|
||||
|
||||
on_owner_death = {
|
||||
# Breakup of the empire should not happen until at least one succession has passed
|
||||
random_list = { # Weighted chance to end the story
|
||||
10 = {
|
||||
trigger = { var:succession_counter < 2 }
|
||||
modifier = {
|
||||
add = 10
|
||||
var:succession_counter > 1
|
||||
}
|
||||
modifier = { # Historical point
|
||||
add = 10
|
||||
var:succession_counter > 2
|
||||
}
|
||||
modifier = {
|
||||
add = 20
|
||||
var:succession_counter > 3
|
||||
}
|
||||
end_story = yes
|
||||
}
|
||||
90 = {
|
||||
if = {
|
||||
limit = {
|
||||
exists = story_owner.primary_heir
|
||||
}
|
||||
make_story_owner = story_owner.primary_heir
|
||||
change_variable = {
|
||||
name = seljuk_invasion_nomad_strength_score
|
||||
add = -5
|
||||
}
|
||||
}
|
||||
else = {
|
||||
end_story = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# on_owner_death = {
|
||||
# # Breakup of the empire should not happen until at least one succession has passed
|
||||
# random_list = { # Weighted chance to end the story
|
||||
# 10 = {
|
||||
# trigger = { var:succession_counter < 2 }
|
||||
# modifier = {
|
||||
# add = 10
|
||||
# var:succession_counter > 1
|
||||
# }
|
||||
# modifier = { # Historical point
|
||||
# add = 10
|
||||
# var:succession_counter > 2
|
||||
# }
|
||||
# modifier = {
|
||||
# add = 20
|
||||
# var:succession_counter > 3
|
||||
# }
|
||||
# end_story = yes
|
||||
# }
|
||||
# 90 = {
|
||||
# if = {
|
||||
# limit = {
|
||||
# exists = story_owner.primary_heir
|
||||
# }
|
||||
# make_story_owner = story_owner.primary_heir
|
||||
# change_variable = {
|
||||
# name = seljuk_invasion_nomad_strength_score
|
||||
# add = -5
|
||||
# }
|
||||
# }
|
||||
# else = {
|
||||
# end_story = yes
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
# Start a new war if one is not ongoing
|
||||
effect_group = {
|
||||
days = { 30 60 }
|
||||
# # Start a new war if one is not ongoing
|
||||
# effect_group = {
|
||||
# days = { 30 60 }
|
||||
|
||||
trigger = {
|
||||
story_owner = {
|
||||
is_at_war = no
|
||||
gold > 0
|
||||
OR = {
|
||||
NOT = { has_character_flag = settled_seljuk }
|
||||
top_liege = this
|
||||
}
|
||||
}
|
||||
}
|
||||
# trigger = {
|
||||
# story_owner = {
|
||||
# is_at_war = no
|
||||
# gold > 0
|
||||
# OR = {
|
||||
# NOT = { has_character_flag = settled_seljuk }
|
||||
# top_liege = this
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
triggered_effect = {
|
||||
trigger = {
|
||||
story_owner = {
|
||||
is_ai = yes
|
||||
}
|
||||
}
|
||||
effect = {
|
||||
story_owner = {
|
||||
seljuk_war_target_evaluation_and_declaration_effect = yes
|
||||
save_scope_as = owner
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# triggered_effect = {
|
||||
# trigger = {
|
||||
# story_owner = {
|
||||
# is_ai = yes
|
||||
# }
|
||||
# }
|
||||
# effect = {
|
||||
# story_owner = {
|
||||
# seljuk_war_target_evaluation_and_declaration_effect = yes
|
||||
# save_scope_as = owner
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
# Ask for independence if vassals
|
||||
effect_group = {
|
||||
years = { 1 2 }
|
||||
# # Ask for independence if vassals
|
||||
# effect_group = {
|
||||
# years = { 1 2 }
|
||||
|
||||
trigger = {
|
||||
story_owner = {
|
||||
has_character_flag = settled_seljuk
|
||||
top_liege != this
|
||||
}
|
||||
}
|
||||
# trigger = {
|
||||
# story_owner = {
|
||||
# has_character_flag = settled_seljuk
|
||||
# top_liege != this
|
||||
# }
|
||||
# }
|
||||
|
||||
triggered_effect = {
|
||||
trigger = {
|
||||
story_owner = {
|
||||
is_ai = yes
|
||||
}
|
||||
}
|
||||
effect = {
|
||||
story_owner = {
|
||||
seljuk_request_independence_from_liege_effect = yes
|
||||
save_scope_as = owner
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# triggered_effect = {
|
||||
# trigger = {
|
||||
# story_owner = {
|
||||
# is_ai = yes
|
||||
# }
|
||||
# }
|
||||
# effect = {
|
||||
# story_owner = {
|
||||
# seljuk_request_independence_from_liege_effect = yes
|
||||
# save_scope_as = owner
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
# Create the empire and close the story
|
||||
effect_group = {
|
||||
days = { 30 60 }
|
||||
# # Create the empire and close the story
|
||||
# effect_group = {
|
||||
# days = { 30 60 }
|
||||
|
||||
trigger = {
|
||||
story_owner = {
|
||||
save_temporary_scope_as = temp_seljuk
|
||||
OR = {
|
||||
any_county_in_region = {
|
||||
region = world_persian_empire
|
||||
percent >= 0.51
|
||||
holder.top_liege = scope:temp_seljuk
|
||||
}
|
||||
any_held_title = {
|
||||
count = 2
|
||||
title_tier = kingdom
|
||||
any_this_title_or_de_jure_above = {
|
||||
this = title:e_persia
|
||||
}
|
||||
}
|
||||
any_held_title = {
|
||||
title_tier = empire
|
||||
any_this_title_or_de_jure_above = {
|
||||
this = title:e_persia
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# trigger = {
|
||||
# story_owner = {
|
||||
# save_temporary_scope_as = temp_seljuk
|
||||
# OR = {
|
||||
# any_county_in_region = {
|
||||
# region = world_persian_empire
|
||||
# percent >= 0.51
|
||||
# holder.top_liege = scope:temp_seljuk
|
||||
# }
|
||||
# any_held_title = {
|
||||
# count = 2
|
||||
# title_tier = kingdom
|
||||
# any_this_title_or_de_jure_above = {
|
||||
# this = title:e_persia
|
||||
# }
|
||||
# }
|
||||
# any_held_title = {
|
||||
# title_tier = empire
|
||||
# any_this_title_or_de_jure_above = {
|
||||
# this = title:e_persia
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
|
||||
triggered_effect = {
|
||||
trigger = {
|
||||
story_owner = {
|
||||
is_ai = yes
|
||||
}
|
||||
}
|
||||
effect = {
|
||||
story_owner = {
|
||||
save_scope_as = owner
|
||||
# triggered_effect = {
|
||||
# trigger = {
|
||||
# story_owner = {
|
||||
# is_ai = yes
|
||||
# }
|
||||
# }
|
||||
# effect = {
|
||||
# story_owner = {
|
||||
# save_scope_as = owner
|
||||
|
||||
create_title_and_vassal_change = {
|
||||
type = created
|
||||
save_scope_as = title_change
|
||||
add_claim_on_loss = no
|
||||
}
|
||||
# create_title_and_vassal_change = {
|
||||
# type = created
|
||||
# save_scope_as = title_change
|
||||
# add_claim_on_loss = no
|
||||
# }
|
||||
|
||||
title:e_persia = {
|
||||
change_title_holder = {
|
||||
holder = scope:owner
|
||||
change = scope:title_change
|
||||
}
|
||||
save_scope_as = title_e_persia
|
||||
}
|
||||
# title:e_persia = {
|
||||
# change_title_holder = {
|
||||
# holder = scope:owner
|
||||
# change = scope:title_change
|
||||
# }
|
||||
# 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
|
||||
}
|
||||
|
||||
|
||||
# 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 = {
|
||||
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.
|
||||
desc = tooltip_tribal_elective_development
|
||||
desc = tooltip_tribal_elective_prosperity
|
||||
is_landed_or_landless_administrative = yes
|
||||
domain_size >= 1
|
||||
any_held_title = {
|
||||
title_tier = county
|
||||
development_level > 0
|
||||
prosperity_level > 0
|
||||
target_is_de_jure_liege_or_above = scope:title
|
||||
}
|
||||
add = {
|
||||
every_held_title = {
|
||||
title_tier = county
|
||||
limit = {
|
||||
development_level > 0
|
||||
prosperity_level > 0
|
||||
target_is_de_jure_liege_or_above = scope:title
|
||||
}
|
||||
add = {
|
||||
value = this.development_level
|
||||
value = this.prosperity_level
|
||||
if = {
|
||||
limit = {
|
||||
this.faith != root.faith
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue