effects
This commit is contained in:
parent
eaf472631b
commit
60fbfc1893
15 changed files with 2845 additions and 1349 deletions
|
|
@ -260,14 +260,12 @@ change_to_administrative_effect = {
|
||||||
change_government = meritocratic_government
|
change_government = meritocratic_government
|
||||||
}
|
}
|
||||||
else = { # Administrative
|
else = { # Administrative
|
||||||
add_character_flag = new_government_is_byz_admin
|
|
||||||
change_to_administrative_holding_effect = yes
|
change_to_administrative_holding_effect = yes
|
||||||
tgp_domicile_conversion_when_changing_government_type = {
|
tgp_domicile_conversion_when_changing_government_type = {
|
||||||
NEW_DOMICILE_TYPE = estate
|
NEW_DOMICILE_TYPE = estate
|
||||||
NEW_GOVERNMENT_TYPE = administrative_government
|
NEW_GOVERNMENT_TYPE = administrative_government
|
||||||
}
|
}
|
||||||
change_government = administrative_government
|
change_government = administrative_government
|
||||||
remove_character_flag = new_government_is_byz_admin
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# Set up a noble family title
|
# Set up a noble family title
|
||||||
|
|
@ -307,16 +305,6 @@ change_to_administrative_effect = {
|
||||||
set_up_domicile_estate_effect = yes
|
set_up_domicile_estate_effect = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = {
|
|
||||||
limit = {
|
|
||||||
has_treasury = yes
|
|
||||||
exists = scope:new_treasury # do not give it mutiple times
|
|
||||||
}
|
|
||||||
add_treasury = {
|
|
||||||
value = gold
|
|
||||||
min = 100
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
change_to_administrative_interaction_effect = {
|
change_to_administrative_interaction_effect = {
|
||||||
|
|
@ -427,17 +415,21 @@ change_to_administrative_interaction_effect = {
|
||||||
give_new_noble_family_title_effect = {
|
give_new_noble_family_title_effect = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
is_house_head = yes
|
|
||||||
government_allows = noble_families
|
government_allows = noble_families
|
||||||
|
trigger_if = {
|
||||||
|
limit = { government_has_mechanic = administrative } # excludes republic/soryo
|
||||||
|
is_house_head = yes
|
||||||
|
highest_held_title_tier >= min_appointment_tier
|
||||||
|
liege = { government_allows = noble_families }
|
||||||
|
}
|
||||||
|
# Republic house members in the same republic as their house head must not found a cadet branch
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = {
|
limit = {
|
||||||
government_has_flag = government_has_county_tier_noble_families
|
government_has_flag = government_is_republic
|
||||||
|
is_house_head = no
|
||||||
|
exists = house.house_head.highest_liege_matching_mechanic:republic
|
||||||
}
|
}
|
||||||
highest_held_title_tier >= tier_county
|
NOT = { highest_liege_matching_mechanic:republic = house.house_head.highest_liege_matching_mechanic:republic }
|
||||||
}
|
|
||||||
trigger_else = { highest_held_title_tier >= tier_duchy }
|
|
||||||
liege = {
|
|
||||||
government_allows = noble_families
|
|
||||||
}
|
}
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = { any_held_title = { is_noble_family_title = yes } }
|
limit = { any_held_title = { is_noble_family_title = yes } }
|
||||||
|
|
@ -576,3 +568,19 @@ noble_family_title_realm_setup_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
empty_treasury_effect = {
|
||||||
|
if = {
|
||||||
|
limit = { treasury > 0 }
|
||||||
|
remove_treasury = treasury
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { treasury < 0 }
|
||||||
|
hidden_effect = {
|
||||||
|
add_treasury = {
|
||||||
|
value = treasury
|
||||||
|
multiply = -1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -168,6 +168,15 @@ convert_to_administrative_from_feudalism_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
every_vassal = { # If we are republic make sure to convert patricians to admin noble families
|
||||||
|
limit = {
|
||||||
|
government_has_flag = government_is_republic
|
||||||
|
is_landed = no
|
||||||
|
}
|
||||||
|
add_character_flag = government_republic_conversion_protection
|
||||||
|
change_to_administrative_effect = yes
|
||||||
|
remove_character_flag = government_republic_conversion_protection
|
||||||
|
}
|
||||||
every_vassal = {
|
every_vassal = {
|
||||||
limit = {
|
limit = {
|
||||||
highest_held_title_tier >= tier_duchy
|
highest_held_title_tier >= tier_duchy
|
||||||
|
|
@ -206,6 +215,11 @@ convert_to_administrative_from_feudalism_effect = {
|
||||||
convert_to_administrative_from_feudalism_game_start_effect = {
|
convert_to_administrative_from_feudalism_game_start_effect = {
|
||||||
if = {
|
if = {
|
||||||
limit = { has_dlc_feature = roads_to_power }
|
limit = { has_dlc_feature = roads_to_power }
|
||||||
|
# Vassals should not start the game grateful for holdings converted at game start.
|
||||||
|
save_scope_value_as = {
|
||||||
|
name = feudalize_without_opinion
|
||||||
|
value = yes
|
||||||
|
}
|
||||||
# Because we run this twice, since folks can change in the lobby.
|
# Because we run this twice, since folks can change in the lobby.
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -241,6 +255,24 @@ convert_to_administrative_from_feudalism_game_start_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
convert_to_administrative_from_tribalism_game_start_effect = {
|
||||||
|
if = {
|
||||||
|
limit = { has_dlc_feature = roads_to_power }
|
||||||
|
save_scope_as = actor
|
||||||
|
convert_to_administrative_from_feudalism_game_start_effect = yes
|
||||||
|
|
||||||
|
# Administrative governments cannot use tribal holdings
|
||||||
|
# change_to_administrative_effect only converts capitals, so we convert the rest here
|
||||||
|
every_realm_province = {
|
||||||
|
limit = {
|
||||||
|
has_holding_type = tribal_holding
|
||||||
|
province_owner ?= { government_has_mechanic = administrative }
|
||||||
|
}
|
||||||
|
holding_convert_tribal_keeping_buildings_effect = { HOLDING = castle_holding }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
apply_historic_administrative_game_rule_effect = {
|
apply_historic_administrative_game_rule_effect = {
|
||||||
# We'll be doing some excessive triggers below in a bid to lightly future-proof + error-spam mods less, don't worry about it.
|
# We'll be doing some excessive triggers below in a bid to lightly future-proof + error-spam mods less, don't worry about it.
|
||||||
## We also do player-specific realms separately — we need to know what their realm is so we do it after the lobby exclusively.
|
## We also do player-specific realms separately — we need to know what their realm is so we do it after the lobby exclusively.
|
||||||
|
|
@ -276,7 +308,7 @@ apply_historic_administrative_game_rule_effect = {
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = { has_game_rule = historicity_extra_admin_ghana_historic_always }
|
limit = { has_game_rule = historicity_extra_admin_ghana_historic_always }
|
||||||
title:k_ghana.holder ?= { convert_to_administrative_from_feudalism_game_start_effect = yes }
|
title:k_ghana.holder ?= { convert_to_administrative_from_tribalism_game_start_effect = yes }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# Kabulistan/the Ghaznivids.
|
# Kabulistan/the Ghaznivids.
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,7 @@ assign_new_government_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
## Administrative govs
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
OR = {
|
OR = {
|
||||||
|
|
|
||||||
|
|
@ -3547,7 +3547,7 @@ monastic_lease_swapping_effect = {
|
||||||
save_scope_as = target_order
|
save_scope_as = target_order
|
||||||
ordered_leased_title = {
|
ordered_leased_title = {
|
||||||
order_by = {
|
order_by = {
|
||||||
value = county.development_level
|
value = county.prosperity_level
|
||||||
multiply = -1
|
multiply = -1
|
||||||
}
|
}
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -3567,7 +3567,7 @@ monastic_lease_swapping_effect = {
|
||||||
}
|
}
|
||||||
ordered_leased_title = {
|
ordered_leased_title = {
|
||||||
order_by = {
|
order_by = {
|
||||||
value = county.development_level
|
value = county.prosperity_level
|
||||||
multiply = -1
|
multiply = -1
|
||||||
}
|
}
|
||||||
limit = {
|
limit = {
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,13 @@
|
||||||
# !!! Remember to add all new effects with a short description here !!!
|
# !!! Remember to add all new effects with a short description here !!!
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
||||||
|
|
||||||
|
#######################################################################
|
||||||
|
# EFFECT LIST
|
||||||
|
#######################################################################
|
||||||
|
# !!! Remember to add all new effects with a short description here !!!
|
||||||
|
#######################################################################
|
||||||
|
|
||||||
notify_puppeteer_of_outcome_effect = {
|
notify_puppeteer_of_outcome_effect = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -23,7 +30,6 @@ notify_puppeteer_of_outcome_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
blackmail_interaction_effect = {
|
blackmail_interaction_effect = {
|
||||||
if = {
|
if = {
|
||||||
limit = { NOT = { exists = scope:puppet_or_actor } }
|
limit = { NOT = { exists = scope:puppet_or_actor } }
|
||||||
|
|
@ -910,9 +916,7 @@ vassal_revocation_tyranny_effect = { #Despite its name this is referenced when _
|
||||||
else_if = { #Admin liege revoking from admin vassal
|
else_if = { #Admin liege revoking from admin vassal
|
||||||
limit = {
|
limit = {
|
||||||
government_has_mechanic = administrative
|
government_has_mechanic = administrative
|
||||||
scope:recipient = {
|
scope:recipient = { government_has_mechanic = administrative }
|
||||||
government_has_mechanic = administrative
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else = { change_strife_opinion = major_strife_gain }
|
else = { change_strife_opinion = major_strife_gain }
|
||||||
|
|
@ -940,13 +944,25 @@ vassal_revocation_tyranny_effect = { #Despite its name this is referenced when _
|
||||||
}
|
}
|
||||||
multiply = 2
|
multiply = 2
|
||||||
}
|
}
|
||||||
|
#HRE should not revoke vassals from North Italians
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
gg_hre_causes_additional_tyranny_trigger = { TARGET = scope:recipient }
|
||||||
|
}
|
||||||
|
multiply = 4
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = { has_revoke_title_reason = scope:recipient }
|
||||||
has_revoke_title_reason = scope:recipient
|
|
||||||
}
|
|
||||||
custom_tooltip = IS_ALLOWED_TO_REVOKE_VASSAL_DESC
|
custom_tooltip = IS_ALLOWED_TO_REVOKE_VASSAL_DESC
|
||||||
|
#HRE should not revoke vassals from North Italians
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
gg_hre_causes_additional_tyranny_trigger = { TARGET = scope:recipient }
|
||||||
|
}
|
||||||
|
add_tyranny = revoke_title_tyranny_gain
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -992,25 +1008,42 @@ vassal_revocation_tyranny_effect = { #Despite its name this is referenced when _
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#HRE should not revoke vassals from North Italians
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
gg_hre_causes_additional_tyranny_trigger = { TARGET = scope:recipient }
|
||||||
|
}
|
||||||
|
add_tyranny = revoke_title_tyranny_gain
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
revocation_tyranny_effect = {
|
revocation_tyranny_effect = {
|
||||||
save_scope_as = liege_temp_scope
|
save_scope_as = liege_temp_scope
|
||||||
|
$VASSAL$ = { save_scope_as = vassal_scope }
|
||||||
if = {
|
if = {
|
||||||
limit = { exists = scope:use_strife_not_tyranny }
|
limit = { exists = scope:use_strife_not_tyranny }
|
||||||
# If you have revocation reason, we allow that.
|
# If you have revocation reason, we allow that.
|
||||||
if = {
|
if = {
|
||||||
limit = { has_revoke_title_reason = $VASSAL$ }
|
limit = { has_revoke_title_reason = scope:vassal_scope }
|
||||||
consume_revoke_title_reason = $VASSAL$
|
consume_revoke_title_reason = scope:vassal_scope
|
||||||
}
|
}
|
||||||
else = { change_strife_opinion = major_strife_gain }
|
else = { change_strife_opinion = major_strife_gain }
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
title_revocation_is_tyrannical_trigger = { VASSAL = $VASSAL$ }
|
title_revocation_is_tyrannical_trigger = { VASSAL = scope:vassal_scope }
|
||||||
|
}
|
||||||
|
add_tyranny = {
|
||||||
|
value = revoke_title_tyranny_gain
|
||||||
|
#HRE should not revoke titles from North Italians
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
gg_hre_causes_additional_tyranny_trigger = { TARGET = scope:vassal_scope }
|
||||||
|
}
|
||||||
|
multiply = 2
|
||||||
|
}
|
||||||
}
|
}
|
||||||
add_tyranny = revoke_title_tyranny_gain
|
|
||||||
# Special Legitimacy loss if you're revoking without a reason
|
# Special Legitimacy loss if you're revoking without a reason
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -1027,9 +1060,9 @@ revocation_tyranny_effect = {
|
||||||
#If my culture is different from the recipients
|
#If my culture is different from the recipients
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
NOT = { culture = $VASSAL$.culture }
|
NOT = { culture = scope:vassal_scope.culture }
|
||||||
}
|
}
|
||||||
$VASSAL$.culture = {
|
scope:vassal_scope.culture = {
|
||||||
change_cultural_acceptance = {
|
change_cultural_acceptance = {
|
||||||
target = scope:liege_temp_scope.culture
|
target = scope:liege_temp_scope.culture
|
||||||
value = revoke_title_culture_acceptance_impact
|
value = revoke_title_culture_acceptance_impact
|
||||||
|
|
@ -1041,7 +1074,7 @@ revocation_tyranny_effect = {
|
||||||
else = {
|
else = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
title_revocation_is_admin_governor_trigger = { VASSAL = $VASSAL$ }
|
title_revocation_is_admin_governor_trigger = { VASSAL = scope:vassal_scope }
|
||||||
}
|
}
|
||||||
custom_description = {
|
custom_description = {
|
||||||
text = IS_ALLOWED_TO_REVOKE_ADMIN_GOVERNMENT
|
text = IS_ALLOWED_TO_REVOKE_ADMIN_GOVERNMENT
|
||||||
|
|
@ -1107,6 +1140,13 @@ revocation_tyranny_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#HRE should not revoke vassals from North Italians
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
gg_hre_causes_additional_tyranny_trigger = { TARGET = scope:recipient }
|
||||||
|
}
|
||||||
|
add_tyranny = revoke_title_tyranny_gain
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1532,9 +1572,9 @@ disinherit_effect = {
|
||||||
has_trait = humble
|
has_trait = humble
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_relation_rival = {
|
set_relation_rival_effect = {
|
||||||
target = $DISINHERITOR$
|
TARGET = $DISINHERITOR$
|
||||||
reason = rival_disinherited
|
REASON = rival_disinherited
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
|
|
@ -1591,9 +1631,9 @@ disinherit_effect = {
|
||||||
has_trait = humble
|
has_trait = humble
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_relation_rival = {
|
set_relation_rival_effect = {
|
||||||
target = $DISINHERITOR$.primary_heir
|
TARGET = $DISINHERITOR$.primary_heir
|
||||||
reason = rival_disinherited
|
REASON = rival_disinherited
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
|
|
@ -1671,9 +1711,9 @@ disinherit_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_relation_rival = {
|
set_relation_rival_effect = {
|
||||||
target = scope:new_primary_heir
|
TARGET = scope:new_primary_heir
|
||||||
reason = rival_disinherited
|
REASON = rival_disinherited
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
|
|
@ -1760,7 +1800,18 @@ disinherit_effect = {
|
||||||
}
|
}
|
||||||
|
|
||||||
restore_inheritance_effect = {
|
restore_inheritance_effect = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
has_trait = disinherited
|
||||||
|
}
|
||||||
remove_trait = disinherited
|
remove_trait = disinherited
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
has_trait = adopted_no_inheritance
|
||||||
|
}
|
||||||
|
remove_trait = adopted_no_inheritance
|
||||||
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_opinion_modifier = {
|
has_opinion_modifier = {
|
||||||
|
|
@ -1833,14 +1884,12 @@ denounce_effect = {
|
||||||
add_trait = denounced
|
add_trait = denounced
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
NOT = {
|
NOT = { has_relation_rival = scope:actor }
|
||||||
has_relation_rival = $ACTOR$
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#Rivalry
|
#Rivalry
|
||||||
set_relation_rival = {
|
set_relation_rival_effect = {
|
||||||
target = $ACTOR$
|
TARGET = scope:actor
|
||||||
reason = rival_denounced
|
REASON = rival_denounced
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -2088,14 +2137,18 @@ education_flags_tooltips_effect = {
|
||||||
}
|
}
|
||||||
scope:puppet_or_actor = {
|
scope:puppet_or_actor = {
|
||||||
remove_short_term_gold = {
|
remove_short_term_gold = {
|
||||||
value = monumental_gold_value
|
value = medium_gold_value
|
||||||
if = {
|
if = {
|
||||||
limit = { house = { has_house_modifier = ep3_eparch_university_influence_modifier } }
|
limit = { house ?= { has_house_modifier = ep3_eparch_university_influence_modifier } }
|
||||||
multiply = {
|
multiply = {
|
||||||
value = 1
|
value = 1
|
||||||
subtract = university_cost_reduction_value
|
subtract = university_cost_reduction_value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { culture ?= { has_cultural_parameter = roman_law_cheaper_university } }
|
||||||
|
multiply = roman_law_university_cost_mult
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -2327,8 +2380,28 @@ start_tributary_interaction_effect = {
|
||||||
$TRIBUTARY$ = { save_scope_as = tributary_loc }
|
$TRIBUTARY$ = { save_scope_as = tributary_loc }
|
||||||
$SUZERAIN$ = { save_scope_as = suzerain_loc }
|
$SUZERAIN$ = { save_scope_as = suzerain_loc }
|
||||||
|
|
||||||
#Mandala Tributaries
|
#Merchant Tributaries
|
||||||
if = {
|
if = {
|
||||||
|
limit = {
|
||||||
|
$TRIBUTARY$ = { government_has_flag = government_is_merchant }
|
||||||
|
}
|
||||||
|
$TRIBUTARY$ = {
|
||||||
|
# Clear up old patron contracts
|
||||||
|
every_character_task_contract = {
|
||||||
|
limit = { has_task_contract_group = merchant_patron_contract_group }
|
||||||
|
scheme ?= { invalidate_scheme = yes }
|
||||||
|
invalidate_contract = yes
|
||||||
|
}
|
||||||
|
remove_character_flag = patron_contract_cooldown_hobnob
|
||||||
|
# Create tributary
|
||||||
|
start_tributary = {
|
||||||
|
contract_group = tributary_merchant
|
||||||
|
suzerain = $SUZERAIN$
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#Mandala Tributaries
|
||||||
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
should_be_mandala_tributary_trigger = {
|
should_be_mandala_tributary_trigger = {
|
||||||
SUZERAIN = $SUZERAIN$
|
SUZERAIN = $SUZERAIN$
|
||||||
|
|
@ -3013,7 +3086,15 @@ start_tributary_interaction_effect = {
|
||||||
custom_tooltip = no_tributary_war_obligations
|
custom_tooltip = no_tributary_war_obligations
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
# Truces
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = {
|
||||||
|
$TRIBUTARY$ = { government_has_flag = government_is_merchant }
|
||||||
|
}
|
||||||
|
}
|
||||||
setup_tributary_truces_effect = { SUZERAIN = $SUZERAIN$ TRIBUTARY = $TRIBUTARY$ }
|
setup_tributary_truces_effect = { SUZERAIN = $SUZERAIN$ TRIBUTARY = $TRIBUTARY$ }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@truce_duration_war_default = 15
|
@truce_duration_war_default = 15
|
||||||
|
|
@ -3058,6 +3139,14 @@ setup_tributary_truces_effect = {
|
||||||
name = TRUCE_TRIBUTARY
|
name = TRUCE_TRIBUTARY
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { has_government = merchant_government }
|
||||||
|
add_truce_both_ways = {
|
||||||
|
character = $SUZERAIN$
|
||||||
|
years = @truce_duration_negotiated_default
|
||||||
|
name = TRUCE_TRIBUTARY_MERCHANT
|
||||||
|
}
|
||||||
|
}
|
||||||
else = {
|
else = {
|
||||||
add_truce_both_ways = {
|
add_truce_both_ways = {
|
||||||
character = $SUZERAIN$
|
character = $SUZERAIN$
|
||||||
|
|
@ -3301,6 +3390,14 @@ call_ally_interaction_event_effect = {
|
||||||
}
|
}
|
||||||
pam_peace_of_god_personal_tenet_cheaper_alliance_call_effect = yes
|
pam_peace_of_god_personal_tenet_cheaper_alliance_call_effect = yes
|
||||||
}
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
scope:actor = {
|
||||||
|
culture = { has_cultural_parameter = binding_oaths_word_is_trusted }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
gdp_binding_oaths_cheaper_alliance_call_effect = yes
|
||||||
|
}
|
||||||
else = {
|
else = {
|
||||||
add_prestige = {
|
add_prestige = {
|
||||||
value = 0
|
value = 0
|
||||||
|
|
@ -3510,6 +3607,14 @@ ask_for_pardon_interaction_effect = {
|
||||||
}
|
}
|
||||||
|
|
||||||
revoke_title_interaction_effect = {
|
revoke_title_interaction_effect = {
|
||||||
|
if = {
|
||||||
|
limit = { scope:landed_title.tier != tier_barony }
|
||||||
|
gg_triggered_catalyst_effect = {
|
||||||
|
ACTOR = scope:actor
|
||||||
|
RECIPIENT = scope:recipient
|
||||||
|
CATALYST = catalyst_gg_title_revoked_from_opposite_party
|
||||||
|
}
|
||||||
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
scope:recipient = {
|
scope:recipient = {
|
||||||
|
|
@ -3533,6 +3638,23 @@ revoke_title_interaction_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
scope:recipient.capital_county.clerical_region_title.holder ?= {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
faith = scope:puppet_or_actor.faith
|
||||||
|
NOR = {
|
||||||
|
this = scope:puppet_or_actor
|
||||||
|
this = scope:recipient
|
||||||
|
scope:puppet_or_actor.faith.religious_head ?= this
|
||||||
|
}
|
||||||
|
}
|
||||||
|
add_opinion = {
|
||||||
|
target = scope:puppet_or_actor
|
||||||
|
modifier = impious_opinion
|
||||||
|
opinion = -20
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -3695,11 +3817,11 @@ revoke_title_interaction_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# If we're a clan this interaction affects unity
|
# House Unity
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
scope:puppet_or_actor = { government_has_flag = government_is_clan }
|
scope:puppet_or_actor = { government_has_flag = government_uses_house_unity }
|
||||||
scope:recipient = { government_has_flag = government_is_clan }
|
scope:recipient = { government_has_flag = government_uses_house_unity }
|
||||||
exists = scope:puppet_or_actor.house
|
exists = scope:puppet_or_actor.house
|
||||||
exists = scope:recipient.house
|
exists = scope:recipient.house
|
||||||
scope:puppet_or_actor.house = scope:recipient.house
|
scope:puppet_or_actor.house = scope:recipient.house
|
||||||
|
|
@ -3707,27 +3829,21 @@ revoke_title_interaction_effect = {
|
||||||
}
|
}
|
||||||
scope:puppet_or_actor.house = {
|
scope:puppet_or_actor.house = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = { scope:landed_title.tier = tier_county }
|
||||||
scope:landed_title.tier = tier_county
|
|
||||||
}
|
|
||||||
save_scope_value_as = {
|
save_scope_value_as = {
|
||||||
name = revoke_title_unity_loss
|
name = revoke_title_unity_loss
|
||||||
value = minor_unity_loss
|
value = minor_unity_loss
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = {
|
else_if = {
|
||||||
limit = {
|
limit = { scope:landed_title.tier = tier_duchy }
|
||||||
scope:landed_title.tier = tier_duchy
|
|
||||||
}
|
|
||||||
save_scope_value_as = {
|
save_scope_value_as = {
|
||||||
name = revoke_title_unity_loss
|
name = revoke_title_unity_loss
|
||||||
value = medium_unity_loss
|
value = medium_unity_loss
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = { scope:landed_title.tier = tier_kingdom }
|
||||||
scope:landed_title.tier = tier_kingdom
|
|
||||||
}
|
|
||||||
save_scope_value_as = {
|
save_scope_value_as = {
|
||||||
name = revoke_title_unity_loss
|
name = revoke_title_unity_loss
|
||||||
value = major_unity_loss
|
value = major_unity_loss
|
||||||
|
|
@ -3735,7 +3851,7 @@ revoke_title_interaction_effect = {
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = { exists = scope:revoke_title_unity_loss }
|
limit = { exists = scope:revoke_title_unity_loss }
|
||||||
add_clan_unity_interaction_effect = {
|
add_house_unity_interaction_effect = {
|
||||||
CHARACTER = scope:puppet_or_actor
|
CHARACTER = scope:puppet_or_actor
|
||||||
TARGET = scope:recipient
|
TARGET = scope:recipient
|
||||||
VALUE = scope:revoke_title_unity_loss
|
VALUE = scope:revoke_title_unity_loss
|
||||||
|
|
@ -3750,7 +3866,7 @@ revoke_title_interaction_effect = {
|
||||||
scope:recipient = {
|
scope:recipient = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_ep3_dlc_trigger = yes
|
has_playable_adventurer_dlc_trigger = yes
|
||||||
is_valid_for_laampdom = yes
|
is_valid_for_laampdom = yes
|
||||||
}
|
}
|
||||||
# Plus for our memory variable.
|
# Plus for our memory variable.
|
||||||
|
|
@ -3841,19 +3957,15 @@ revoke_title_interaction_effect = {
|
||||||
var:requested_my_excommunication = scope:puppet_or_actor
|
var:requested_my_excommunication = scope:puppet_or_actor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
NOT = {
|
NOT = { has_relation_rival = scope:puppet_or_actor }
|
||||||
has_relation_rival = scope:puppet_or_actor
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = { has_relation_potential_rival = scope:puppet_or_actor }
|
||||||
has_relation_potential_rival = scope:puppet_or_actor
|
|
||||||
}
|
|
||||||
remove_relation_potential_rival = scope:puppet_or_actor
|
remove_relation_potential_rival = scope:puppet_or_actor
|
||||||
}
|
}
|
||||||
set_relation_rival = {
|
set_relation_rival_effect = {
|
||||||
target = scope:puppet_or_actor
|
TARGET = scope:puppet_or_actor
|
||||||
reason = rival_revoked_title_reversed
|
REASON = rival_revoked_title_reversed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
|
|
@ -3880,6 +3992,28 @@ revoke_title_interaction_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Handling for destruction of Republics (losing their last landed county)
|
||||||
|
scope:recipient = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
scope:landed_title = {
|
||||||
|
tier = tier_county
|
||||||
|
is_landless_type_title = no
|
||||||
|
is_noble_family_title = no
|
||||||
|
}
|
||||||
|
gdp_holds_republic_title_trigger = yes
|
||||||
|
NOT = {
|
||||||
|
any_held_county = {
|
||||||
|
is_landless_type_title = no
|
||||||
|
is_noble_family_title = no
|
||||||
|
NOT = { this = scope:landed_title } # last landed county lost
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
gdp_republic_patricians_become_merchants_warning_effect = { DESTROYER = scope:puppet_or_actor }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Penalty for taking the Party Baron's last title. I mean, come on...
|
# Penalty for taking the Party Baron's last title. I mean, come on...
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -4262,10 +4396,20 @@ seek_indulgences_interaction_effect = {
|
||||||
}
|
}
|
||||||
else = { remove_trait = gallowsbait }
|
else = { remove_trait = gallowsbait }
|
||||||
}
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { has_trait = dealbreaker }
|
||||||
|
pay_treasury_or_gold = {
|
||||||
|
target = scope:recipient
|
||||||
|
value = seek_indulgences_minor_criminal_trait_value
|
||||||
|
}
|
||||||
|
remove_trait = dealbreaker
|
||||||
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
scope:recipient = {
|
scope:actor.faith = {
|
||||||
pam_antipope_is_sponsored_by_trigger = { SPONSOR = scope:actor }
|
any_religious_head_challenger = {
|
||||||
|
holder ?= scope:recipient
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
send_interface_message = {
|
send_interface_message = {
|
||||||
|
|
@ -4497,6 +4641,7 @@ hof_ask_for_gold_interaction_effect = {
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
faith.religious_head ?= scope:recipient
|
||||||
any_vassal = {
|
any_vassal = {
|
||||||
vassal_stance = zealot
|
vassal_stance = zealot
|
||||||
}
|
}
|
||||||
|
|
@ -4871,6 +5016,10 @@ revoke_holy_order_lease_effect = {
|
||||||
save_scope_as = holy_order
|
save_scope_as = holy_order
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if = { # The faith search can find no order they lead
|
||||||
|
limit = { NOT = { exists = scope:holy_order } }
|
||||||
|
holy_order ?= { save_scope_as = holy_order }
|
||||||
|
}
|
||||||
primary_title = {
|
primary_title = {
|
||||||
save_scope_as = holy_order_title
|
save_scope_as = holy_order_title
|
||||||
}
|
}
|
||||||
|
|
@ -4984,6 +5133,7 @@ revoke_holy_order_lease_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#TODO_PAM_JC Revoking titles from High Worldliness Orders should have severe consequences, but cost less spiritual fulfillment
|
||||||
$CHARACTER$ = {
|
$CHARACTER$ = {
|
||||||
send_interface_message = {
|
send_interface_message = {
|
||||||
type = holy_order_lease_revoked_message
|
type = holy_order_lease_revoked_message
|
||||||
|
|
@ -4994,8 +5144,8 @@ revoke_holy_order_lease_effect = {
|
||||||
$BARONY$ = {
|
$BARONY$ = {
|
||||||
save_scope_as = barony
|
save_scope_as = barony
|
||||||
county = {
|
county = {
|
||||||
#Scaled development loss based on level of holding
|
#Scaled prosperity loss based on level of holding
|
||||||
change_development_level = revoking_lease_development_cost
|
change_prosperity_level = revoking_lease_prosperity_cost
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -5067,7 +5217,7 @@ revoke_holy_order_lease_effect = {
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
if = {
|
if = {
|
||||||
limit = { exists = $CHARACTER$.faith.religious_head }
|
limit = { exists = $CHARACTER$.faith.religious_head $CHARACTER$.faith.religious_head != $CHARACTER$ } # The canceller can be the head of faith
|
||||||
$CHARACTER$.faith.religious_head = {
|
$CHARACTER$.faith.religious_head = {
|
||||||
add_opinion = {
|
add_opinion = {
|
||||||
modifier = pleased_opinion
|
modifier = pleased_opinion
|
||||||
|
|
@ -5105,6 +5255,7 @@ revoke_holy_order_lease_effect = {
|
||||||
modifier = lost_holy_order_modifier
|
modifier = lost_holy_order_modifier
|
||||||
years = 10
|
years = 10
|
||||||
}
|
}
|
||||||
|
change_county_control = -5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -5141,6 +5292,18 @@ revoke_holy_order_lease_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#TODO_PAM_JC Worldliness gain reduction as result of having fewer monasteries
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
scope:holy_order = {
|
||||||
|
num_leased_titles > 1
|
||||||
|
}
|
||||||
|
$TARGET$ = {
|
||||||
|
government_has_flag = government_is_monastic_holy_order
|
||||||
|
}
|
||||||
|
}
|
||||||
|
custom_tooltip = reduces_order_worldliness_tt
|
||||||
|
}
|
||||||
# revoke_lease clears $BARONY$.lessee, so it must run after all $TARGET$ (= scope:barony.lessee) checks above.
|
# revoke_lease clears $BARONY$.lessee, so it must run after all $TARGET$ (= scope:barony.lessee) checks above.
|
||||||
$BARONY$ = {
|
$BARONY$ = {
|
||||||
revoke_lease = yes
|
revoke_lease = yes
|
||||||
|
|
@ -5251,6 +5414,106 @@ apply_clan_unity_interaction_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_house_unity_interaction_effect = {
|
||||||
|
if = {
|
||||||
|
limit = { # Check if unity is relevant
|
||||||
|
exists = $TARGET$.house
|
||||||
|
$CHARACTER$.house ?= $TARGET$.house
|
||||||
|
$CHARACTER$ = { government_has_flag = government_uses_house_unity }
|
||||||
|
$TARGET$ = { government_has_flag = government_uses_house_unity }
|
||||||
|
trigger_if = {
|
||||||
|
limit = {
|
||||||
|
exists = scope:actor
|
||||||
|
exists = scope:recipient
|
||||||
|
scope:actor != scope:recipient
|
||||||
|
}
|
||||||
|
NOT = { $CHARACTER$ = $TARGET$ } # As a safety, let's make sure that we are not interacting with ourselves
|
||||||
|
}
|
||||||
|
}
|
||||||
|
apply_house_unity_interaction_effect = {
|
||||||
|
CHARACTER = $CHARACTER$
|
||||||
|
TARGET = $TARGET$
|
||||||
|
DESC = $DESC$
|
||||||
|
VALUE = $VALUE$
|
||||||
|
VALUE_REVERSED = no
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { # Only apply reversed effect for the house head to keep the gauge in check
|
||||||
|
$REVERSE_NON_HOUSE_TARGET$ = yes
|
||||||
|
$CHARACTER$ = {
|
||||||
|
house.house_head ?= $CHARACTER$
|
||||||
|
government_has_flag = government_uses_house_unity
|
||||||
|
}
|
||||||
|
OR = {
|
||||||
|
AND = {
|
||||||
|
exists = $TARGET$.house
|
||||||
|
NOT = { $CHARACTER$.house = $TARGET$.house }
|
||||||
|
}
|
||||||
|
$TARGET$ = { is_lowborn = yes }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
apply_house_unity_interaction_effect = {
|
||||||
|
CHARACTER = $CHARACTER$
|
||||||
|
TARGET = $TARGET$
|
||||||
|
DESC = $DESC$
|
||||||
|
VALUE = $VALUE$
|
||||||
|
VALUE_REVERSED = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
apply_house_unity_interaction_effect = {
|
||||||
|
# Save scopes for localisation
|
||||||
|
$CHARACTER$ = { save_scope_as = unity_character }
|
||||||
|
$TARGET$ = { save_scope_as = unity_target }
|
||||||
|
|
||||||
|
$CHARACTER$.house ?= {
|
||||||
|
save_scope_as = character_house
|
||||||
|
|
||||||
|
add_unity_value = {
|
||||||
|
value = {
|
||||||
|
value = $VALUE$
|
||||||
|
if = { # House heads have a larger impact on unity
|
||||||
|
limit = { house_head ?= $CHARACTER$ }
|
||||||
|
multiply = unity_house_head_multiplier_value
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
house_head.culture = { has_cultural_parameter = increased_company_direction_gain }
|
||||||
|
}
|
||||||
|
multiply = 2
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { $VALUE_REVERSED$ = yes }
|
||||||
|
multiply = -1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
character = $CHARACTER$
|
||||||
|
desc = $DESC$
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Notify human players if they are not involved!
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
trigger_if = {
|
||||||
|
limit = { $VALUE$ >= 0 }
|
||||||
|
$VALUE$ >= major_unity_value
|
||||||
|
}
|
||||||
|
trigger_else = {
|
||||||
|
$VALUE$ <= major_unity_value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# Notify human players if they are not involved!
|
||||||
|
notify_players_about_unity_change_effect = {
|
||||||
|
CHARACTER = $CHARACTER$
|
||||||
|
TARGET = $TARGET$
|
||||||
|
DESC = $DESC$
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
diarch_declare_recipient_criminal_effect = {
|
diarch_declare_recipient_criminal_effect = {
|
||||||
scope:actor = {
|
scope:actor = {
|
||||||
# First we process the diarch.
|
# First we process the diarch.
|
||||||
|
|
@ -5685,3 +5948,58 @@ ai_religious_request_blocker_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
invite_to_court_interaction_effect = {
|
||||||
|
$ACTOR$ = { save_scope_as = actor_scope }
|
||||||
|
$RECIPIENT$ = { save_scope_as = recipient_scope }
|
||||||
|
hidden_effect = {
|
||||||
|
scope:recipient_scope = {
|
||||||
|
set_variable = {
|
||||||
|
name = invite_to_court_cooldown
|
||||||
|
years = 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
exists = scope:recipient_scope.liege
|
||||||
|
}
|
||||||
|
scope:recipient_scope.liege = {
|
||||||
|
send_interface_message = {
|
||||||
|
type = event_generic_neutral
|
||||||
|
title = msg_courtier_left_court_interaction_title
|
||||||
|
|
||||||
|
right_icon = scope:recipient_scope
|
||||||
|
|
||||||
|
show_as_tooltip = {
|
||||||
|
remove_courtier_or_guest = scope:recipient_scope
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
scope:actor_scope = {
|
||||||
|
send_interface_message = {
|
||||||
|
type = event_generic_neutral
|
||||||
|
title = invite_to_court_interaction_notification
|
||||||
|
right_icon = scope:recipient_scope
|
||||||
|
|
||||||
|
scope:recipient_scope = {
|
||||||
|
every_traveling_family_member = {
|
||||||
|
scope:actor_scope = { add_courtier = prev }
|
||||||
|
hidden_effect = {
|
||||||
|
return_to_court = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = { always = scope:hook }
|
||||||
|
scope:actor_scope = {
|
||||||
|
use_hook = scope:recipient_scope
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -146,6 +146,7 @@ assign_random_nickname_effect = {
|
||||||
government_has_flag = government_is_theocracy
|
government_has_flag = government_is_theocracy
|
||||||
government_has_flag = government_is_landless_adventurer
|
government_has_flag = government_is_landless_adventurer
|
||||||
}
|
}
|
||||||
|
is_landed = yes
|
||||||
NOT = { exists = scope:had_nick_the_faith }
|
NOT = { exists = scope:had_nick_the_faith }
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
|
|
@ -218,7 +219,7 @@ assign_random_nickname_effect = {
|
||||||
count >= 4
|
count >= 4
|
||||||
title_tier = county
|
title_tier = county
|
||||||
title_province = {
|
title_province = {
|
||||||
has_ongoing_construction = yes
|
has_ongoing_holding_construction = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
NOT = { exists = scope:had_nick_the_builder }
|
NOT = { exists = scope:had_nick_the_builder }
|
||||||
|
|
@ -228,7 +229,7 @@ assign_random_nickname_effect = {
|
||||||
count = all
|
count = all
|
||||||
title_tier = county
|
title_tier = county
|
||||||
title_province = {
|
title_province = {
|
||||||
has_ongoing_construction = yes
|
has_ongoing_holding_construction = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
factor = 2
|
factor = 2
|
||||||
|
|
@ -3083,7 +3084,7 @@ assign_random_nickname_effect = {
|
||||||
trigger = {
|
trigger = {
|
||||||
has_education_martial_trigger = yes
|
has_education_martial_trigger = yes
|
||||||
exists = capital_county
|
exists = capital_county
|
||||||
capital_county.county_opinion >= 50
|
capital_county.popular_opinion >= 50
|
||||||
NOT = { exists = scope:had_nick_the_shield_of_capital }
|
NOT = { exists = scope:had_nick_the_shield_of_capital }
|
||||||
}
|
}
|
||||||
give_nickname = nick_the_shield_of_capital
|
give_nickname = nick_the_shield_of_capital
|
||||||
|
|
@ -3337,7 +3338,7 @@ assign_random_nickname_effect = {
|
||||||
count >= 4
|
count >= 4
|
||||||
title_tier = county
|
title_tier = county
|
||||||
title_province = {
|
title_province = {
|
||||||
has_ongoing_construction = yes
|
has_ongoing_holding_construction = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
NOT = { exists = scope:had_nick_the_castellan }
|
NOT = { exists = scope:had_nick_the_castellan }
|
||||||
|
|
@ -3347,7 +3348,7 @@ assign_random_nickname_effect = {
|
||||||
count = all
|
count = all
|
||||||
title_tier = county
|
title_tier = county
|
||||||
title_province = {
|
title_province = {
|
||||||
has_ongoing_construction = yes
|
has_ongoing_holding_construction = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
factor = 2
|
factor = 2
|
||||||
|
|
@ -3367,7 +3368,7 @@ assign_random_nickname_effect = {
|
||||||
count >= 4
|
count >= 4
|
||||||
title_tier = county
|
title_tier = county
|
||||||
title_province = {
|
title_province = {
|
||||||
has_ongoing_construction = yes
|
has_ongoing_holding_construction = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
NOT = { exists = scope:had_nick_the_carpenter }
|
NOT = { exists = scope:had_nick_the_carpenter }
|
||||||
|
|
@ -3377,7 +3378,7 @@ assign_random_nickname_effect = {
|
||||||
count = all
|
count = all
|
||||||
title_tier = county
|
title_tier = county
|
||||||
title_province = {
|
title_province = {
|
||||||
has_ongoing_construction = yes
|
has_ongoing_holding_construction = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
factor = 2
|
factor = 2
|
||||||
|
|
@ -4365,6 +4366,7 @@ set_random_negative_nickname_effect = {
|
||||||
government_has_flag = government_is_theocracy
|
government_has_flag = government_is_theocracy
|
||||||
government_has_flag = government_is_landless_adventurer
|
government_has_flag = government_is_landless_adventurer
|
||||||
}
|
}
|
||||||
|
is_landed = yes
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
has_trait = zealous
|
has_trait = zealous
|
||||||
|
|
|
||||||
|
|
@ -533,6 +533,10 @@ add_excommunication_tooltip_only_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_excommunication_actual_effect = {
|
add_excommunication_actual_effect = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { has_trait = excommunicated }
|
||||||
|
}
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
text = get_excommunicated_tt
|
text = get_excommunicated_tt
|
||||||
add_trait = excommunicated
|
add_trait = excommunicated
|
||||||
|
|
@ -541,6 +545,32 @@ add_excommunication_actual_effect = {
|
||||||
modifier = recent_excommunication
|
modifier = recent_excommunication
|
||||||
days = 365
|
days = 365
|
||||||
}
|
}
|
||||||
|
#Guelphs & Ghibellines
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
exists = situation:guelph_ghibelline
|
||||||
|
exists = scope:requesting_character
|
||||||
|
gg_phase_is_pre_gg_trigger = yes
|
||||||
|
is_ghibelline_trigger = yes
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { is_ghibelline_leader_trigger = yes }
|
||||||
|
gg_triggered_catalyst_effect = {
|
||||||
|
ACTOR = scope:requesting_character
|
||||||
|
RECIPIENT = scope:target_character
|
||||||
|
CATALYST = catalyst_excommunicated_hre
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
gg_triggered_catalyst_effect = {
|
||||||
|
ACTOR = scope:requesting_character
|
||||||
|
RECIPIENT = scope:target_character
|
||||||
|
CATALYST = catalyst_excommunicated_ghibellines
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scope:requesting_character = { gg_involvement_catalyst_effect = yes }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
add_excommunication_actual_effect_5_years_version = {
|
add_excommunication_actual_effect_5_years_version = {
|
||||||
|
|
@ -563,6 +593,25 @@ create_holy_order_neutral_effect = {
|
||||||
capital = $CAPITAL$
|
capital = $CAPITAL$
|
||||||
save_scope_as = $NEW_HO_SCOPE$
|
save_scope_as = $NEW_HO_SCOPE$
|
||||||
}
|
}
|
||||||
|
# Struggle Catalysts.
|
||||||
|
$FOUNDER$ = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
any_character_struggle = {
|
||||||
|
involvement = involved
|
||||||
|
phase_has_catalyst = catalyst_creating_a_holy_order
|
||||||
|
}
|
||||||
|
}
|
||||||
|
every_character_struggle = {
|
||||||
|
involvement = involved
|
||||||
|
limit = { phase_has_catalyst = catalyst_creating_a_holy_order }
|
||||||
|
activate_struggle_catalyst = {
|
||||||
|
catalyst = catalyst_creating_a_holy_order
|
||||||
|
character = $FOUNDER$
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Get random faith
|
# Get random faith
|
||||||
|
|
@ -814,16 +863,21 @@ remove_sinful_trait_effect = {
|
||||||
scope:trait_changer.rite = {
|
scope:trait_changer.rite = {
|
||||||
trait_is_sin_rite = prev
|
trait_is_sin_rite = prev
|
||||||
}
|
}
|
||||||
|
trait_can_be_edited_by_yourself_trigger = yes
|
||||||
}
|
}
|
||||||
save_scope_as = sinful_trait
|
save_scope_as = sinful_trait
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:sinful_trait }
|
||||||
remove_trait = scope:sinful_trait
|
remove_trait = scope:sinful_trait
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
add_virtuous_trait_effect = {
|
add_virtuous_trait_effect = {
|
||||||
save_scope_as = trait_changer
|
save_scope_as = trait_changer
|
||||||
random_trait = {
|
random_trait = {
|
||||||
limit = {
|
limit = {
|
||||||
|
trait_can_be_edited_by_yourself_trigger = yes
|
||||||
save_temporary_scope_as = temp_trait
|
save_temporary_scope_as = temp_trait
|
||||||
scope:trait_changer.rite = {
|
scope:trait_changer.rite = {
|
||||||
trait_is_virtue_rite = prev
|
trait_is_virtue_rite = prev
|
||||||
|
|
@ -851,6 +905,23 @@ add_virtuous_trait_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
weight = {
|
||||||
|
base = 1
|
||||||
|
modifier = {
|
||||||
|
add = 100
|
||||||
|
scope:trait_changer = {
|
||||||
|
number_of_personality_traits < 3
|
||||||
|
}
|
||||||
|
has_trait_category = personality
|
||||||
|
}
|
||||||
|
modifier = {
|
||||||
|
add = -1
|
||||||
|
scope:trait_changer = {
|
||||||
|
number_of_personality_traits > 3
|
||||||
|
}
|
||||||
|
has_trait_category = personality
|
||||||
|
}
|
||||||
|
}
|
||||||
save_scope_as = virtuous_trait
|
save_scope_as = virtuous_trait
|
||||||
}
|
}
|
||||||
add_trait_force_tooltip = scope:virtuous_trait
|
add_trait_force_tooltip = scope:virtuous_trait
|
||||||
|
|
@ -1322,30 +1393,30 @@ release_dynamic_holy_site_kingdom_effect = {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Province scope, $FAITH$ = faith, used at start and on new holy-site creation
|
# Province scope, $FAITH$ = faith, used at start and on new holy-site creation
|
||||||
add_holy_site_fallback_special_building_slot_effect = {
|
add_holy_site_fallback_special_district_slot_effect = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_special_building_slot = no
|
has_special_district_slot = no
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = { $FAITH$ = { religion = religion:islam_religion } }
|
limit = { $FAITH$ = { religion = religion:islam_religion } }
|
||||||
add_special_building_slot = holy_site_mosque_01
|
add_special_district_slot = holy_site_mosque_01_district
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = { $FAITH$ = { religion = religion:christianity_religion } }
|
limit = { $FAITH$ = { religion = religion:christianity_religion } }
|
||||||
add_special_building_slot = holy_site_cathedral_01
|
add_special_district_slot = holy_site_cathedral_01_district
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = { $FAITH$ = { religion = religion:zoroastrianism_religion } }
|
limit = { $FAITH$ = { religion = religion:zoroastrianism_religion } }
|
||||||
add_special_building_slot = holy_site_fire_temple_01
|
add_special_district_slot = holy_site_fire_temple_01_district
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = { $FAITH$ = { religion = religion:buddhism_religion } }
|
limit = { $FAITH$ = { religion = religion:buddhism_religion } }
|
||||||
add_special_building_slot = holy_site_buddhist_grand_temple_01
|
add_special_district_slot = holy_site_buddhist_grand_temple_01_district
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = { $FAITH$ = { religion = religion:shintoism_religion } }
|
limit = { $FAITH$ = { religion = religion:shintoism_religion } }
|
||||||
add_special_building_slot = holy_site_japanese_temple_01
|
add_special_district_slot = holy_site_japanese_temple_01_district
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -1356,7 +1427,7 @@ add_holy_site_fallback_special_building_slot_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_special_building_slot = holy_site_chinese_temple_01
|
add_special_district_slot = holy_site_chinese_temple_01_district
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -1371,7 +1442,7 @@ add_holy_site_fallback_special_building_slot_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_special_building_slot = holy_site_indian_grand_temple_01
|
add_special_district_slot = holy_site_indian_grand_temple_01_district
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -1390,14 +1461,14 @@ add_holy_site_fallback_special_building_slot_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_special_building_slot = holy_site_se_asia_pagan_temple_01
|
add_special_district_slot = holy_site_se_asia_pagan_temple_01_district
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = { $FAITH$ = { religion = { is_in_family = rf_pagan } } }
|
limit = { $FAITH$ = { religion = { is_in_family = rf_pagan } } }
|
||||||
add_special_building_slot = holy_site_pagan_grand_temple_01
|
add_special_district_slot = holy_site_pagan_grand_temple_01_district
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
add_special_building_slot = holy_site_other_grand_temple_01
|
add_special_district_slot = holy_site_other_grand_temple_01_district
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -406,6 +406,7 @@ generic_scheme_process_ending_effect = {
|
||||||
scope:owner = {
|
scope:owner = {
|
||||||
play_sound_effect = "event:/DLC/EP3/SFX/Stingers/Scheme_Rework/ep3_mx_sting_schemerework_positive"
|
play_sound_effect = "event:/DLC/EP3/SFX/Stingers/Scheme_Rework/ep3_mx_sting_schemerework_positive"
|
||||||
mandala_trickster_increment_successful_schemes_effect = yes
|
mandala_trickster_increment_successful_schemes_effect = yes
|
||||||
|
gg_involvement_scheme_effect = { STATE = success }
|
||||||
}
|
}
|
||||||
|
|
||||||
# Keep the commanding puppeteer informed of the outcome of the scheme they ordered.
|
# Keep the commanding puppeteer informed of the outcome of the scheme they ordered.
|
||||||
|
|
@ -11384,66 +11385,33 @@ cap_schemes_and_fire_reminders_effect = {
|
||||||
}
|
}
|
||||||
switch = {
|
switch = {
|
||||||
trigger = scheme_type
|
trigger = scheme_type
|
||||||
murder = {
|
murder = { murder_scheme_prep_effect = yes }
|
||||||
murder_scheme_prep_effect = yes
|
abduct = { abduct_scheme_prep_effect = yes }
|
||||||
}
|
challenge_status = { challenge_status_scheme_prep_effect = yes }
|
||||||
abduct = {
|
claim_throne = { claim_throne_scheme_prep_effect = yes }
|
||||||
abduct_scheme_prep_effect = yes
|
depose = { depose_scheme_prep_effect = yes }
|
||||||
}
|
overthrow_regent = { overthrow_regent_scheme_prep_effect = yes }
|
||||||
challenge_status = {
|
expand_power_base = { expand_power_base_scheme_prep_effect = yes }
|
||||||
challenge_status_scheme_prep_effect = yes
|
fabricate_hook = { fabricate_hook_scheme_prep_effect = yes }
|
||||||
}
|
generate_claim = { generate_claim_scheme_prep_effect = yes }
|
||||||
claim_throne = {
|
promote = { promote_scheme_prep_effect = yes }
|
||||||
claim_throne_scheme_prep_effect = yes
|
patrician_promote = { promote_scheme_prep_effect = yes }
|
||||||
}
|
slander = { slander_scheme_prep_effect = yes }
|
||||||
depose = {
|
patrician_slander = { slander_scheme_prep_effect = yes }
|
||||||
depose_scheme_prep_effect = yes
|
patrician_find_secrets = { gdp_patrician_find_secrets_scheme_prep_effect = yes }
|
||||||
}
|
steal_back_artifact = { steal_back_artifact_scheme_prep_effect = yes }
|
||||||
overthrow_regent = {
|
seize_realm = { seize_realm_scheme_prep_effect = yes }
|
||||||
overthrow_regent_scheme_prep_effect = yes
|
found_despotate = { found_despotate_scheme_prep_effect = yes }
|
||||||
}
|
raid_estate = { raid_estate_scheme_prep_effect = yes }
|
||||||
expand_power_base = {
|
prepare_fire_dromons_scheme = { prepare_fire_dromons_scheme_prep_effect = yes }
|
||||||
expand_power_base_scheme_prep_effect = yes
|
steal_herd = { steal_herd_scheme_prep_effect = yes }
|
||||||
}
|
celestial_siphon_treasury = { celestial_siphon_treasury_prep_effect = yes }
|
||||||
fabricate_hook = {
|
disbelieve_mandala = { disbelieve_mandala_scheme_prep_effect = yes }
|
||||||
fabricate_hook_scheme_prep_effect = yes
|
coerce_tributary = { coerce_tributary_scheme_prep_effect = yes }
|
||||||
}
|
gg_switch_sides = { gg_switch_sides_scheme_prep_effect = yes }
|
||||||
generate_claim = {
|
gg_claim_leadership = { gg_claim_leadership_scheme_prep_effect = yes }
|
||||||
generate_claim_scheme_prep_effect = yes
|
gg_align_undecided = { gg_align_undecided_scheme_prep_effect = yes }
|
||||||
}
|
gg_replace_ruler = { gg_replace_ruler_scheme_prep_effect = yes }
|
||||||
promote = {
|
|
||||||
promote_scheme_prep_effect = yes
|
|
||||||
}
|
|
||||||
slander = {
|
|
||||||
slander_scheme_prep_effect = yes
|
|
||||||
}
|
|
||||||
steal_back_artifact = {
|
|
||||||
steal_back_artifact_scheme_prep_effect = yes
|
|
||||||
}
|
|
||||||
seize_realm = {
|
|
||||||
seize_realm_scheme_prep_effect = yes
|
|
||||||
}
|
|
||||||
found_despotate = {
|
|
||||||
found_despotate_scheme_prep_effect = yes
|
|
||||||
}
|
|
||||||
raid_estate = {
|
|
||||||
raid_estate_scheme_prep_effect = yes
|
|
||||||
}
|
|
||||||
prepare_fire_dromons_scheme = {
|
|
||||||
prepare_fire_dromons_scheme_prep_effect = yes
|
|
||||||
}
|
|
||||||
steal_herd = {
|
|
||||||
steal_herd_scheme_prep_effect = yes
|
|
||||||
}
|
|
||||||
celestial_siphon_treasury = {
|
|
||||||
celestial_siphon_treasury_prep_effect = yes
|
|
||||||
}
|
|
||||||
disbelieve_mandala = {
|
|
||||||
disbelieve_mandala_scheme_prep_effect = yes
|
|
||||||
}
|
|
||||||
coerce_tributary = {
|
|
||||||
coerce_tributary_scheme_prep_effect = yes
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# If the player hasn't been reminded once, tell them that their scheme has hit max opportunities.
|
# If the player hasn't been reminded once, tell them that their scheme has hit max opportunities.
|
||||||
|
|
@ -11803,6 +11771,34 @@ fabricate_hook_scheme_prep_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
overthrow_government_scheme_prep_effect = {
|
||||||
|
save_scope_as = scheme
|
||||||
|
save_scope_value_as = {
|
||||||
|
name = follow_up_event
|
||||||
|
value = event_id:scheme_critical_moments.8310
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { exists = scope:suppress_next_event }
|
||||||
|
}
|
||||||
|
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
gdp_incite_unrest_scheme_prep_effect = {
|
||||||
|
save_scope_as = scheme
|
||||||
|
save_scope_value_as = {
|
||||||
|
name = follow_up_event
|
||||||
|
value = event_id:gdp_incite_unrest_scheme_event.0004
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { exists = scope:suppress_next_event }
|
||||||
|
}
|
||||||
|
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foster_legitimacy_scheme_prep_effect = {
|
foster_legitimacy_scheme_prep_effect = {
|
||||||
roll_critical_moment_options_03_agent_types_effect = {
|
roll_critical_moment_options_03_agent_types_effect = {
|
||||||
# Success results event.
|
# Success results event.
|
||||||
|
|
@ -12104,6 +12100,62 @@ leverage_contribution_scheme_prep_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gg_switch_sides_scheme_prep_effect = {
|
||||||
|
save_scope_as = scheme
|
||||||
|
save_scope_value_as = {
|
||||||
|
name = follow_up_event
|
||||||
|
value = event_id:scheme_critical_moments.1261
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { exists = scope:suppress_next_event }
|
||||||
|
}
|
||||||
|
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
gg_claim_leadership_scheme_prep_effect = {
|
||||||
|
save_scope_as = scheme
|
||||||
|
save_scope_value_as = {
|
||||||
|
name = follow_up_event
|
||||||
|
value = event_id:scheme_critical_moments.1271
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { exists = scope:suppress_next_event }
|
||||||
|
}
|
||||||
|
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
gg_align_undecided_scheme_prep_effect = {
|
||||||
|
save_scope_as = scheme
|
||||||
|
save_scope_value_as = {
|
||||||
|
name = follow_up_event
|
||||||
|
value = event_id:scheme_critical_moments.1281
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { exists = scope:suppress_next_event }
|
||||||
|
}
|
||||||
|
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
gg_replace_ruler_scheme_prep_effect = {
|
||||||
|
save_scope_as = scheme
|
||||||
|
save_scope_value_as = {
|
||||||
|
name = follow_up_event
|
||||||
|
value = event_id:scheme_critical_moments.1291
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { exists = scope:suppress_next_event }
|
||||||
|
}
|
||||||
|
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
##################################################
|
##################################################
|
||||||
# AI Usage Critical Moment Effects — Contract Schemes
|
# AI Usage Critical Moment Effects — Contract Schemes
|
||||||
|
|
||||||
|
|
@ -12736,6 +12788,22 @@ celestial_minister_find_secrets_scheme_prep_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gdp_patrician_find_secrets_scheme_prep_effect = {
|
||||||
|
save_scope_as = scheme
|
||||||
|
scheme_owner = { save_scope_as = owner }
|
||||||
|
scheme_target_character = { save_scope_as = target }
|
||||||
|
save_scope_value_as = {
|
||||||
|
name = follow_up_event
|
||||||
|
value = event_id:gdp_patrician_find_secrets.0001
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { exists = scope:suppress_next_event }
|
||||||
|
}
|
||||||
|
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
##################################################
|
##################################################
|
||||||
# Murder Scheme Effects
|
# Murder Scheme Effects
|
||||||
|
|
||||||
|
|
@ -12779,6 +12847,8 @@ murder_consequences_known_or_exposed_apply_dread_effect = {
|
||||||
|
|
||||||
# Apply scope:owner's general ending & consequences.
|
# Apply scope:owner's general ending & consequences.
|
||||||
scheme_owner_pov_murder_success_effect = {
|
scheme_owner_pov_murder_success_effect = {
|
||||||
|
#Guelphs & Ghibellines Involvement
|
||||||
|
gg_involvement_scheme_effect = { STATE = success }
|
||||||
# Murdering your rival gets you some bonus cred.
|
# Murdering your rival gets you some bonus cred.
|
||||||
## Presumably in how you comport yourself & who's a thorn in your side.
|
## Presumably in how you comport yourself & who's a thorn in your side.
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -12794,6 +12864,12 @@ scheme_owner_pov_murder_success_effect = {
|
||||||
if = {
|
if = {
|
||||||
limit = { exists = scope:scheme_discovered }
|
limit = { exists = scope:scheme_discovered }
|
||||||
murder_consequences_known_or_exposed_apply_dread_effect = { VICTIM = scope:target }
|
murder_consequences_known_or_exposed_apply_dread_effect = { VICTIM = scope:target }
|
||||||
|
#Guelphs & Ghibellines
|
||||||
|
gg_triggered_catalyst_effect = {
|
||||||
|
ACTOR = scope:owner
|
||||||
|
RECIPIENT = scope:target
|
||||||
|
CATALYST = catalyst_attempt_murder_opposite_party
|
||||||
|
}
|
||||||
}
|
}
|
||||||
# Piety, if appropriate.
|
# Piety, if appropriate.
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -12953,6 +13029,13 @@ murder_success_kill_entourage_too_effect = {
|
||||||
|
|
||||||
# Distribute murder failure effects.
|
# Distribute murder failure effects.
|
||||||
murder_failure_effect = {
|
murder_failure_effect = {
|
||||||
|
#Guelphs & Ghibellines
|
||||||
|
gg_involvement_scheme_effect = { STATE = failure }
|
||||||
|
gg_triggered_catalyst_effect = {
|
||||||
|
ACTOR = scope:owner
|
||||||
|
RECIPIENT = scope:target
|
||||||
|
CATALYST = catalyst_attempt_murder_opposite_party
|
||||||
|
}
|
||||||
# Add Watchful Modifier to the target
|
# Add Watchful Modifier to the target
|
||||||
scope:target = {
|
scope:target = {
|
||||||
add_character_modifier = {
|
add_character_modifier = {
|
||||||
|
|
@ -12969,7 +13052,7 @@ murder_failure_effect = {
|
||||||
limit = {
|
limit = {
|
||||||
scope:target = { is_landed = yes }
|
scope:target = { is_landed = yes }
|
||||||
}
|
}
|
||||||
add_clan_unity_interaction_effect = {
|
add_house_unity_interaction_effect = {
|
||||||
CHARACTER = scope:owner
|
CHARACTER = scope:owner
|
||||||
TARGET = scope:target
|
TARGET = scope:target
|
||||||
VALUE = medium_unity_loss
|
VALUE = medium_unity_loss
|
||||||
|
|
@ -12979,7 +13062,7 @@ murder_failure_effect = {
|
||||||
}
|
}
|
||||||
## For unlanded characters, we don't care as much, but you still lose some.
|
## For unlanded characters, we don't care as much, but you still lose some.
|
||||||
else = {
|
else = {
|
||||||
add_clan_unity_interaction_effect = {
|
add_house_unity_interaction_effect = {
|
||||||
CHARACTER = scope:owner
|
CHARACTER = scope:owner
|
||||||
TARGET = scope:target
|
TARGET = scope:target
|
||||||
VALUE = minor_unity_loss
|
VALUE = minor_unity_loss
|
||||||
|
|
@ -14148,6 +14231,7 @@ set_random_entertainment_text_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
1 = {
|
1 = {
|
||||||
|
#Not in Byzantium
|
||||||
trigger = {
|
trigger = {
|
||||||
OR = {
|
OR = {
|
||||||
root.culture = {
|
root.culture = {
|
||||||
|
|
@ -14516,24 +14600,31 @@ abduct_outcome_roll_effect = {
|
||||||
hidden_effect = {
|
hidden_effect = {
|
||||||
#FIRE CORRECT ON ACTIONS
|
#FIRE CORRECT ON ACTIONS
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = { exists = scope:scheme_successful }
|
||||||
exists = scope:scheme_successful
|
trigger_event = { on_action = abduct_succeeded }
|
||||||
}
|
|
||||||
trigger_event = {
|
|
||||||
on_action = abduct_succeeded
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
trigger_event = {
|
if = {
|
||||||
on_action = abduct_failed
|
limit = {
|
||||||
|
NOT = { exists = scope:scheme_discovered }
|
||||||
}
|
}
|
||||||
|
#Guelphs & Ghibellines
|
||||||
|
gg_failed_scheme_effect = { SCHEME = abduct }
|
||||||
|
}
|
||||||
|
trigger_event = { on_action = abduct_failed }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#Used in the immediate of the Scheme Owner's success event
|
#Used in the immediate of the Scheme Owner's success event
|
||||||
abduct_success_effect = {
|
abduct_success_effect = {
|
||||||
|
#Guelphs & Ghibellines
|
||||||
|
gg_involvement_scheme_effect = { STATE = success }
|
||||||
|
gg_triggered_catalyst_effect = {
|
||||||
|
ACTOR = scope:owner
|
||||||
|
RECIPIENT = scope:target
|
||||||
|
CATALYST = catalyst_attempt_abduct_opposite_party
|
||||||
|
}
|
||||||
scope:target = {
|
scope:target = {
|
||||||
add_character_flag = {
|
add_character_flag = {
|
||||||
flag = was_abducted_block_notification_event
|
flag = was_abducted_block_notification_event
|
||||||
|
|
@ -14560,6 +14651,10 @@ abduct_success_effect = {
|
||||||
TARGET = scope:target
|
TARGET = scope:target
|
||||||
IMPRISONER = scope:owner
|
IMPRISONER = scope:owner
|
||||||
}
|
}
|
||||||
|
abduct_relatives_opinion_effect = {
|
||||||
|
VICTIM = scope:target
|
||||||
|
ABDUCTER = scope:owner
|
||||||
|
}
|
||||||
|
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -14739,9 +14834,9 @@ failed_befriend_opinion_critical_change_effect = {
|
||||||
NOT = { has_relation_rival = root }
|
NOT = { has_relation_rival = root }
|
||||||
}
|
}
|
||||||
hidden_effect = { remove_relation_potential_rival = root }
|
hidden_effect = { remove_relation_potential_rival = root }
|
||||||
set_relation_rival = {
|
set_relation_rival_effect = {
|
||||||
target = root
|
TARGET = root
|
||||||
reason = rival_disastrous_befriend_attempt
|
REASON = rival_disastrous_befriend_attempt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -14754,9 +14849,7 @@ failed_befriend_opinion_critical_change_effect = {
|
||||||
claim_throne_outcome_roll_setup_effect = {
|
claim_throne_outcome_roll_setup_effect = {
|
||||||
# Find appropriate title
|
# Find appropriate title
|
||||||
scope:target = {
|
scope:target = {
|
||||||
primary_title = {
|
primary_title = { save_scope_as = target_title }
|
||||||
save_scope_as = target_title
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
# Discovery Roll setup
|
# Discovery Roll setup
|
||||||
save_scope_value_as = {
|
save_scope_value_as = {
|
||||||
|
|
@ -14922,9 +15015,9 @@ claim_throne_failure_effect = {
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = { exists = scope:set_rivalry }
|
limit = { exists = scope:set_rivalry }
|
||||||
set_relation_rival = {
|
set_relation_rival_effect = {
|
||||||
target = scope:owner
|
TARGET = scope:owner
|
||||||
reason = rival_claimed_throne_failed
|
REASON = rival_claimed_throne_failed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -14933,18 +15026,16 @@ claim_throne_failure_effect = {
|
||||||
|
|
||||||
successful_claim_throne_event_option_effect = {
|
successful_claim_throne_event_option_effect = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = { exists = scope:scheme_discovered }
|
||||||
exists = scope:scheme_discovered
|
|
||||||
}
|
|
||||||
add_prestige = claim_throne_discovered_prestige_loss
|
add_prestige = claim_throne_discovered_prestige_loss
|
||||||
}
|
}
|
||||||
show_as_tooltip = {
|
show_as_tooltip = {
|
||||||
scope:target = {
|
scope:target = {
|
||||||
if = {
|
if = {
|
||||||
limit = { exists = scope:set_rivalry }
|
limit = { exists = scope:set_rivalry }
|
||||||
set_relation_rival = {
|
set_relation_rival_effect = {
|
||||||
target = scope:owner
|
TARGET = scope:owner
|
||||||
reason = rival_claimed_throne
|
REASON = rival_claimed_throne
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -15358,7 +15449,6 @@ elope_success_opinion_rivalry_effect = {
|
||||||
#Rivalry
|
#Rivalry
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
can_set_relation_rival_trigger = { CHARACTER = $CHARACTER$ }
|
|
||||||
is_ai = yes
|
is_ai = yes
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
limit = { is_spouse_of = $CHARACTER$ }
|
limit = { is_spouse_of = $CHARACTER$ }
|
||||||
|
|
@ -15370,28 +15460,22 @@ elope_success_opinion_rivalry_effect = {
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
has_relation_rival = $CHARACTER$
|
||||||
can_set_relation_nemesis_trigger = { CHARACTER = $CHARACTER$ }
|
can_set_relation_nemesis_trigger = { CHARACTER = $CHARACTER$ }
|
||||||
ai_vengefulness >= medium_positive_ai_value
|
|
||||||
}
|
}
|
||||||
set_relation_nemesis = {
|
set_relation_nemesis_effect = {
|
||||||
reason = nemesis_elopement
|
TARGET = $CHARACTER$
|
||||||
copy_reason = rival
|
REASON = nemesis_elopement
|
||||||
target = $CHARACTER$
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
set_relation_rival = {
|
progress_towards_rival_effect = {
|
||||||
target = $CHARACTER$
|
REASON = rival_eloped
|
||||||
reason = rival_eloped
|
CHARACTER = $CHARACTER$
|
||||||
|
OPINION = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
|
||||||
limit = {
|
|
||||||
can_set_relation_potential_rival_trigger = { CHARACTER = $CHARACTER$ }
|
|
||||||
}
|
|
||||||
hidden_effect = { set_relation_potential_rival = $CHARACTER$ }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
elope_success_personal_consequences_effect = {
|
elope_success_personal_consequences_effect = {
|
||||||
|
|
@ -16401,7 +16485,7 @@ end_court_scheme_effect = {
|
||||||
scope:court_outcome = flag:failure_hard
|
scope:court_outcome = flag:failure_hard
|
||||||
}
|
}
|
||||||
culture = {
|
culture = {
|
||||||
has_cultural_parameter = romance_scheme_bonuses
|
has_cultural_parameter = romance_scheme_penalty
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_stress = medium_stress_impact_gain
|
add_stress = medium_stress_impact_gain
|
||||||
|
|
@ -16739,6 +16823,48 @@ subsume_province_scheme_prep_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hostile_takeover_scheme_prep_effect = {
|
||||||
|
save_scope_as = scheme
|
||||||
|
save_scope_value_as = {
|
||||||
|
name = follow_up_event
|
||||||
|
value = event_id:scheme_critical_moments.8401
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { exists = scope:suppress_next_event }
|
||||||
|
}
|
||||||
|
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
steal_market_insights_scheme_prep_effect = {
|
||||||
|
save_scope_as = scheme
|
||||||
|
save_scope_value_as = {
|
||||||
|
name = follow_up_event
|
||||||
|
value = event_id:scheme_critical_moments.8501
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { exists = scope:suppress_next_event }
|
||||||
|
}
|
||||||
|
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
steal_trade_post_scheme_prep_effect = {
|
||||||
|
save_scope_as = scheme
|
||||||
|
save_scope_value_as = {
|
||||||
|
name = follow_up_event
|
||||||
|
value = event_id:scheme_critical_moments.8601
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { exists = scope:suppress_next_event }
|
||||||
|
}
|
||||||
|
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
raid_estate_opinion_effect = {
|
raid_estate_opinion_effect = {
|
||||||
$TARGET$ = { save_temporary_scope_as = target_temp }
|
$TARGET$ = { save_temporary_scope_as = target_temp }
|
||||||
$OWNER$ = { save_temporary_scope_as = owner_temp }
|
$OWNER$ = { save_temporary_scope_as = owner_temp }
|
||||||
|
|
@ -17069,20 +17195,44 @@ coup_ceremonial_liege_scheme_prep_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Simple effect for rolling if a scheme with no secrecy succeeded or failed. No thrills, no frills.
|
||||||
|
roll_scheme_success_or_failure_effect = {
|
||||||
|
random = {
|
||||||
|
chance = scope:scheme.scheme_success_chance
|
||||||
|
save_scope_value_as = {
|
||||||
|
name = scheme_successful
|
||||||
|
value = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scope:owner = {
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:scheme_successful }
|
||||||
|
mandala_trickster_increment_successful_schemes_effect = yes
|
||||||
|
# Pre-determine success type here to avoid potentially incorrect tooltip in $SUCCESS_EVENT$
|
||||||
|
random_list = {
|
||||||
|
67 = {
|
||||||
|
save_scope_value_as = { name = scheme_success_type value = flag:success_standard }
|
||||||
|
}
|
||||||
|
33 = {
|
||||||
|
save_scope_value_as = { name = scheme_success_type value = flag:success_critical }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
trigger_event = $SUCCESS_EVENT$
|
||||||
|
}
|
||||||
|
else = { trigger_event = $FAILURE_EVENT$ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
abduction_rivalry_progress_effect = {
|
abduction_rivalry_progress_effect = {
|
||||||
scope:target = {
|
scope:target = {
|
||||||
#Target is a ruler
|
#Target is a ruler
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = { abduct_ruler_rivalling_trigger = yes }
|
||||||
abduct_ruler_rivalling_trigger = yes
|
|
||||||
}
|
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = { is_close_family_of = scope:owner }
|
||||||
is_close_family_of = scope:owner
|
set_relation_rival_effect = {
|
||||||
}
|
TARGET = scope:owner
|
||||||
set_relation_rival = {
|
REASON = rival_abducted_family
|
||||||
target = scope:owner
|
|
||||||
reason = rival_abducted_family
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
|
|
@ -17095,9 +17245,7 @@ abduction_rivalry_progress_effect = {
|
||||||
}
|
}
|
||||||
#Target is close family
|
#Target is close family
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = { abduct_family_rivalling_trigger = yes }
|
||||||
abduct_family_rivalling_trigger = yes
|
|
||||||
}
|
|
||||||
progress_towards_rival_effect = {
|
progress_towards_rival_effect = {
|
||||||
CHARACTER = scope:owner
|
CHARACTER = scope:owner
|
||||||
REASON = rival_abducted_family
|
REASON = rival_abducted_family
|
||||||
|
|
@ -17107,14 +17255,10 @@ abduction_rivalry_progress_effect = {
|
||||||
#Target has parents that are rulers of superior power
|
#Target has parents that are rulers of superior power
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
any_parent = {
|
any_parent = { abduct_rivalling_relative_trigger = yes }
|
||||||
abduct_rivalling_relative_trigger = yes
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
every_parent = {
|
every_parent = {
|
||||||
limit = {
|
limit = { abduct_rivalling_relative_trigger = yes }
|
||||||
abduct_rivalling_relative_trigger = yes
|
|
||||||
}
|
|
||||||
progress_towards_rival_effect = {
|
progress_towards_rival_effect = {
|
||||||
CHARACTER = scope:owner
|
CHARACTER = scope:owner
|
||||||
REASON = rival_abducted_child
|
REASON = rival_abducted_child
|
||||||
|
|
@ -17295,24 +17439,79 @@ abduction_rivalry_progress_tooltip_forecast_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
debug_test_scheme_event_effect = {
|
########################################################
|
||||||
random_scheme = {
|
# Influence House Ambition Scheme
|
||||||
save_scope_as = scheme
|
|
||||||
root = {
|
influence_house_ambition_end_effect = {
|
||||||
save_scope_as = owner
|
if = {
|
||||||
}
|
limit = {
|
||||||
scheme_target_character ?= {
|
scope:owner.house = {
|
||||||
save_scope_as = target
|
NOT = {
|
||||||
}
|
has_same_house_aspiration_as = scope:target.house
|
||||||
scheme_target_title ?= {
|
}
|
||||||
save_scope_as = target
|
}
|
||||||
}
|
}
|
||||||
scheme_target_culture ?= {
|
if = {
|
||||||
save_scope_as = target
|
limit = {
|
||||||
}
|
exists = scope:scheme
|
||||||
scheme_target_faith ?= {
|
}
|
||||||
save_scope_as = target
|
hidden_effect = {
|
||||||
|
scope:scheme = {
|
||||||
|
reset_failed_scheme_effect = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
exists = scope:scheme_successful
|
||||||
|
}
|
||||||
|
scope:scheme = {
|
||||||
|
end_scheme = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
scope:scheme = {
|
||||||
|
end_scheme = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
republic_promote_candidate_scheme_end_effect = {
|
||||||
|
# If target is first in the line of succession, we end the scheme
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
scope:scheme.var:target_candidate_title = {
|
||||||
|
place_in_line_of_succession = {
|
||||||
|
target = scope:target
|
||||||
|
value = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scope:scheme = {
|
||||||
|
end_scheme = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# Otherwise, we'll continue
|
||||||
|
else = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
exists = scope:scheme
|
||||||
|
}
|
||||||
|
hidden_effect = {
|
||||||
|
scope:scheme = {
|
||||||
|
reset_failed_scheme_effect = yes
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
exists = scope:scheme_successful
|
||||||
|
}
|
||||||
|
custom_tooltip = sway_continue
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
custom_tooltip = sway_try_again
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
trigger_event = $EVENT$
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,8 +37,13 @@ create_artifact_chest_effect = {
|
||||||
name = big_chest
|
name = big_chest
|
||||||
value = yes
|
value = yes
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:merchant }
|
||||||
|
add_scaled_artifact_modifier_prestige_effect = yes
|
||||||
|
}
|
||||||
|
else = {
|
||||||
add_scaled_artifact_modifier_grandeur_small_effect = yes
|
add_scaled_artifact_modifier_grandeur_small_effect = yes
|
||||||
|
}
|
||||||
add_scaled_artifact_modifier_piety_effect = yes
|
add_scaled_artifact_modifier_piety_effect = yes
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -128,8 +133,13 @@ create_artifact_cabinet_effect = {
|
||||||
}
|
}
|
||||||
scope:newly_created_artifact = {
|
scope:newly_created_artifact = {
|
||||||
get_artifact_feature_references_effect = yes
|
get_artifact_feature_references_effect = yes
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:merchant }
|
||||||
|
add_scaled_artifact_modifier_prestige_effect = yes
|
||||||
|
}
|
||||||
|
else = {
|
||||||
add_scaled_artifact_modifier_grandeur_small_effect = yes
|
add_scaled_artifact_modifier_grandeur_small_effect = yes
|
||||||
|
}
|
||||||
add_scaled_artifact_modifier_piety_effect = yes
|
add_scaled_artifact_modifier_piety_effect = yes
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -212,6 +222,7 @@ create_artifact_throne_effect = {
|
||||||
|
|
||||||
# All thrones have a chance to get some extra Grandeur
|
# All thrones have a chance to get some extra Grandeur
|
||||||
add_scaled_artifact_modifier_grandeur_big_effect = yes
|
add_scaled_artifact_modifier_grandeur_big_effect = yes
|
||||||
|
|
||||||
remove_artifact_modifier = artifact_placeholder_modifier
|
remove_artifact_modifier = artifact_placeholder_modifier
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1450,14 +1461,14 @@ create_artifact_goblet_effect = {
|
||||||
# Let's add another random effect to keep goblets interesting!
|
# Let's add another random effect to keep goblets interesting!
|
||||||
random_list = {
|
random_list = {
|
||||||
10 = {
|
10 = {
|
||||||
add_scaled_artifact_modifier_minor_prestige_effect = yes
|
add_scaled_artifact_modifier_piety_effect = yes
|
||||||
}
|
}
|
||||||
10 = {
|
10 = {
|
||||||
add_scaled_artifact_modifier_majesty_effect = yes
|
add_scaled_artifact_modifier_majesty_effect = yes
|
||||||
}
|
}
|
||||||
30 = {
|
30 = {
|
||||||
trigger = { rarity = common }
|
trigger = { rarity = common }
|
||||||
# Common goblets have a chance to not get any extra modifiers
|
add_scaled_artifact_modifier_minor_prestige_effect = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
remove_artifact_modifier = artifact_placeholder_modifier
|
remove_artifact_modifier = artifact_placeholder_modifier
|
||||||
|
|
@ -2613,7 +2624,10 @@ create_artifact_pedestal_diamond_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scope:newly_created_artifact = {
|
scope:newly_created_artifact = {
|
||||||
|
if = {
|
||||||
|
limit = { scope:owner = { has_royal_court = yes } }
|
||||||
add_scaled_artifact_modifier_grandeur_big_effect = yes
|
add_scaled_artifact_modifier_grandeur_big_effect = yes
|
||||||
|
}
|
||||||
add_scaled_artifact_modifier_prestige_effect = yes
|
add_scaled_artifact_modifier_prestige_effect = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2641,7 +2655,10 @@ create_artifact_pedestal_gold_effect = {
|
||||||
}
|
}
|
||||||
|
|
||||||
scope:newly_created_artifact = {
|
scope:newly_created_artifact = {
|
||||||
|
if = {
|
||||||
|
limit = { scope:owner = { has_royal_court = yes } }
|
||||||
add_scaled_artifact_modifier_grandeur_small_effect = yes
|
add_scaled_artifact_modifier_grandeur_small_effect = yes
|
||||||
|
}
|
||||||
add_2_scaled_artifact_modifier_majesty_effect = yes
|
add_2_scaled_artifact_modifier_majesty_effect = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -4107,35 +4124,7 @@ create_artifact_book_effect = {
|
||||||
limit = { has_artifact_feature = book_subject_empire }
|
limit = { has_artifact_feature = book_subject_empire }
|
||||||
add_scaled_artifact_modifier_dynasty_prestige_effect = yes
|
add_scaled_artifact_modifier_dynasty_prestige_effect = yes
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = { short_reign_artifact_modifier_trigger = yes }
|
||||||
rarity = illustrious
|
|
||||||
}
|
|
||||||
add_artifact_modifier = artifact_short_reign_duration_mult_7_modifier
|
|
||||||
}
|
|
||||||
else_if = {
|
|
||||||
limit = {
|
|
||||||
rarity = famed
|
|
||||||
}
|
|
||||||
add_artifact_modifier = artifact_short_reign_duration_mult_5_modifier
|
|
||||||
}
|
|
||||||
else_if = {
|
|
||||||
limit = {
|
|
||||||
rarity = masterwork
|
|
||||||
}
|
|
||||||
add_artifact_modifier = artifact_short_reign_duration_mult_3_modifier
|
|
||||||
}
|
|
||||||
else_if = {
|
|
||||||
limit = {
|
|
||||||
rarity = common
|
|
||||||
}
|
|
||||||
add_artifact_modifier = artifact_short_reign_duration_mult_1_modifier
|
|
||||||
}
|
|
||||||
add_artifact_modifier = artifact_dynasty_opinion_2_modifier
|
|
||||||
add_artifact_modifier = artifact_court_grandeur_baseline_add_1_modifier
|
|
||||||
}
|
|
||||||
else_if = {
|
|
||||||
limit = { has_artifact_feature = book_subject_kingdom }
|
|
||||||
add_scaled_artifact_modifier_dynasty_prestige_effect = yes
|
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
rarity = illustrious
|
rarity = illustrious
|
||||||
|
|
@ -4160,9 +4149,49 @@ create_artifact_book_effect = {
|
||||||
}
|
}
|
||||||
add_artifact_modifier = artifact_short_reign_duration_mult_1_modifier
|
add_artifact_modifier = artifact_short_reign_duration_mult_1_modifier
|
||||||
}
|
}
|
||||||
|
}
|
||||||
add_artifact_modifier = artifact_dynasty_opinion_2_modifier
|
add_artifact_modifier = artifact_dynasty_opinion_2_modifier
|
||||||
|
if = {
|
||||||
|
limit = { scope:owner = { has_royal_court = yes } artifact_not_luxury_contract_trigger = yes }
|
||||||
add_artifact_modifier = artifact_court_grandeur_baseline_add_1_modifier
|
add_artifact_modifier = artifact_court_grandeur_baseline_add_1_modifier
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { has_artifact_feature = book_subject_kingdom }
|
||||||
|
add_scaled_artifact_modifier_dynasty_prestige_effect = yes
|
||||||
|
if = {
|
||||||
|
limit = { short_reign_artifact_modifier_trigger = yes }
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
rarity = illustrious
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_short_reign_duration_mult_7_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = famed
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_short_reign_duration_mult_5_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = masterwork
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_short_reign_duration_mult_3_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = common
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_short_reign_duration_mult_1_modifier
|
||||||
|
}
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_dynasty_opinion_2_modifier
|
||||||
|
if = {
|
||||||
|
limit = { scope:owner = { has_royal_court = yes } artifact_not_luxury_contract_trigger = yes }
|
||||||
|
add_artifact_modifier = artifact_court_grandeur_baseline_add_1_modifier
|
||||||
|
}
|
||||||
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
OR = {
|
OR = {
|
||||||
|
|
@ -4197,6 +4226,8 @@ create_artifact_book_effect = {
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = { has_artifact_feature = book_subject_reveler }
|
limit = { has_artifact_feature = book_subject_reveler }
|
||||||
|
if = {
|
||||||
|
limit = { vassal_artifact_modifier_trigger = yes }
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
rarity = illustrious
|
rarity = illustrious
|
||||||
|
|
@ -4222,6 +4253,34 @@ create_artifact_book_effect = {
|
||||||
add_artifact_modifier = artifact_courtly_vassal_opinion_2_modifier
|
add_artifact_modifier = artifact_courtly_vassal_opinion_2_modifier
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { merchant_artifact_modifier_trigger = yes }
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
rarity = illustrious
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_courtier_and_guest_opinion_7_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = famed
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_courtier_and_guest_opinion_5_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = masterwork
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_courtier_and_guest_opinion_3_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = common
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_courtier_and_guest_opinion_1_modifier
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = { has_artifact_feature = book_subject_blademaster }
|
limit = { has_artifact_feature = book_subject_blademaster }
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -4307,9 +4366,15 @@ create_artifact_book_effect = {
|
||||||
limit = {
|
limit = {
|
||||||
NOT = { scope:owner.rite = { rite_has_parameter = witchcraft_accepted } }
|
NOT = { scope:owner.rite = { rite_has_parameter = witchcraft_accepted } }
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { merchant_artifact_modifier_trigger = yes }
|
||||||
|
add_artifact_modifier = artifact_monthly_piety_negative_1_modifier
|
||||||
|
}
|
||||||
|
else = {
|
||||||
add_artifact_modifier = artifact_clergy_opinion_penalty_2_modifier
|
add_artifact_modifier = artifact_clergy_opinion_penalty_2_modifier
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = { has_artifact_feature = book_subject_lunatic }
|
limit = { has_artifact_feature = book_subject_lunatic }
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -4402,6 +4467,8 @@ create_artifact_book_effect = {
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
artifact_type = book
|
artifact_type = book
|
||||||
|
scope:owner = { has_royal_court = yes }
|
||||||
|
artifact_not_luxury_contract_trigger = yes
|
||||||
}
|
}
|
||||||
add_artifact_modifier = artifact_court_grandeur_baseline_add_1_modifier
|
add_artifact_modifier = artifact_court_grandeur_baseline_add_1_modifier
|
||||||
}
|
}
|
||||||
|
|
@ -4411,6 +4478,7 @@ create_artifact_book_effect = {
|
||||||
if = { # Vassal Opinion
|
if = { # Vassal Opinion
|
||||||
limit = {
|
limit = {
|
||||||
scope:story ?= { has_variable = opinion_artifact }
|
scope:story ?= { has_variable = opinion_artifact }
|
||||||
|
vassal_artifact_modifier_trigger = yes
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = { rarity = illustrious }
|
limit = { rarity = illustrious }
|
||||||
|
|
@ -4466,6 +4534,7 @@ create_artifact_book_effect = {
|
||||||
if = { # Controlled Province Advantage
|
if = { # Controlled Province Advantage
|
||||||
limit = {
|
limit = {
|
||||||
scope:story ?= { has_variable = advantage_artifact }
|
scope:story ?= { has_variable = advantage_artifact }
|
||||||
|
merchant_artifact_modifier_trigger = no
|
||||||
}
|
}
|
||||||
if = { # 10
|
if = { # 10
|
||||||
limit = { rarity = illustrious }
|
limit = { rarity = illustrious }
|
||||||
|
|
@ -4508,33 +4577,25 @@ create_artifact_book_effect = {
|
||||||
add_artifact_modifier = artifact_owned_personal_scheme_success_chance_add_8_modifier # 8
|
add_artifact_modifier = artifact_owned_personal_scheme_success_chance_add_8_modifier # 8
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = { # Monthly Piety + Same Faith Domain Tax
|
if = { # Monthly Piety
|
||||||
limit = {
|
limit = {
|
||||||
scope:story ?= { has_variable = piety_artifact }
|
scope:story ?= { has_variable = piety_artifact }
|
||||||
}
|
}
|
||||||
if = { # 0.4 + 1
|
if = { # 0.4
|
||||||
limit = { rarity = illustrious }
|
limit = { rarity = illustrious }
|
||||||
add_artifact_modifier = artifact_monthly_piety_4_modifier # 0.4
|
add_artifact_modifier = artifact_monthly_piety_4_modifier # 0.4
|
||||||
add_artifact_modifier = artifact_domain_tax_same_faith_mult_4_modifier # 1
|
|
||||||
add_artifact_modifier = artifact_domain_tax_same_faith_mult_4_modifier
|
|
||||||
add_artifact_modifier = artifact_domain_tax_same_faith_mult_2_modifier
|
|
||||||
}
|
}
|
||||||
else_if = { # 0.3 + 0.8
|
else_if = { # 0.3
|
||||||
limit = { rarity = famed }
|
limit = { rarity = famed }
|
||||||
add_artifact_modifier = artifact_monthly_piety_3_modifier
|
add_artifact_modifier = artifact_monthly_piety_3_modifier
|
||||||
add_artifact_modifier = artifact_domain_tax_same_faith_mult_4_modifier
|
|
||||||
add_artifact_modifier = artifact_domain_tax_same_faith_mult_4_modifier
|
|
||||||
}
|
}
|
||||||
else_if = { # 0.2 + 0.6
|
else_if = { # 0.2
|
||||||
limit = { rarity = masterwork }
|
limit = { rarity = masterwork }
|
||||||
add_artifact_modifier = artifact_monthly_piety_2_modifier
|
add_artifact_modifier = artifact_monthly_piety_2_modifier
|
||||||
add_artifact_modifier = artifact_domain_tax_same_faith_mult_4_modifier
|
|
||||||
add_artifact_modifier = artifact_domain_tax_same_faith_mult_2_modifier
|
|
||||||
}
|
}
|
||||||
else_if = { # 0.1 + 0.4
|
else_if = { # 0.1
|
||||||
limit = { rarity = common }
|
limit = { rarity = common }
|
||||||
add_artifact_modifier = artifact_monthly_piety_1_modifier
|
add_artifact_modifier = artifact_monthly_piety_1_modifier
|
||||||
add_artifact_modifier = artifact_domain_tax_same_faith_mult_4_modifier
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
|
|
@ -4805,6 +4866,8 @@ create_artifact_book_effect = {
|
||||||
has_artifact_feature = book_topic_stewardship_architect
|
has_artifact_feature = book_topic_stewardship_architect
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { merchant_artifact_modifier_trigger = no }
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
rarity = illustrious
|
rarity = illustrious
|
||||||
|
|
@ -4830,6 +4893,33 @@ create_artifact_book_effect = {
|
||||||
add_artifact_modifier = artifact_build_time_1_modifier
|
add_artifact_modifier = artifact_build_time_1_modifier
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
rarity = illustrious
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_monthly_stewardship_lifestyle_xp_4_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = famed
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_monthly_stewardship_lifestyle_xp_3_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = masterwork
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_monthly_stewardship_lifestyle_xp_2_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = common
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_monthly_stewardship_lifestyle_xp_1_modifier
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
|
|
@ -4849,6 +4939,8 @@ create_artifact_book_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_artifact_modifier = artifact_monthly_martial_lifestyle_xp_1_modifier
|
add_artifact_modifier = artifact_monthly_martial_lifestyle_xp_1_modifier
|
||||||
|
if = {
|
||||||
|
limit = { merchant_artifact_modifier_trigger = no }
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
rarity = illustrious
|
rarity = illustrious
|
||||||
|
|
@ -4874,6 +4966,7 @@ create_artifact_book_effect = {
|
||||||
add_artifact_modifier = artifact_raid_speed_2_modifier
|
add_artifact_modifier = artifact_raid_speed_2_modifier
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
trigger_if = {
|
trigger_if = {
|
||||||
|
|
@ -5216,6 +5309,8 @@ create_artifact_book_effect = {
|
||||||
has_artifact_feature = book_topic_martial_military
|
has_artifact_feature = book_topic_martial_military
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { merchant_artifact_modifier_trigger = no }
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
rarity = illustrious
|
rarity = illustrious
|
||||||
|
|
@ -5240,6 +5335,7 @@ create_artifact_book_effect = {
|
||||||
}
|
}
|
||||||
add_artifact_modifier = artifact_controlled_province_advantage_1_modifier
|
add_artifact_modifier = artifact_controlled_province_advantage_1_modifier
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -5906,6 +6002,8 @@ create_artifact_book_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = { merchant_artifact_modifier_trigger = no }
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
rarity = illustrious
|
rarity = illustrious
|
||||||
|
|
@ -5924,6 +6022,7 @@ create_artifact_book_effect = {
|
||||||
}
|
}
|
||||||
add_artifact_modifier = artifact_hard_casualty_modifier_1_modifier
|
add_artifact_modifier = artifact_hard_casualty_modifier_1_modifier
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -5964,6 +6063,8 @@ create_artifact_book_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = { merchant_artifact_modifier_trigger = no }
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
rarity = illustrious
|
rarity = illustrious
|
||||||
|
|
@ -5991,6 +6092,7 @@ create_artifact_book_effect = {
|
||||||
50 = { add_artifact_modifier = artifact_heavy_infantry_toughness_1_modifier }
|
50 = { add_artifact_modifier = artifact_heavy_infantry_toughness_1_modifier }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -6132,28 +6234,6 @@ create_artifact_book_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if = {
|
|
||||||
limit = {
|
|
||||||
rarity = illustrious
|
|
||||||
}
|
|
||||||
add_artifact_modifier = artifact_development_growth_3_modifier
|
|
||||||
}
|
|
||||||
else_if = {
|
|
||||||
limit = {
|
|
||||||
rarity = famed
|
|
||||||
}
|
|
||||||
add_artifact_modifier = artifact_development_growth_2_modifier
|
|
||||||
}
|
|
||||||
else_if = {
|
|
||||||
limit = {
|
|
||||||
OR = {
|
|
||||||
rarity = common
|
|
||||||
rarity = masterwork
|
|
||||||
}
|
|
||||||
}
|
|
||||||
add_artifact_modifier = artifact_development_growth_1_modifier
|
|
||||||
}
|
|
||||||
|
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
rarity = illustrious
|
rarity = illustrious
|
||||||
|
|
@ -6178,6 +6258,33 @@ create_artifact_book_effect = {
|
||||||
}
|
}
|
||||||
add_artifact_modifier = artifact_monthly_stewardship_lifestyle_xp_1_modifier
|
add_artifact_modifier = artifact_monthly_stewardship_lifestyle_xp_1_modifier
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { scope:owner = { gdp_is_trade_ruler_trigger = yes } }
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
rarity = illustrious
|
||||||
|
}
|
||||||
|
add_artifact_modifier = gdp_tgf_artifact_capacity_4_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = famed
|
||||||
|
}
|
||||||
|
add_artifact_modifier = gdp_tgf_artifact_capacity_3_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = masterwork
|
||||||
|
}
|
||||||
|
add_artifact_modifier = gdp_tgf_artifact_capacity_2_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = common
|
||||||
|
}
|
||||||
|
add_artifact_modifier = gdp_tgf_artifact_capacity_1_modifier
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
|
|
@ -6196,13 +6303,13 @@ create_artifact_book_effect = {
|
||||||
limit = {
|
limit = {
|
||||||
rarity = illustrious
|
rarity = illustrious
|
||||||
}
|
}
|
||||||
add_artifact_modifier = artifact_domain_tax_mult_3_modifier
|
add_artifact_modifier = artifact_stewardship_3_modifier
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
limit = {
|
limit = {
|
||||||
rarity = famed
|
rarity = famed
|
||||||
}
|
}
|
||||||
add_artifact_modifier = artifact_domain_tax_mult_2_modifier
|
add_artifact_modifier = artifact_stewardship_2_modifier
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else_if = {
|
else_if = {
|
||||||
|
|
@ -6255,6 +6362,8 @@ create_artifact_book_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if = {
|
||||||
|
limit = { vassal_artifact_modifier_trigger = yes }
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
rarity = illustrious
|
rarity = illustrious
|
||||||
|
|
@ -6280,6 +6389,34 @@ create_artifact_book_effect = {
|
||||||
add_artifact_modifier = artifact_vassal_limit_1_modifier
|
add_artifact_modifier = artifact_vassal_limit_1_modifier
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { merchant_artifact_modifier_trigger = yes }
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
rarity = illustrious
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_stewardship_3_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = famed
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_stewardship_3_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = masterwork
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_stewardship_2_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = {
|
||||||
|
rarity = common
|
||||||
|
}
|
||||||
|
add_artifact_modifier = artifact_stewardship_1_modifier
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Is the subject something weird? Then you'll get a penalty
|
# Is the subject something weird? Then you'll get a penalty
|
||||||
|
|
@ -6292,8 +6429,11 @@ create_artifact_book_effect = {
|
||||||
trait_is_criminal_in_rite_trigger = { TRAIT = trait:cannibal RITE = root.rite GENDER_CHARACTER = root }
|
trait_is_criminal_in_rite_trigger = { TRAIT = trait:cannibal RITE = root.rite GENDER_CHARACTER = root }
|
||||||
}
|
}
|
||||||
add_artifact_modifier = artifact_dread_baseline_add_2_modifier
|
add_artifact_modifier = artifact_dread_baseline_add_2_modifier
|
||||||
|
if = {
|
||||||
|
limit = { vassal_artifact_modifier_trigger = yes }
|
||||||
add_artifact_modifier = artifact_vassal_opinion_penalty_1_modifier
|
add_artifact_modifier = artifact_vassal_opinion_penalty_1_modifier
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else = {
|
else = {
|
||||||
add_artifact_modifier = artifact_dread_baseline_add_1_modifier
|
add_artifact_modifier = artifact_dread_baseline_add_1_modifier
|
||||||
}
|
}
|
||||||
|
|
@ -6339,7 +6479,10 @@ create_artifact_book_effect = {
|
||||||
limit = {
|
limit = {
|
||||||
trait_is_criminal_in_rite_trigger = { TRAIT = trait:deviant RITE = root.rite GENDER_CHARACTER = root }
|
trait_is_criminal_in_rite_trigger = { TRAIT = trait:deviant RITE = root.rite GENDER_CHARACTER = root }
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { vassal_artifact_modifier_trigger = yes }
|
||||||
add_artifact_modifier = artifact_vassal_opinion_penalty_1_modifier
|
add_artifact_modifier = artifact_vassal_opinion_penalty_1_modifier
|
||||||
|
}
|
||||||
add_artifact_modifier = artifact_stress_gain_2_modifier
|
add_artifact_modifier = artifact_stress_gain_2_modifier
|
||||||
add_artifact_modifier = artifact_seduce_scheme_phase_duration_mult_1_modifier
|
add_artifact_modifier = artifact_seduce_scheme_phase_duration_mult_1_modifier
|
||||||
}
|
}
|
||||||
|
|
@ -6500,6 +6643,22 @@ create_artifact_pedestal_reliquary_christian_effect = {
|
||||||
get_artifact_wealth_effect = yes
|
get_artifact_wealth_effect = yes
|
||||||
|
|
||||||
scope:owner = {
|
scope:owner = {
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:religious_building_faith }
|
||||||
|
create_artifact = {
|
||||||
|
name = artifact_pedestal_reliquary_christian_name
|
||||||
|
creator = scope:owner
|
||||||
|
description = artifact_pedestal_reliquary_christian_description
|
||||||
|
visuals = reliquary
|
||||||
|
type = pedestal
|
||||||
|
modifier = artifact_monthly_piety_3_modifier
|
||||||
|
save_scope_as = newly_created_artifact
|
||||||
|
wealth = scope:wealth
|
||||||
|
quality = scope:quality
|
||||||
|
#decaying = no
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else = {
|
||||||
create_artifact = {
|
create_artifact = {
|
||||||
name = artifact_pedestal_reliquary_christian_name
|
name = artifact_pedestal_reliquary_christian_name
|
||||||
creator = scope:owner
|
creator = scope:owner
|
||||||
|
|
@ -6514,6 +6673,7 @@ create_artifact_pedestal_reliquary_christian_effect = {
|
||||||
#decaying = no
|
#decaying = no
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
scope:newly_created_artifact = {
|
scope:newly_created_artifact = {
|
||||||
add_scaled_artifact_modifier_piety_effect = yes
|
add_scaled_artifact_modifier_piety_effect = yes
|
||||||
|
|
@ -6521,7 +6681,7 @@ create_artifact_pedestal_reliquary_christian_effect = {
|
||||||
add_scaled_artifact_modifier_grandeur_small_effect = yes
|
add_scaled_artifact_modifier_grandeur_small_effect = yes
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = relic_religion
|
name = relic_religion
|
||||||
value = religion:catholic_religion
|
value = religion:christianity_religion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -6578,6 +6738,22 @@ create_artifact_pedestal_reliquary_islam_effect = {
|
||||||
get_artifact_wealth_effect = yes
|
get_artifact_wealth_effect = yes
|
||||||
|
|
||||||
scope:owner = {
|
scope:owner = {
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:religious_building_faith }
|
||||||
|
create_artifact = {
|
||||||
|
name = artifact_pedestal_reliquary_islam_name
|
||||||
|
creator = scope:owner
|
||||||
|
description = artifact_pedestal_reliquary_islam_description
|
||||||
|
visuals = reliquary
|
||||||
|
type = pedestal
|
||||||
|
modifier = artifact_monthly_piety_3_modifier
|
||||||
|
save_scope_as = newly_created_artifact
|
||||||
|
wealth = scope:wealth
|
||||||
|
quality = scope:quality
|
||||||
|
#decaying = no
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else = {
|
||||||
create_artifact = {
|
create_artifact = {
|
||||||
name = artifact_pedestal_reliquary_islam_name
|
name = artifact_pedestal_reliquary_islam_name
|
||||||
creator = scope:owner
|
creator = scope:owner
|
||||||
|
|
@ -6592,6 +6768,7 @@ create_artifact_pedestal_reliquary_islam_effect = {
|
||||||
#decaying = no
|
#decaying = no
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
scope:newly_created_artifact = {
|
scope:newly_created_artifact = {
|
||||||
add_scaled_artifact_modifier_piety_effect = yes
|
add_scaled_artifact_modifier_piety_effect = yes
|
||||||
|
|
@ -6662,6 +6839,22 @@ create_artifact_pedestal_reliquary_buddhism_effect = {
|
||||||
get_artifact_wealth_effect = yes
|
get_artifact_wealth_effect = yes
|
||||||
|
|
||||||
scope:owner = {
|
scope:owner = {
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:religious_building_faith }
|
||||||
|
create_artifact = {
|
||||||
|
name = artifact_pedestal_reliquary_buddhism_name
|
||||||
|
creator = scope:owner
|
||||||
|
description = artifact_pedestal_reliquary_buddhism_description
|
||||||
|
visuals = reliquary
|
||||||
|
type = pedestal
|
||||||
|
modifier = artifact_monthly_piety_3_modifier
|
||||||
|
save_scope_as = newly_created_artifact
|
||||||
|
wealth = scope:wealth
|
||||||
|
quality = scope:quality
|
||||||
|
#decaying = no
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else = {
|
||||||
create_artifact = {
|
create_artifact = {
|
||||||
name = artifact_pedestal_reliquary_buddhism_name
|
name = artifact_pedestal_reliquary_buddhism_name
|
||||||
creator = scope:owner
|
creator = scope:owner
|
||||||
|
|
@ -6676,6 +6869,7 @@ create_artifact_pedestal_reliquary_buddhism_effect = {
|
||||||
#decaying = no
|
#decaying = no
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
scope:newly_created_artifact = {
|
scope:newly_created_artifact = {
|
||||||
add_scaled_artifact_modifier_piety_effect = yes
|
add_scaled_artifact_modifier_piety_effect = yes
|
||||||
|
|
@ -6704,6 +6898,22 @@ create_artifact_pedestal_reliquary_judaism_effect = {
|
||||||
get_artifact_wealth_effect = yes
|
get_artifact_wealth_effect = yes
|
||||||
|
|
||||||
scope:owner = {
|
scope:owner = {
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:religious_building_faith }
|
||||||
|
create_artifact = {
|
||||||
|
name = artifact_pedestal_reliquary_judaism_name
|
||||||
|
creator = scope:owner
|
||||||
|
description = artifact_pedestal_reliquary_judaism_description
|
||||||
|
visuals = reliquary
|
||||||
|
type = pedestal
|
||||||
|
modifier = artifact_monthly_piety_3_modifier
|
||||||
|
save_scope_as = newly_created_artifact
|
||||||
|
wealth = scope:wealth
|
||||||
|
quality = scope:quality
|
||||||
|
#decaying = no
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else = {
|
||||||
create_artifact = {
|
create_artifact = {
|
||||||
name = artifact_pedestal_reliquary_judaism_name
|
name = artifact_pedestal_reliquary_judaism_name
|
||||||
creator = scope:owner
|
creator = scope:owner
|
||||||
|
|
@ -6718,6 +6928,7 @@ create_artifact_pedestal_reliquary_judaism_effect = {
|
||||||
#decaying = no
|
#decaying = no
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
scope:newly_created_artifact = {
|
scope:newly_created_artifact = {
|
||||||
add_scaled_artifact_modifier_piety_effect = yes
|
add_scaled_artifact_modifier_piety_effect = yes
|
||||||
|
|
@ -6731,49 +6942,6 @@ create_artifact_pedestal_reliquary_judaism_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
create_artifact_pedestal_reliquary_fracture_effect = {
|
|
||||||
$OWNER$ = { save_scope_as = owner }
|
|
||||||
|
|
||||||
random_list = {
|
|
||||||
15 = {
|
|
||||||
save_scope_value_as = {
|
|
||||||
name = fracture_relic_name
|
|
||||||
value = flag:amethyst
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
get_artifact_quality_effect = yes
|
|
||||||
get_artifact_wealth_effect = yes
|
|
||||||
|
|
||||||
scope:owner = {
|
|
||||||
create_artifact = {
|
|
||||||
name = artifact_pedestal_reliquary_fracture_name
|
|
||||||
creator = scope:owner
|
|
||||||
description = artifact_pedestal_reliquary_fracture_description
|
|
||||||
visuals = reliquary
|
|
||||||
type = pedestal
|
|
||||||
template = fracture_relic_template
|
|
||||||
modifier = artifact_monthly_piety_3_modifier
|
|
||||||
save_scope_as = newly_created_artifact
|
|
||||||
wealth = scope:wealth
|
|
||||||
quality = scope:quality
|
|
||||||
#decaying = no
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
scope:newly_created_artifact = {
|
|
||||||
add_scaled_artifact_modifier_piety_effect = yes
|
|
||||||
add_scaled_artifact_modifier_devotion_effect = yes
|
|
||||||
add_scaled_artifact_modifier_grandeur_small_effect = yes
|
|
||||||
save_scope_as = epic
|
|
||||||
set_variable = {
|
|
||||||
name = relic
|
|
||||||
value = flag:fracture
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
create_artifact_sculpture_religious_effect = {
|
create_artifact_sculpture_religious_effect = {
|
||||||
$OWNER$ = { save_scope_as = owner }
|
$OWNER$ = { save_scope_as = owner }
|
||||||
$CREATOR$ = { save_scope_as = creator }
|
$CREATOR$ = { save_scope_as = creator }
|
||||||
|
|
@ -6784,14 +6952,7 @@ create_artifact_sculpture_religious_effect = {
|
||||||
scope:owner = {
|
scope:owner = {
|
||||||
random_list = { # To have different statue names
|
random_list = { # To have different statue names
|
||||||
1 = {
|
1 = {
|
||||||
trigger = {
|
trigger = { religion != religion:christianity_religion }
|
||||||
OR = {
|
|
||||||
religion != religion:protestant_religion
|
|
||||||
religion != religion:catholic_religion
|
|
||||||
religion != religion:eastern_orthodox_religion
|
|
||||||
religion != religion:oriental_orthodox_religion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
create_artifact = {
|
create_artifact = {
|
||||||
name = artifact_sculpture_religious_highgod_name
|
name = artifact_sculpture_religious_highgod_name
|
||||||
description = artifact_sculpture_religious_highgod_description
|
description = artifact_sculpture_religious_highgod_description
|
||||||
|
|
@ -6806,14 +6967,7 @@ create_artifact_sculpture_religious_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
1 = {
|
1 = {
|
||||||
trigger = {
|
trigger = { religion = religion:christianity_religion }
|
||||||
OR = {
|
|
||||||
religion = religion:protestant_religion
|
|
||||||
religion = religion:catholic_religion
|
|
||||||
religion = religion:eastern_orthodox_religion
|
|
||||||
religion = religion:oriental_orthodox_religion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
create_artifact = {
|
create_artifact = {
|
||||||
name = artifact_sculpture_religious_mary_name
|
name = artifact_sculpture_religious_mary_name
|
||||||
description = artifact_sculpture_religious_mary_description
|
description = artifact_sculpture_religious_mary_description
|
||||||
|
|
@ -6907,10 +7061,15 @@ create_artifact_sculpture_religious_effect = {
|
||||||
}
|
}
|
||||||
|
|
||||||
scope:newly_created_artifact = {
|
scope:newly_created_artifact = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { exists = scope:religious_building_faith }
|
||||||
|
}
|
||||||
set_variable = { # required to track equipability in template (based on dynamic religion)
|
set_variable = { # required to track equipability in template (based on dynamic religion)
|
||||||
name = statue_religion
|
name = statue_religion
|
||||||
value = scope:owner.religion
|
value = scope:owner.religion
|
||||||
}
|
}
|
||||||
|
}
|
||||||
add_scaled_artifact_modifier_piety_effect = yes
|
add_scaled_artifact_modifier_piety_effect = yes
|
||||||
add_scaled_artifact_modifier_devotion_effect = yes
|
add_scaled_artifact_modifier_devotion_effect = yes
|
||||||
add_scaled_artifact_modifier_grandeur_small_effect = yes
|
add_scaled_artifact_modifier_grandeur_small_effect = yes
|
||||||
|
|
|
||||||
|
|
@ -2102,18 +2102,21 @@ give_legendary_building_mythical_holy_tooltip_effect = {
|
||||||
root = {
|
root = {
|
||||||
locale_valid_for_legendary_buildings = yes
|
locale_valid_for_legendary_buildings = yes
|
||||||
}
|
}
|
||||||
capital_province = { has_special_building_slot = no }
|
capital_province = { has_special_district_slot = no }
|
||||||
any_sub_realm_barony = {
|
any_sub_realm_barony = {
|
||||||
title_province = { has_special_building_slot = no }
|
title_province = { has_special_district_slot = no }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
give_legendary_building_location_holy_effect = yes
|
give_legendary_building_location_holy_effect = yes
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:legendary_locale }
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = legendary_reward_location
|
name = legendary_reward_location
|
||||||
value = scope:legendary_locale
|
value = scope:legendary_locale
|
||||||
}
|
}
|
||||||
|
}
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = legendary_figure
|
name = legendary_figure
|
||||||
value = scope:protagonist
|
value = scope:protagonist
|
||||||
|
|
@ -2127,18 +2130,21 @@ give_legendary_building_mythical_heroic_tooltip_effect = {
|
||||||
root = {
|
root = {
|
||||||
locale_valid_for_legendary_buildings = yes
|
locale_valid_for_legendary_buildings = yes
|
||||||
}
|
}
|
||||||
capital_province = { has_special_building_slot = no }
|
capital_province = { has_special_district_slot = no }
|
||||||
any_sub_realm_barony = {
|
any_sub_realm_barony = {
|
||||||
title_province = { has_special_building_slot = no }
|
title_province = { has_special_district_slot = no }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
give_legendary_building_location_heroic_effect = yes
|
give_legendary_building_location_heroic_effect = yes
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:legendary_locale }
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = legendary_reward_location
|
name = legendary_reward_location
|
||||||
value = scope:legendary_locale
|
value = scope:legendary_locale
|
||||||
}
|
}
|
||||||
|
}
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = legendary_figure
|
name = legendary_figure
|
||||||
value = scope:protagonist
|
value = scope:protagonist
|
||||||
|
|
@ -2152,18 +2158,21 @@ give_legendary_building_mythical_legitimizing_tooltip_effect = {
|
||||||
root = {
|
root = {
|
||||||
locale_valid_for_legendary_buildings = yes
|
locale_valid_for_legendary_buildings = yes
|
||||||
}
|
}
|
||||||
capital_province = { has_special_building_slot = no }
|
capital_province = { has_special_district_slot = no }
|
||||||
any_sub_realm_barony = {
|
any_sub_realm_barony = {
|
||||||
title_province = { has_special_building_slot = no }
|
title_province = { has_special_district_slot = no }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
give_legendary_building_location_legitimizing_effect = yes
|
give_legendary_building_location_legitimizing_effect = yes
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:legendary_locale }
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = legendary_reward_location
|
name = legendary_reward_location
|
||||||
value = scope:legendary_locale
|
value = scope:legendary_locale
|
||||||
}
|
}
|
||||||
|
}
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = legendary_figure
|
name = legendary_figure
|
||||||
value = scope:protagonist
|
value = scope:protagonist
|
||||||
|
|
@ -2180,9 +2189,9 @@ give_legendary_building_holy_tooltip_effect = { #50% chance
|
||||||
root = {
|
root = {
|
||||||
locale_valid_for_legendary_buildings = yes
|
locale_valid_for_legendary_buildings = yes
|
||||||
}
|
}
|
||||||
capital_province = { has_special_building_slot = no }
|
capital_province = { has_special_district_slot = no }
|
||||||
any_sub_realm_barony = {
|
any_sub_realm_barony = {
|
||||||
title_province = { has_special_building_slot = no }
|
title_province = { has_special_district_slot = no }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2193,10 +2202,13 @@ give_legendary_building_holy_tooltip_effect = { #50% chance
|
||||||
give_legendary_building_location_holy_effect = yes
|
give_legendary_building_location_holy_effect = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:legendary_locale }
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = legendary_reward_location
|
name = legendary_reward_location
|
||||||
value = scope:legendary_locale
|
value = scope:legendary_locale
|
||||||
}
|
}
|
||||||
|
}
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = legendary_figure
|
name = legendary_figure
|
||||||
value = scope:protagonist
|
value = scope:protagonist
|
||||||
|
|
@ -2211,9 +2223,9 @@ give_legendary_building_heroic_tooltip_effect = { #50% chance
|
||||||
root = {
|
root = {
|
||||||
locale_valid_for_legendary_buildings = yes
|
locale_valid_for_legendary_buildings = yes
|
||||||
}
|
}
|
||||||
capital_province = { has_special_building_slot = no }
|
capital_province = { has_special_district_slot = no }
|
||||||
any_sub_realm_barony = {
|
any_sub_realm_barony = {
|
||||||
title_province = { has_special_building_slot = no }
|
title_province = { has_special_district_slot = no }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2242,9 +2254,9 @@ give_legendary_building_legitimizing_tooltip_effect = { #50% chance
|
||||||
root = {
|
root = {
|
||||||
locale_valid_for_legendary_buildings = yes
|
locale_valid_for_legendary_buildings = yes
|
||||||
}
|
}
|
||||||
capital_province = { has_special_building_slot = no }
|
capital_province = { has_special_district_slot = no }
|
||||||
any_sub_realm_barony = {
|
any_sub_realm_barony = {
|
||||||
title_province = { has_special_building_slot = no }
|
title_province = { has_special_district_slot = no }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2255,10 +2267,13 @@ give_legendary_building_legitimizing_tooltip_effect = { #50% chance
|
||||||
give_legendary_building_location_legitimizing_effect = yes
|
give_legendary_building_location_legitimizing_effect = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if = {
|
||||||
|
limit = { exists = scope:legendary_locale }
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = legendary_reward_location
|
name = legendary_reward_location
|
||||||
value = scope:legendary_locale
|
value = scope:legendary_locale
|
||||||
}
|
}
|
||||||
|
}
|
||||||
set_variable = {
|
set_variable = {
|
||||||
name = legendary_figure
|
name = legendary_figure
|
||||||
value = scope:protagonist
|
value = scope:protagonist
|
||||||
|
|
@ -2276,7 +2291,7 @@ give_legendary_building_location_standard_effect = {
|
||||||
}
|
}
|
||||||
else_if = { # Otherwise, get the capital
|
else_if = { # Otherwise, get the capital
|
||||||
limit = {
|
limit = {
|
||||||
capital_province = { has_special_building_slot = no }
|
capital_province = { has_special_district_slot = no }
|
||||||
}
|
}
|
||||||
capital_province = { save_scope_as = legendary_locale }
|
capital_province = { save_scope_as = legendary_locale }
|
||||||
}
|
}
|
||||||
|
|
@ -2284,13 +2299,13 @@ give_legendary_building_location_standard_effect = {
|
||||||
limit = {
|
limit = {
|
||||||
any_held_title = {
|
any_held_title = {
|
||||||
title_tier = county
|
title_tier = county
|
||||||
title_province = { has_special_building_slot = no }
|
title_province = { has_special_district_slot = no }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
random_held_title = {
|
random_held_title = {
|
||||||
title_tier = county
|
title_tier = county
|
||||||
limit = {
|
limit = {
|
||||||
title_province = { has_special_building_slot = no }
|
title_province = { has_special_district_slot = no }
|
||||||
}
|
}
|
||||||
title_province = { save_scope_as = legendary_locale }
|
title_province = { save_scope_as = legendary_locale }
|
||||||
}
|
}
|
||||||
|
|
@ -2300,7 +2315,7 @@ give_legendary_building_location_standard_effect = {
|
||||||
any_held_title = {
|
any_held_title = {
|
||||||
title_tier = barony
|
title_tier = barony
|
||||||
title_province = {
|
title_province = {
|
||||||
has_special_building_slot = no
|
has_special_district_slot = no
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2308,7 +2323,7 @@ give_legendary_building_location_standard_effect = {
|
||||||
title_tier = barony
|
title_tier = barony
|
||||||
limit = {
|
limit = {
|
||||||
title_province = {
|
title_province = {
|
||||||
has_special_building_slot = no
|
has_special_district_slot = no
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
title_province = {
|
title_province = {
|
||||||
|
|
@ -2321,17 +2336,17 @@ give_legendary_building_location_standard_effect = {
|
||||||
limit = {
|
limit = {
|
||||||
any_held_title = {
|
any_held_title = {
|
||||||
title_tier = county
|
title_tier = county
|
||||||
any_county_province = { has_special_building_slot = no }
|
any_county_province = { has_special_district_slot = no }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
random_held_title = {
|
random_held_title = {
|
||||||
title_tier = county
|
title_tier = county
|
||||||
limit = {
|
limit = {
|
||||||
any_county_province = { has_special_building_slot = no }
|
any_county_province = { has_special_district_slot = no }
|
||||||
}
|
}
|
||||||
random_county_province = {
|
random_county_province = {
|
||||||
limit = {
|
limit = {
|
||||||
has_special_building_slot = no
|
has_special_district_slot = no
|
||||||
}
|
}
|
||||||
save_scope_as = legendary_locale
|
save_scope_as = legendary_locale
|
||||||
}
|
}
|
||||||
|
|
@ -2341,7 +2356,7 @@ give_legendary_building_location_standard_effect = {
|
||||||
limit = {
|
limit = {
|
||||||
any_sub_realm_barony = {
|
any_sub_realm_barony = {
|
||||||
title_province = {
|
title_province = {
|
||||||
has_special_building_slot = no
|
has_special_district_slot = no
|
||||||
has_holding_type = castle_holding
|
has_holding_type = castle_holding
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2349,7 +2364,7 @@ give_legendary_building_location_standard_effect = {
|
||||||
random_sub_realm_barony = {
|
random_sub_realm_barony = {
|
||||||
limit = {
|
limit = {
|
||||||
title_province = {
|
title_province = {
|
||||||
has_special_building_slot = no
|
has_special_district_slot = no
|
||||||
has_holding_type = castle_holding
|
has_holding_type = castle_holding
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2360,7 +2375,7 @@ give_legendary_building_location_standard_effect = {
|
||||||
limit = {
|
limit = {
|
||||||
any_sub_realm_barony = {
|
any_sub_realm_barony = {
|
||||||
title_province = {
|
title_province = {
|
||||||
has_special_building_slot = no
|
has_special_district_slot = no
|
||||||
has_holding = yes
|
has_holding = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2368,7 +2383,7 @@ give_legendary_building_location_standard_effect = {
|
||||||
random_sub_realm_barony = {
|
random_sub_realm_barony = {
|
||||||
limit = {
|
limit = {
|
||||||
title_province = {
|
title_province = {
|
||||||
has_special_building_slot = no
|
has_special_district_slot = no
|
||||||
has_holding = yes
|
has_holding = yes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -254,7 +254,7 @@ migration_settle_down_obedient_vassal_effect = {
|
||||||
value = culture
|
value = culture
|
||||||
}
|
}
|
||||||
set_county_culture = scope:current_vassal.domicile.domicile_culture
|
set_county_culture = scope:current_vassal.domicile.domicile_culture
|
||||||
set_county_faith = scope:current_vassal.domicile.domicile_faith
|
set_county_rite = scope:current_vassal.domicile.domicile_rite
|
||||||
scope:current_vassal = {
|
scope:current_vassal = {
|
||||||
change_liege = {
|
change_liege = {
|
||||||
liege = scope:actor
|
liege = scope:actor
|
||||||
|
|
@ -852,6 +852,7 @@ migration_set_obedient_vassal_effect = {
|
||||||
create_character = {
|
create_character = {
|
||||||
template = herder_character
|
template = herder_character
|
||||||
faith = scope:current_vassal.domicile.domicile_faith
|
faith = scope:current_vassal.domicile.domicile_faith
|
||||||
|
rite = scope:current_vassal.domicile.domicile_rite
|
||||||
culture = scope:current_vassal.domicile.domicile_culture
|
culture = scope:current_vassal.domicile.domicile_culture
|
||||||
location = scope:current_vassal.primary_title.title_capital_county.title_province
|
location = scope:current_vassal.primary_title.title_capital_county.title_province
|
||||||
save_scope_as = herder_character
|
save_scope_as = herder_character
|
||||||
|
|
@ -908,7 +909,29 @@ offer_confederation_accepter_effect = {
|
||||||
custom_tooltip = join_confederation_recipient_tt
|
custom_tooltip = join_confederation_recipient_tt
|
||||||
}
|
}
|
||||||
custom_tooltip = confederation_defensive_wars_tt
|
custom_tooltip = confederation_defensive_wars_tt
|
||||||
custom_tooltip = unlock_leave_confederation_interaction_tt
|
custom_tooltip = unlock_leave_confederation_decision_tt
|
||||||
|
}
|
||||||
|
|
||||||
|
leave_confederation_membership_effect = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
any_confederation_member = {
|
||||||
|
count >= 2
|
||||||
|
NOT = { this = $LEAVER$ }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { is_title_based = yes }
|
||||||
|
remove_confederation_member_title = $LEAVER$.primary_title
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
remove_confederation_member = $LEAVER$
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
# Not enough members would remain, so the whole confederation is dissolved.
|
||||||
|
disband_confederation = yes
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
confederation_realm_transfer_effect = {
|
confederation_realm_transfer_effect = {
|
||||||
|
|
@ -1545,7 +1568,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
1 = { #Merv
|
1 = { #Merv
|
||||||
trigger = {
|
trigger = {
|
||||||
title:c_bukhara = {
|
title:c_bukhara = {
|
||||||
development_level >= 10
|
prosperity_level >= 10
|
||||||
NOT = {
|
NOT = {
|
||||||
holder.top_liege = {
|
holder.top_liege = {
|
||||||
government_has_flag = government_is_nomadic
|
government_has_flag = government_is_nomadic
|
||||||
|
|
@ -1554,7 +1577,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
add = title:c_bukhara.development_level
|
add = title:c_bukhara.prosperity_level
|
||||||
}
|
}
|
||||||
title:b_bukhara = {
|
title:b_bukhara = {
|
||||||
save_scope_as = merchant_origin
|
save_scope_as = merchant_origin
|
||||||
|
|
@ -1563,7 +1586,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
1 = { #Nishapur
|
1 = { #Nishapur
|
||||||
trigger = {
|
trigger = {
|
||||||
title:c_nishapur = {
|
title:c_nishapur = {
|
||||||
development_level >= 10
|
prosperity_level >= 10
|
||||||
NOT = {
|
NOT = {
|
||||||
holder.top_liege = {
|
holder.top_liege = {
|
||||||
government_has_flag = government_is_nomadic
|
government_has_flag = government_is_nomadic
|
||||||
|
|
@ -1572,7 +1595,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
add = title:c_nishapur.development_level
|
add = title:c_nishapur.prosperity_level
|
||||||
}
|
}
|
||||||
title:b_nishapur = {
|
title:b_nishapur = {
|
||||||
save_scope_as = merchant_origin
|
save_scope_as = merchant_origin
|
||||||
|
|
@ -1581,7 +1604,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
1 = { #Khotan
|
1 = { #Khotan
|
||||||
trigger = {
|
trigger = {
|
||||||
title:c_khotan = {
|
title:c_khotan = {
|
||||||
development_level >= 10
|
prosperity_level >= 10
|
||||||
NOT = {
|
NOT = {
|
||||||
holder.top_liege = {
|
holder.top_liege = {
|
||||||
government_has_flag = government_is_nomadic
|
government_has_flag = government_is_nomadic
|
||||||
|
|
@ -1590,7 +1613,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
add = title:c_khotan.development_level
|
add = title:c_khotan.prosperity_level
|
||||||
}
|
}
|
||||||
title:b_khotan = {
|
title:b_khotan = {
|
||||||
save_scope_as = merchant_origin
|
save_scope_as = merchant_origin
|
||||||
|
|
@ -1599,7 +1622,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
1 = { #Wroclaw
|
1 = { #Wroclaw
|
||||||
trigger = {
|
trigger = {
|
||||||
title:c_breslau = {
|
title:c_breslau = {
|
||||||
development_level >= 10
|
prosperity_level >= 10
|
||||||
NOT = {
|
NOT = {
|
||||||
holder.top_liege = {
|
holder.top_liege = {
|
||||||
government_has_flag = government_is_nomadic
|
government_has_flag = government_is_nomadic
|
||||||
|
|
@ -1608,7 +1631,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
add = title:c_breslau.development_level
|
add = title:c_breslau.prosperity_level
|
||||||
}
|
}
|
||||||
title:b_breslau = {
|
title:b_breslau = {
|
||||||
save_scope_as = merchant_origin
|
save_scope_as = merchant_origin
|
||||||
|
|
@ -1617,7 +1640,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
1 = { #Krakow
|
1 = { #Krakow
|
||||||
trigger = {
|
trigger = {
|
||||||
title:c_krakowska = {
|
title:c_krakowska = {
|
||||||
development_level >= 10
|
prosperity_level >= 10
|
||||||
NOT = {
|
NOT = {
|
||||||
holder.top_liege = {
|
holder.top_liege = {
|
||||||
government_has_flag = government_is_nomadic
|
government_has_flag = government_is_nomadic
|
||||||
|
|
@ -1626,7 +1649,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
add = title:c_krakowska.development_level
|
add = title:c_krakowska.prosperity_level
|
||||||
}
|
}
|
||||||
title:b_krakow = {
|
title:b_krakow = {
|
||||||
save_scope_as = merchant_origin
|
save_scope_as = merchant_origin
|
||||||
|
|
@ -1635,7 +1658,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
1 = { #Novgorod
|
1 = { #Novgorod
|
||||||
trigger = {
|
trigger = {
|
||||||
title:c_novgorod = {
|
title:c_novgorod = {
|
||||||
development_level >= 10
|
prosperity_level >= 10
|
||||||
NOT = {
|
NOT = {
|
||||||
holder.top_liege = {
|
holder.top_liege = {
|
||||||
government_has_flag = government_is_nomadic
|
government_has_flag = government_is_nomadic
|
||||||
|
|
@ -1644,7 +1667,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
add = title:c_novgorod.development_level
|
add = title:c_novgorod.prosperity_level
|
||||||
}
|
}
|
||||||
title:b_novgorod = {
|
title:b_novgorod = {
|
||||||
save_scope_as = merchant_origin
|
save_scope_as = merchant_origin
|
||||||
|
|
@ -1653,7 +1676,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
1 = { #Kyiv
|
1 = { #Kyiv
|
||||||
trigger = {
|
trigger = {
|
||||||
title:c_kiev = {
|
title:c_kiev = {
|
||||||
development_level >= 10
|
prosperity_level >= 10
|
||||||
NOT = {
|
NOT = {
|
||||||
holder.top_liege = {
|
holder.top_liege = {
|
||||||
government_has_flag = government_is_nomadic
|
government_has_flag = government_is_nomadic
|
||||||
|
|
@ -1662,7 +1685,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
add = title:c_kiev.development_level
|
add = title:c_kiev.prosperity_level
|
||||||
}
|
}
|
||||||
title:b_kiev = {
|
title:b_kiev = {
|
||||||
save_scope_as = merchant_origin
|
save_scope_as = merchant_origin
|
||||||
|
|
@ -1671,7 +1694,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
1 = { #Baghdad
|
1 = { #Baghdad
|
||||||
trigger = {
|
trigger = {
|
||||||
title:c_baghdad = {
|
title:c_baghdad = {
|
||||||
development_level >= 10
|
prosperity_level >= 10
|
||||||
NOT = {
|
NOT = {
|
||||||
holder.top_liege = {
|
holder.top_liege = {
|
||||||
government_has_flag = government_is_nomadic
|
government_has_flag = government_is_nomadic
|
||||||
|
|
@ -1680,7 +1703,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
add = title:c_baghdad.development_level
|
add = title:c_baghdad.prosperity_level
|
||||||
}
|
}
|
||||||
title:b_baghdad = {
|
title:b_baghdad = {
|
||||||
save_scope_as = merchant_origin
|
save_scope_as = merchant_origin
|
||||||
|
|
@ -1689,7 +1712,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
1 = { #Pisa
|
1 = { #Pisa
|
||||||
trigger = {
|
trigger = {
|
||||||
title:c_pisa = {
|
title:c_pisa = {
|
||||||
development_level >= 10
|
prosperity_level >= 10
|
||||||
NOT = {
|
NOT = {
|
||||||
holder.top_liege = {
|
holder.top_liege = {
|
||||||
government_has_flag = government_is_nomadic
|
government_has_flag = government_is_nomadic
|
||||||
|
|
@ -1698,7 +1721,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
add = title:c_pisa.development_level
|
add = title:c_pisa.prosperity_level
|
||||||
}
|
}
|
||||||
title:b_pisa = {
|
title:b_pisa = {
|
||||||
save_scope_as = merchant_origin
|
save_scope_as = merchant_origin
|
||||||
|
|
@ -1707,7 +1730,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
1 = { #Venice
|
1 = { #Venice
|
||||||
trigger = {
|
trigger = {
|
||||||
title:c_venezia = {
|
title:c_venezia = {
|
||||||
development_level >= 10
|
prosperity_level >= 10
|
||||||
NOT = {
|
NOT = {
|
||||||
holder.top_liege = {
|
holder.top_liege = {
|
||||||
government_has_flag = government_is_nomadic
|
government_has_flag = government_is_nomadic
|
||||||
|
|
@ -1716,7 +1739,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
add = title:c_venezia.development_level
|
add = title:c_venezia.prosperity_level
|
||||||
}
|
}
|
||||||
title:c_venezia = {
|
title:c_venezia = {
|
||||||
save_scope_as = merchant_origin
|
save_scope_as = merchant_origin
|
||||||
|
|
@ -1725,7 +1748,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
1 = { #Cairo
|
1 = { #Cairo
|
||||||
trigger = {
|
trigger = {
|
||||||
title:c_cairo = {
|
title:c_cairo = {
|
||||||
development_level >= 10
|
prosperity_level >= 10
|
||||||
NOT = {
|
NOT = {
|
||||||
holder.top_liege = {
|
holder.top_liege = {
|
||||||
government_has_flag = government_is_nomadic
|
government_has_flag = government_is_nomadic
|
||||||
|
|
@ -1734,7 +1757,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
add = title:c_cairo.development_level
|
add = title:c_cairo.prosperity_level
|
||||||
}
|
}
|
||||||
title:b_cairo = {
|
title:b_cairo = {
|
||||||
save_scope_as = merchant_origin
|
save_scope_as = merchant_origin
|
||||||
|
|
@ -1743,7 +1766,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
1 = { #Genua
|
1 = { #Genua
|
||||||
trigger = {
|
trigger = {
|
||||||
title:c_genoa = {
|
title:c_genoa = {
|
||||||
development_level >= 10
|
prosperity_level >= 10
|
||||||
NOT = {
|
NOT = {
|
||||||
holder.top_liege = {
|
holder.top_liege = {
|
||||||
government_has_flag = government_is_nomadic
|
government_has_flag = government_is_nomadic
|
||||||
|
|
@ -1752,7 +1775,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
modifier = {
|
modifier = {
|
||||||
add = title:c_genoa.development_level
|
add = title:c_genoa.prosperity_level
|
||||||
}
|
}
|
||||||
title:b_genoa = {
|
title:b_genoa = {
|
||||||
save_scope_as = merchant_origin
|
save_scope_as = merchant_origin
|
||||||
|
|
@ -1761,7 +1784,7 @@ mpo_find_suitable_merchant_effect = {
|
||||||
1 = { #Constantinople
|
1 = { #Constantinople
|
||||||
#something has to be in constantinople
|
#something has to be in constantinople
|
||||||
modifier = {
|
modifier = {
|
||||||
add = title:c_byzantion.development_level
|
add = title:c_byzantion.prosperity_level
|
||||||
}
|
}
|
||||||
title:b_constantinople = {
|
title:b_constantinople = {
|
||||||
save_scope_as = merchant_origin
|
save_scope_as = merchant_origin
|
||||||
|
|
@ -2256,7 +2279,6 @@ mpo_decisions_events_friend_fail_effect = {
|
||||||
this = scope:friendship_target
|
this = scope:friendship_target
|
||||||
this = scope:heir
|
this = scope:heir
|
||||||
has_relation_friend = scope:friendship_target
|
has_relation_friend = scope:friendship_target
|
||||||
has_relation_best_friend = scope:friendship_target
|
|
||||||
has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:friendship_target }
|
has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:friendship_target }
|
||||||
is_at_war_with = scope:friendship_target
|
is_at_war_with = scope:friendship_target
|
||||||
}
|
}
|
||||||
|
|
@ -2270,7 +2292,6 @@ mpo_decisions_events_friend_fail_effect = {
|
||||||
this = scope:friendship_target
|
this = scope:friendship_target
|
||||||
this = scope:heir
|
this = scope:heir
|
||||||
has_relation_friend = scope:friendship_target
|
has_relation_friend = scope:friendship_target
|
||||||
has_relation_best_friend = scope:friendship_target
|
|
||||||
has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:friendship_target }
|
has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:friendship_target }
|
||||||
is_at_war_with = scope:friendship_target
|
is_at_war_with = scope:friendship_target
|
||||||
}
|
}
|
||||||
|
|
@ -2287,7 +2308,6 @@ mpo_decisions_events_friend_fail_effect = {
|
||||||
this = scope:friendship_target
|
this = scope:friendship_target
|
||||||
this = scope:heir
|
this = scope:heir
|
||||||
has_relation_friend = scope:friendship_target
|
has_relation_friend = scope:friendship_target
|
||||||
has_relation_best_friend = scope:friendship_target
|
|
||||||
has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:friendship_target }
|
has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:friendship_target }
|
||||||
is_at_war_with = scope:friendship_target
|
is_at_war_with = scope:friendship_target
|
||||||
}
|
}
|
||||||
|
|
@ -2310,7 +2330,6 @@ mpo_decisions_events_friend_fail_effect = {
|
||||||
this = scope:friendship_target
|
this = scope:friendship_target
|
||||||
this = scope:heir
|
this = scope:heir
|
||||||
has_relation_friend = scope:friendship_target
|
has_relation_friend = scope:friendship_target
|
||||||
has_relation_best_friend = scope:friendship_target
|
|
||||||
has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:friendship_target }
|
has_any_bad_relationship_with_character_trigger = { CHARACTER = scope:friendship_target }
|
||||||
is_at_war_with = scope:friendship_target
|
is_at_war_with = scope:friendship_target
|
||||||
}
|
}
|
||||||
|
|
@ -2337,7 +2356,6 @@ mpo_decisions_events_friend_fail_effect = {
|
||||||
scope:friendship_target = {
|
scope:friendship_target = {
|
||||||
NOR = {
|
NOR = {
|
||||||
has_relation_friend = scope:friendship_target
|
has_relation_friend = scope:friendship_target
|
||||||
has_relation_best_friend = scope:friendship_target
|
|
||||||
has_any_bad_relationship_with_character_trigger = { CHARACTER = root }
|
has_any_bad_relationship_with_character_trigger = { CHARACTER = root }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -3111,6 +3129,63 @@ nomad_convert_people_to_tribe_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
nomad_convert_realm_to_tribal_effect = {
|
||||||
|
every_sub_realm_county = {
|
||||||
|
limit = {
|
||||||
|
title_province = {
|
||||||
|
OR = {
|
||||||
|
has_holding_type = nomad_holding
|
||||||
|
has_holding_type = herder_holding
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
title_province = {
|
||||||
|
set_holding_type = tribal_holding
|
||||||
|
}
|
||||||
|
add_to_list = holding_conversion
|
||||||
|
}
|
||||||
|
change_government = tribal_government
|
||||||
|
every_vassal_or_below = {
|
||||||
|
limit = {
|
||||||
|
has_government = nomad_government
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_realm_law = nomadic_authority_1 }
|
||||||
|
remove_realm_law = nomadic_authority_1
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_realm_law = nomadic_authority_2 }
|
||||||
|
remove_realm_law = nomadic_authority_2
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_realm_law = nomadic_authority_3 }
|
||||||
|
remove_realm_law = nomadic_authority_3
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_realm_law = nomadic_authority_4 }
|
||||||
|
remove_realm_law = nomadic_authority_4
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = { has_realm_law = nomadic_authority_5 }
|
||||||
|
remove_realm_law = nomadic_authority_5
|
||||||
|
}
|
||||||
|
change_government = tribal_government
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { has_realm_law = tribal_authority_1 }
|
||||||
|
}
|
||||||
|
add_realm_law_skip_effects = tribal_authority_1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#Start off tribal authorities.
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
NOT = { has_realm_law = tribal_authority_2 }
|
||||||
|
}
|
||||||
|
add_realm_law_skip_effects = tribal_authority_2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
nomad_convert_people_to_clan_effect = {
|
nomad_convert_people_to_clan_effect = {
|
||||||
change_government = clan_government
|
change_government = clan_government
|
||||||
|
|
||||||
|
|
@ -3279,7 +3354,7 @@ mpo_overrunning_vassal_title_distribution_effect = {
|
||||||
}
|
}
|
||||||
else = {
|
else = {
|
||||||
ordered_de_jure_county = {
|
ordered_de_jure_county = {
|
||||||
order_by = development_level
|
order_by = prosperity_level
|
||||||
limit = {
|
limit = {
|
||||||
holder = scope:attacker
|
holder = scope:attacker
|
||||||
}
|
}
|
||||||
|
|
@ -3291,7 +3366,7 @@ mpo_overrunning_vassal_title_distribution_effect = {
|
||||||
#Counts
|
#Counts
|
||||||
else = {
|
else = {
|
||||||
ordered_in_list = {
|
ordered_in_list = {
|
||||||
order_by = development_level
|
order_by = prosperity_level
|
||||||
list = overrun_counties
|
list = overrun_counties
|
||||||
save_scope_as = title_to_grant
|
save_scope_as = title_to_grant
|
||||||
}
|
}
|
||||||
|
|
@ -3697,7 +3772,7 @@ mpo_duchy_overrunning_vassal_title_distribution_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ordered_in_list = {
|
ordered_in_list = {
|
||||||
order_by = development_level
|
order_by = prosperity_level
|
||||||
list = overrun_counties
|
list = overrun_counties
|
||||||
save_scope_as = title_to_grant
|
save_scope_as = title_to_grant
|
||||||
}
|
}
|
||||||
|
|
@ -4875,12 +4950,14 @@ mpo_confederation_join_defensive_war_effect = {
|
||||||
highest_held_title_tier >= tier_county
|
highest_held_title_tier >= tier_county
|
||||||
NOR = {
|
NOR = {
|
||||||
is_at_war_with = scope:defender
|
is_at_war_with = scope:defender
|
||||||
|
is_at_war_with = scope:attacker # Cannot join a second war against them
|
||||||
is_allied_to = scope:attacker
|
is_allied_to = scope:attacker
|
||||||
is_imprisoned_by = scope:defender
|
is_imprisoned_by = scope:defender
|
||||||
is_imprisoned_by = scope:attacker
|
is_imprisoned_by = scope:attacker
|
||||||
is_defender_in_war = scope:war
|
is_defender_in_war = scope:war
|
||||||
is_attacker_in_war = scope:war
|
is_attacker_in_war = scope:war
|
||||||
}
|
}
|
||||||
|
can_confederation_member_join_war_against = scope:attacker
|
||||||
}
|
}
|
||||||
scope:war = {
|
scope:war = {
|
||||||
add_defender = prev
|
add_defender = prev
|
||||||
|
|
@ -6016,7 +6093,7 @@ clean_up_ai_nomad_effect = {
|
||||||
}
|
}
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
has_dlc_feature = roads_to_power
|
has_playable_adventurer_dlc_trigger = yes
|
||||||
is_physically_able_adult = yes
|
is_physically_able_adult = yes
|
||||||
exists = location.county
|
exists = location.county
|
||||||
ai_can_valid_to_create_laamp_trigger = yes
|
ai_can_valid_to_create_laamp_trigger = yes
|
||||||
|
|
@ -6162,6 +6239,23 @@ expanding_steppe_effect = {
|
||||||
SUB_REGION = central
|
SUB_REGION = central
|
||||||
REGION = dlc_mpo_steppe_siberia_further_expansion
|
REGION = dlc_mpo_steppe_siberia_further_expansion
|
||||||
}
|
}
|
||||||
|
custom_tooltip = permafrost_modifier_removal_desc
|
||||||
|
hidden_effect = {
|
||||||
|
situation:the_great_steppe ?= {
|
||||||
|
situation_sub_region:steppe_central = {
|
||||||
|
every_situation_sub_region_county = {
|
||||||
|
if = {
|
||||||
|
limit = { has_county_modifier = mpo_siberian_permafrost_modifier }
|
||||||
|
remove_county_modifier = mpo_siberian_permafrost_modifier
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { has_county_modifier = mpo_siberian_permafrost_modifier_bad }
|
||||||
|
remove_county_modifier = mpo_siberian_permafrost_modifier_bad
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
# East
|
# East
|
||||||
scope:dlc_mpo_steppe_hexi_tarim_expansion = {
|
scope:dlc_mpo_steppe_hexi_tarim_expansion = {
|
||||||
|
|
@ -6718,3 +6812,67 @@ mpo_release_herder_land_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
take_sub_realm_county_as_new_capital_effect = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
capital_county.title_province = {
|
||||||
|
$EXCLUDE$ = no
|
||||||
|
}
|
||||||
|
}
|
||||||
|
capital_county = {
|
||||||
|
save_scope_as = new_capital
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
every_sub_realm_county = {
|
||||||
|
limit = {
|
||||||
|
is_landless_type_title = no
|
||||||
|
title_province = {
|
||||||
|
$EXCLUDE$ = no
|
||||||
|
}
|
||||||
|
# avoid steal player's title
|
||||||
|
trigger_if = {
|
||||||
|
limit = { holder != prev }
|
||||||
|
holder = { is_ai = yes }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
alternative_limit = {
|
||||||
|
is_landless_type_title = no
|
||||||
|
title_province = {
|
||||||
|
$EXCLUDE$ = no
|
||||||
|
}
|
||||||
|
}
|
||||||
|
add_to_list = potential_new_capitals
|
||||||
|
}
|
||||||
|
ordered_in_list = {
|
||||||
|
order_by = title_province.province_size
|
||||||
|
list = potential_new_capitals
|
||||||
|
save_scope_as = new_capital
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
exists = scope:new_capital
|
||||||
|
capital_county != scope:new_capital
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
scope:new_capital.holder != root
|
||||||
|
}
|
||||||
|
create_title_and_vassal_change = {
|
||||||
|
type = usurped
|
||||||
|
save_scope_as = change
|
||||||
|
add_claim_on_loss = yes
|
||||||
|
}
|
||||||
|
scope:new_capital = {
|
||||||
|
change_title_holder = {
|
||||||
|
holder = root
|
||||||
|
change = scope:change
|
||||||
|
}
|
||||||
|
}
|
||||||
|
resolve_title_and_vassal_change = scope:change
|
||||||
|
}
|
||||||
|
set_realm_capital = scope:new_capital
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -502,6 +502,136 @@ ecumenical_council_make_core_preview_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Saves scope:ec_host_rite when the host leads a branched rite of the council's faith
|
||||||
|
ecumenical_council_save_host_branched_rite_effect = {
|
||||||
|
scope:host = {
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
rite != faith.main_rite
|
||||||
|
rite.head_of_rite ?= this
|
||||||
|
}
|
||||||
|
rite = {
|
||||||
|
save_temporary_scope_as = ec_host_rite
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# A host who leads a branched rite carries a passed make-core ruling over to that rite
|
||||||
|
# At the core tenet limit the rite gives up the tenet the main rite demoted, else its least popular tenet that is not core in the main rite
|
||||||
|
# can_pick still sees the tenet about to be dropped
|
||||||
|
# The four exclusive ascetic tenets may swap for one another when it is the only one of them the rite holds
|
||||||
|
# Does nothing if the rite still cannot take the tenet, or has nothing to give up
|
||||||
|
# Uses rite_has_tenet, because has_tenet_status on a branched rite falls back to the main rite, which already holds $TENET$
|
||||||
|
# Reads scope:ec_demoted_tenet, saved when the main rite demoted a tenet
|
||||||
|
ecumenical_council_host_rite_adopt_core_tenet_effect = {
|
||||||
|
ecumenical_council_save_host_branched_rite_effect = yes
|
||||||
|
$TENET$ = {
|
||||||
|
save_temporary_scope_as = ec_host_rite_new_tenet
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
exists = scope:ec_host_rite
|
||||||
|
scope:ec_host_rite = {
|
||||||
|
NOT = { rite_has_tenet = scope:ec_host_rite_new_tenet }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scope:ec_host_rite = {
|
||||||
|
if = {
|
||||||
|
limit = { pam_rite_is_at_core_tenet_cap_trigger = yes }
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
exists = scope:ec_demoted_tenet
|
||||||
|
rite_has_tenet = scope:ec_demoted_tenet
|
||||||
|
}
|
||||||
|
scope:ec_demoted_tenet = {
|
||||||
|
save_temporary_scope_as = ec_host_rite_dropped_tenet
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else = {
|
||||||
|
ordered_rite_tenet = {
|
||||||
|
limit = {
|
||||||
|
save_temporary_scope_as = ec_host_rite_drop_candidate
|
||||||
|
scope:host.faith = {
|
||||||
|
NOT = { pam_faith_tenet_is_core_trigger = { TENET = scope:ec_host_rite_drop_candidate } }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
order_by = {
|
||||||
|
save_temporary_scope_as = pam_popularity_tenet
|
||||||
|
scope:host.faith = { subtract = pam_faith_tenet_popularity_value }
|
||||||
|
}
|
||||||
|
position = 0
|
||||||
|
save_temporary_scope_as = ec_host_rite_dropped_tenet
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
exists = scope:ec_host_rite_dropped_tenet
|
||||||
|
OR = {
|
||||||
|
rite_can_choose_tenet = scope:ec_host_rite_new_tenet
|
||||||
|
pam_rite_can_swap_exclusive_ascetic_tenet_trigger = {
|
||||||
|
NEW = scope:ec_host_rite_new_tenet
|
||||||
|
DROPPED = scope:ec_host_rite_dropped_tenet
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
custom_tooltip = {
|
||||||
|
text = ecumenical_council_host_rite_drops_tenet_tt
|
||||||
|
hidden_effect = {
|
||||||
|
remove_rite_tenet = scope:ec_host_rite_dropped_tenet
|
||||||
|
}
|
||||||
|
}
|
||||||
|
custom_tooltip = {
|
||||||
|
text = ecumenical_council_host_rite_adopts_tenet_tt
|
||||||
|
hidden_effect = {
|
||||||
|
add_rite_tenet = scope:ec_host_rite_new_tenet
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else_if = {
|
||||||
|
limit = { rite_can_choose_tenet = scope:ec_host_rite_new_tenet }
|
||||||
|
custom_tooltip = {
|
||||||
|
text = ecumenical_council_host_rite_adopts_tenet_tt
|
||||||
|
hidden_effect = {
|
||||||
|
add_rite_tenet = scope:ec_host_rite_new_tenet
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# A host who leads a branched rite carries a passed doctrine ruling over to that rite
|
||||||
|
# Reads scope:ec_proposal_doctrine
|
||||||
|
# Head of faith doctrines are main rite only, so they never carry over
|
||||||
|
ecumenical_council_host_rite_adopt_doctrine_effect = {
|
||||||
|
ecumenical_council_save_host_branched_rite_effect = yes
|
||||||
|
if = {
|
||||||
|
limit = {
|
||||||
|
exists = scope:ec_host_rite
|
||||||
|
exists = scope:ec_proposal_doctrine
|
||||||
|
NOR = {
|
||||||
|
scope:ec_proposal_doctrine = doctrine:doctrine_no_head
|
||||||
|
scope:ec_proposal_doctrine = doctrine:doctrine_spiritual_head
|
||||||
|
scope:ec_proposal_doctrine = doctrine:doctrine_temporal_head
|
||||||
|
}
|
||||||
|
scope:ec_host_rite = {
|
||||||
|
NOT = { rite_has_doctrine = scope:ec_proposal_doctrine }
|
||||||
|
rite_can_choose_doctrine = scope:ec_proposal_doctrine
|
||||||
|
}
|
||||||
|
}
|
||||||
|
scope:ec_host_rite = {
|
||||||
|
custom_tooltip = {
|
||||||
|
text = ecumenical_council_host_rite_adopts_doctrine_tt
|
||||||
|
hidden_effect = {
|
||||||
|
change_rite_doctrine = scope:ec_proposal_doctrine
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Applies the outcome of a passed debate vote to the host's faith.
|
# Applies the outcome of a passed debate vote to the host's faith.
|
||||||
# scope:activity.var:current_topic holds the tenet/doctrine being debated.
|
# scope:activity.var:current_topic holds the tenet/doctrine being debated.
|
||||||
# scope:activity.var:current_debate_proposal holds the proposed change.
|
# scope:activity.var:current_debate_proposal holds the proposed change.
|
||||||
|
|
@ -690,6 +820,7 @@ ecumenical_council_apply_debate_outcome_effect = {
|
||||||
limit = { has_tenet_popularity_trigger = yes }
|
limit = { has_tenet_popularity_trigger = yes }
|
||||||
change_tenet_popularity = { target = scope:activity.var:current_topic change = major_tenet_popularity_gain }
|
change_tenet_popularity = { target = scope:activity.var:current_topic change = major_tenet_popularity_gain }
|
||||||
}
|
}
|
||||||
|
ecumenical_council_host_rite_adopt_core_tenet_effect = { TENET = scope:activity.var:current_topic }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -735,33 +866,6 @@ ecumenical_council_apply_debate_outcome_effect = {
|
||||||
scope:activity = {
|
scope:activity = {
|
||||||
save_temporary_scope_as = ec_proposal_activity
|
save_temporary_scope_as = ec_proposal_activity
|
||||||
}
|
}
|
||||||
if = {
|
|
||||||
limit = {
|
|
||||||
OR = {
|
|
||||||
scope:ec_proposal_doctrine = doctrine:doctrine_liturgical_language_none
|
|
||||||
scope:ec_proposal_doctrine = doctrine:doctrine_liturgical_language_latin
|
|
||||||
scope:ec_proposal_doctrine = doctrine:doctrine_liturgical_language_koine
|
|
||||||
scope:ec_proposal_doctrine = doctrine:doctrine_liturgical_language_church_slavonic
|
|
||||||
scope:ec_proposal_doctrine = doctrine:doctrine_liturgical_language_irish
|
|
||||||
scope:ec_proposal_doctrine = doctrine:doctrine_liturgical_language_armenian
|
|
||||||
scope:ec_proposal_doctrine = doctrine:doctrine_liturgical_language_syriac
|
|
||||||
scope:ec_proposal_doctrine = doctrine:doctrine_liturgical_language_classical_georgian
|
|
||||||
scope:ec_proposal_doctrine = doctrine:doctrine_liturgical_language_church_romanian
|
|
||||||
scope:ec_proposal_doctrine = doctrine:doctrine_liturgical_language_arabic
|
|
||||||
scope:ec_proposal_doctrine = doctrine:doctrine_liturgical_language_hebrew
|
|
||||||
scope:ec_proposal_doctrine = doctrine:doctrine_liturgical_language_esperanto
|
|
||||||
}
|
|
||||||
}
|
|
||||||
scope:host.rite = {
|
|
||||||
custom_tooltip = {
|
|
||||||
text = neow_ecumenical_council_adopts_liturgical_language_tt
|
|
||||||
hidden_effect = {
|
|
||||||
change_rite_doctrine = scope:ec_proposal_doctrine
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else = {
|
|
||||||
scope:host.faith = {
|
scope:host.faith = {
|
||||||
# Hide change_doctrine: its history text resolves FAITH from a scope gone on re-render
|
# Hide change_doctrine: its history text resolves FAITH from a scope gone on re-render
|
||||||
custom_tooltip = {
|
custom_tooltip = {
|
||||||
|
|
@ -781,18 +885,7 @@ ecumenical_council_apply_debate_outcome_effect = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
ecumenical_council_host_rite_adopt_doctrine_effect = yes
|
||||||
# Orthodox synodal decrees bind all rites in communion with the hosting faith.
|
|
||||||
# The ordinary Ecumenical Council retains its original scope elsewhere.
|
|
||||||
if = {
|
|
||||||
limit = {
|
|
||||||
scope:host = { religion = religion:eastern_orthodox_religion }
|
|
||||||
exists = scope:ec_proposal_doctrine
|
|
||||||
}
|
|
||||||
neow_pan_orthodox_synod_promulgate_doctrine_effect = {
|
|
||||||
DOCTRINE = scope:ec_proposal_doctrine
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
scope:activity = {
|
scope:activity = {
|
||||||
set_variable = {
|
set_variable = {
|
||||||
|
|
@ -1059,38 +1152,9 @@ pam_sort_guests_into_ecumenical_council_groups_effect = {
|
||||||
# Only eligible voters
|
# Only eligible voters
|
||||||
pam_valid_ecumenical_council_voter_trigger = yes
|
pam_valid_ecumenical_council_voter_trigger = yes
|
||||||
NOT = { has_relation_rival = scope:host }
|
NOT = { has_relation_rival = scope:host }
|
||||||
trigger_if = {
|
|
||||||
limit = {
|
|
||||||
scope:activity = { has_current_phase = ecumenical_council_phase_first_debate }
|
|
||||||
}
|
|
||||||
scope:activity.activity_tenet:1 = {
|
|
||||||
save_temporary_scope_as = tenet
|
|
||||||
}
|
|
||||||
OR = {
|
OR = {
|
||||||
scope:host = { has_strong_hook = prev }
|
scope:host = { has_strong_hook = prev }
|
||||||
ecumenical_council_attendee_support_value > 0
|
ecumenical_council_current_proposal_attendee_support_value > ecumenical_council_current_proposal_innovator_threshold_value
|
||||||
}
|
|
||||||
}
|
|
||||||
trigger_else_if = {
|
|
||||||
limit = {
|
|
||||||
scope:activity = { has_current_phase = ecumenical_council_phase_second_debate }
|
|
||||||
}
|
|
||||||
scope:activity.activity_tenet:2 = {
|
|
||||||
save_temporary_scope_as = tenet
|
|
||||||
}
|
|
||||||
OR = {
|
|
||||||
scope:host = { has_strong_hook = prev }
|
|
||||||
ecumenical_council_attendee_support_value > 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
trigger_else = {
|
|
||||||
scope:activity.var:third_debate_proposal ?= {
|
|
||||||
save_temporary_scope_as = doctrine
|
|
||||||
}
|
|
||||||
OR = {
|
|
||||||
scope:host = { has_strong_hook = prev }
|
|
||||||
ecumenical_council_doctrine_attendee_support_value > 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_to_list = innovator
|
add_to_list = innovator
|
||||||
|
|
@ -1144,42 +1208,51 @@ pam_sort_guests_into_ecumenical_council_groups_effect = {
|
||||||
# populate the list otherwise we have no random event at all.
|
# populate the list otherwise we have no random event at all.
|
||||||
ordered_in_list = {
|
ordered_in_list = {
|
||||||
list = conservative
|
list = conservative
|
||||||
limit = { is_ai = yes }
|
limit = {
|
||||||
|
is_ai = yes
|
||||||
|
# Only flip attendees who lean towards the change, even if not past the innovator threshold
|
||||||
|
ecumenical_council_current_proposal_attendee_support_value > 0
|
||||||
|
}
|
||||||
max = { # a bit more to prevent all flipped
|
max = { # a bit more to prevent all flipped
|
||||||
value = list_size:conservative
|
value = list_size:conservative
|
||||||
multiply = 0.1
|
multiply = 0.1
|
||||||
max = 10
|
max = 10
|
||||||
min = 1
|
min = 1
|
||||||
}
|
}
|
||||||
order_by = {
|
order_by = ecumenical_council_current_proposal_attendee_support_value
|
||||||
|
remove_from_list = conservative
|
||||||
|
add_to_list = innovator
|
||||||
|
scope:activity = {
|
||||||
|
remove_from_guest_subset = {
|
||||||
|
name = conservative
|
||||||
|
target = prev
|
||||||
|
}
|
||||||
|
add_to_guest_subset = {
|
||||||
|
name = innovator
|
||||||
|
target = prev
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
# Nearly every sway event needs an AI innovator, so we draft the least opposed AI conservative if none leans towards the change
|
||||||
|
# The Head of Faith stays a conservative to argue against the host, and we always leave at least one conservative
|
||||||
if = {
|
if = {
|
||||||
limit = {
|
limit = {
|
||||||
scope:activity = { has_current_phase = ecumenical_council_phase_first_debate }
|
NOT = {
|
||||||
|
any_in_list = {
|
||||||
|
list = innovator
|
||||||
|
this != scope:host
|
||||||
}
|
}
|
||||||
scope:activity.activity_tenet:1 = {
|
|
||||||
save_temporary_scope_as = tenet
|
|
||||||
}
|
}
|
||||||
add = ecumenical_council_attendee_support_value
|
list_size:conservative >= 2
|
||||||
}
|
}
|
||||||
else_if = {
|
ordered_in_list = {
|
||||||
|
list = conservative
|
||||||
limit = {
|
limit = {
|
||||||
scope:activity = { has_current_phase = ecumenical_council_phase_second_debate }
|
NOT = { scope:host.faith.religious_head ?= this }
|
||||||
}
|
|
||||||
scope:activity.activity_tenet:2 = {
|
|
||||||
save_temporary_scope_as = tenet
|
|
||||||
}
|
|
||||||
add = ecumenical_council_attendee_support_value
|
|
||||||
}
|
|
||||||
else = {
|
|
||||||
if = {
|
|
||||||
limit = { exists = scope:activity.var:third_debate_proposal }
|
|
||||||
scope:activity.var:third_debate_proposal = {
|
|
||||||
save_temporary_scope_as = doctrine
|
|
||||||
}
|
|
||||||
}
|
|
||||||
add = ecumenical_council_doctrine_attendee_support_value
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
max = 1
|
||||||
|
order_by = ecumenical_council_current_proposal_attendee_support_value
|
||||||
remove_from_list = conservative
|
remove_from_list = conservative
|
||||||
add_to_list = innovator
|
add_to_list = innovator
|
||||||
scope:activity = {
|
scope:activity = {
|
||||||
|
|
|
||||||
|
|
@ -203,30 +203,17 @@ pam_heresy_convert_ruler_to_new_rite_effect = {
|
||||||
pam_heresy_convert_ruler_to_heresy_faith_effect = {
|
pam_heresy_convert_ruler_to_heresy_faith_effect = {
|
||||||
if = {
|
if = {
|
||||||
limit = { faith != scope:heresy_faith }
|
limit = { faith != scope:heresy_faith }
|
||||||
# Catholic heresies and Priestlessness use county-by-county conversion.
|
|
||||||
# The unrestricted conversion effect would bypass their local restrictions.
|
|
||||||
if = {
|
|
||||||
limit = {
|
|
||||||
OR = {
|
|
||||||
scope:heresy_faith = { religion = religion:catholic_religion }
|
|
||||||
scope:heresy_faith = faith:bespopovtsy_faith
|
|
||||||
}
|
|
||||||
}
|
|
||||||
set_character_faith = scope:heresy_faith
|
|
||||||
}
|
|
||||||
else = {
|
|
||||||
set_character_faith_with_conversion = scope:heresy_faith
|
set_character_faith_with_conversion = scope:heresy_faith
|
||||||
|
# The faith_conversion rule can refuse a new heresy, so we convert the ruler directly instead
|
||||||
if = {
|
if = {
|
||||||
limit = { faith != scope:heresy_faith }
|
limit = { faith != scope:heresy_faith }
|
||||||
set_character_faith = scope:heresy_faith
|
set_character_faith = scope:heresy_faith
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
every_held_title = {
|
every_held_title = {
|
||||||
limit = {
|
limit = {
|
||||||
tier = tier_county
|
tier = tier_county
|
||||||
faith = scope:origin_faith
|
faith = scope:origin_faith
|
||||||
pam_heresy_neow_permitted_county_trigger = yes
|
|
||||||
}
|
}
|
||||||
set_county_faith = scope:heresy_faith
|
set_county_faith = scope:heresy_faith
|
||||||
}
|
}
|
||||||
|
|
@ -268,7 +255,6 @@ pam_heresy_convert_ruler_to_heresy_faith_effect = {
|
||||||
save_temporary_scope_as = title_check
|
save_temporary_scope_as = title_check
|
||||||
every_county_in_clerical_region = {
|
every_county_in_clerical_region = {
|
||||||
limit = {
|
limit = {
|
||||||
pam_heresy_neow_permitted_county_trigger = yes
|
|
||||||
faith = scope:origin_faith
|
faith = scope:origin_faith
|
||||||
OR = {
|
OR = {
|
||||||
this = scope:title_check.title_capital_county
|
this = scope:title_check.title_capital_county
|
||||||
|
|
@ -284,7 +270,6 @@ pam_heresy_convert_ruler_to_heresy_faith_effect = {
|
||||||
limit = {
|
limit = {
|
||||||
is_physically_able_ai_adult = yes
|
is_physically_able_ai_adult = yes
|
||||||
faith = scope:origin_faith
|
faith = scope:origin_faith
|
||||||
capital_county = { pam_heresy_neow_permitted_county_trigger = yes }
|
|
||||||
NOR = {
|
NOR = {
|
||||||
scope:founder ?= this
|
scope:founder ?= this
|
||||||
has_trait = heresiarch
|
has_trait = heresiarch
|
||||||
|
|
|
||||||
|
|
@ -809,10 +809,8 @@ pam_extract_relic_from_saint_effect = {
|
||||||
# Surface + rename the drawn relic (no repeated type per saint).
|
# Surface + rename the drawn relic (no repeated type per saint).
|
||||||
if = {
|
if = {
|
||||||
limit = { exists = scope:newly_created_artifact }
|
limit = { exists = scope:newly_created_artifact }
|
||||||
# Expose the artifact in the calling event's immediate scope before
|
|
||||||
# entering the new-object-only hidden block.
|
|
||||||
scope:newly_created_artifact = { save_scope_as = relic_artifact }
|
|
||||||
hidden_effect_new_object = {
|
hidden_effect_new_object = {
|
||||||
|
scope:newly_created_artifact = { save_scope_as = relic_artifact }
|
||||||
scope:relic_artifact = {
|
scope:relic_artifact = {
|
||||||
# Stamped onto the artifact because relic_creator_saint is only in scope during extraction.
|
# Stamped onto the artifact because relic_creator_saint is only in scope during extraction.
|
||||||
set_variable = {
|
set_variable = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue