effects
This commit is contained in:
parent
eaf472631b
commit
60fbfc1893
15 changed files with 2845 additions and 1349 deletions
|
|
@ -5,6 +5,13 @@
|
|||
# !!! 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 = {
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -23,7 +30,6 @@ notify_puppeteer_of_outcome_effect = {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
blackmail_interaction_effect = {
|
||||
if = {
|
||||
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
|
||||
limit = {
|
||||
government_has_mechanic = administrative
|
||||
scope:recipient = {
|
||||
government_has_mechanic = administrative
|
||||
}
|
||||
scope:recipient = { government_has_mechanic = administrative }
|
||||
}
|
||||
}
|
||||
else = { change_strife_opinion = major_strife_gain }
|
||||
|
|
@ -940,13 +944,25 @@ vassal_revocation_tyranny_effect = { #Despite its name this is referenced when _
|
|||
}
|
||||
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 = {
|
||||
limit = {
|
||||
has_revoke_title_reason = scope:recipient
|
||||
}
|
||||
limit = { has_revoke_title_reason = scope:recipient }
|
||||
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 = {
|
||||
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 = {
|
||||
save_scope_as = liege_temp_scope
|
||||
$VASSAL$ = { save_scope_as = vassal_scope }
|
||||
if = {
|
||||
limit = { exists = scope:use_strife_not_tyranny }
|
||||
# If you have revocation reason, we allow that.
|
||||
if = {
|
||||
limit = { has_revoke_title_reason = $VASSAL$ }
|
||||
consume_revoke_title_reason = $VASSAL$
|
||||
limit = { has_revoke_title_reason = scope:vassal_scope }
|
||||
consume_revoke_title_reason = scope:vassal_scope
|
||||
}
|
||||
else = { change_strife_opinion = major_strife_gain }
|
||||
}
|
||||
else_if = {
|
||||
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
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -1027,9 +1060,9 @@ revocation_tyranny_effect = {
|
|||
#If my culture is different from the recipients
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { culture = $VASSAL$.culture }
|
||||
NOT = { culture = scope:vassal_scope.culture }
|
||||
}
|
||||
$VASSAL$.culture = {
|
||||
scope:vassal_scope.culture = {
|
||||
change_cultural_acceptance = {
|
||||
target = scope:liege_temp_scope.culture
|
||||
value = revoke_title_culture_acceptance_impact
|
||||
|
|
@ -1041,7 +1074,7 @@ revocation_tyranny_effect = {
|
|||
else = {
|
||||
if = {
|
||||
limit = {
|
||||
title_revocation_is_admin_governor_trigger = { VASSAL = $VASSAL$ }
|
||||
title_revocation_is_admin_governor_trigger = { VASSAL = scope:vassal_scope }
|
||||
}
|
||||
custom_description = {
|
||||
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
|
||||
}
|
||||
}
|
||||
set_relation_rival = {
|
||||
target = $DISINHERITOR$
|
||||
reason = rival_disinherited
|
||||
set_relation_rival_effect = {
|
||||
TARGET = $DISINHERITOR$
|
||||
REASON = rival_disinherited
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
|
|
@ -1591,9 +1631,9 @@ disinherit_effect = {
|
|||
has_trait = humble
|
||||
}
|
||||
}
|
||||
set_relation_rival = {
|
||||
target = $DISINHERITOR$.primary_heir
|
||||
reason = rival_disinherited
|
||||
set_relation_rival_effect = {
|
||||
TARGET = $DISINHERITOR$.primary_heir
|
||||
REASON = rival_disinherited
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
|
|
@ -1671,9 +1711,9 @@ disinherit_effect = {
|
|||
}
|
||||
}
|
||||
}
|
||||
set_relation_rival = {
|
||||
target = scope:new_primary_heir
|
||||
reason = rival_disinherited
|
||||
set_relation_rival_effect = {
|
||||
TARGET = scope:new_primary_heir
|
||||
REASON = rival_disinherited
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
|
|
@ -1760,7 +1800,18 @@ disinherit_effect = {
|
|||
}
|
||||
|
||||
restore_inheritance_effect = {
|
||||
remove_trait = disinherited
|
||||
if = {
|
||||
limit = {
|
||||
has_trait = disinherited
|
||||
}
|
||||
remove_trait = disinherited
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_trait = adopted_no_inheritance
|
||||
}
|
||||
remove_trait = adopted_no_inheritance
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_opinion_modifier = {
|
||||
|
|
@ -1833,14 +1884,12 @@ denounce_effect = {
|
|||
add_trait = denounced
|
||||
if = {
|
||||
limit = {
|
||||
NOT = {
|
||||
has_relation_rival = $ACTOR$
|
||||
}
|
||||
NOT = { has_relation_rival = scope:actor }
|
||||
}
|
||||
#Rivalry
|
||||
set_relation_rival = {
|
||||
target = $ACTOR$
|
||||
reason = rival_denounced
|
||||
set_relation_rival_effect = {
|
||||
TARGET = scope:actor
|
||||
REASON = rival_denounced
|
||||
}
|
||||
}
|
||||
if = {
|
||||
|
|
@ -2088,14 +2137,18 @@ education_flags_tooltips_effect = {
|
|||
}
|
||||
scope:puppet_or_actor = {
|
||||
remove_short_term_gold = {
|
||||
value = monumental_gold_value
|
||||
value = medium_gold_value
|
||||
if = {
|
||||
limit = { house = { has_house_modifier = ep3_eparch_university_influence_modifier } }
|
||||
limit = { house ?= { has_house_modifier = ep3_eparch_university_influence_modifier } }
|
||||
multiply = {
|
||||
value = 1
|
||||
subtract = university_cost_reduction_value
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = { culture ?= { has_cultural_parameter = roman_law_cheaper_university } }
|
||||
multiply = roman_law_university_cost_mult
|
||||
}
|
||||
}
|
||||
}
|
||||
if = {
|
||||
|
|
@ -2327,8 +2380,28 @@ start_tributary_interaction_effect = {
|
|||
$TRIBUTARY$ = { save_scope_as = tributary_loc }
|
||||
$SUZERAIN$ = { save_scope_as = suzerain_loc }
|
||||
|
||||
#Mandala Tributaries
|
||||
#Merchant Tributaries
|
||||
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 = {
|
||||
should_be_mandala_tributary_trigger = {
|
||||
SUZERAIN = $SUZERAIN$
|
||||
|
|
@ -2863,7 +2936,7 @@ start_tributary_interaction_effect = {
|
|||
custom_tooltip = no_tributary_war_obligations
|
||||
custom_tooltip = no_suzerain_guarantee
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
|
|
@ -3013,7 +3086,15 @@ start_tributary_interaction_effect = {
|
|||
custom_tooltip = no_tributary_war_obligations
|
||||
}
|
||||
}
|
||||
setup_tributary_truces_effect = { SUZERAIN = $SUZERAIN$ TRIBUTARY = $TRIBUTARY$ }
|
||||
# Truces
|
||||
if = {
|
||||
limit = {
|
||||
NOT = {
|
||||
$TRIBUTARY$ = { government_has_flag = government_is_merchant }
|
||||
}
|
||||
}
|
||||
setup_tributary_truces_effect = { SUZERAIN = $SUZERAIN$ TRIBUTARY = $TRIBUTARY$ }
|
||||
}
|
||||
}
|
||||
|
||||
@truce_duration_war_default = 15
|
||||
|
|
@ -3058,6 +3139,14 @@ setup_tributary_truces_effect = {
|
|||
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 = {
|
||||
add_truce_both_ways = {
|
||||
character = $SUZERAIN$
|
||||
|
|
@ -3301,6 +3390,14 @@ call_ally_interaction_event_effect = {
|
|||
}
|
||||
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 = {
|
||||
add_prestige = {
|
||||
value = 0
|
||||
|
|
@ -3510,6 +3607,14 @@ ask_for_pardon_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 = {
|
||||
limit = {
|
||||
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 = {
|
||||
limit = {
|
||||
|
|
@ -3695,11 +3817,11 @@ revoke_title_interaction_effect = {
|
|||
}
|
||||
}
|
||||
|
||||
# If we're a clan this interaction affects unity
|
||||
# House Unity
|
||||
if = {
|
||||
limit = {
|
||||
scope:puppet_or_actor = { government_has_flag = government_is_clan }
|
||||
scope:recipient = { government_has_flag = government_is_clan }
|
||||
scope:puppet_or_actor = { government_has_flag = government_uses_house_unity }
|
||||
scope:recipient = { government_has_flag = government_uses_house_unity }
|
||||
exists = scope:puppet_or_actor.house
|
||||
exists = scope:recipient.house
|
||||
scope:puppet_or_actor.house = scope:recipient.house
|
||||
|
|
@ -3707,27 +3829,21 @@ revoke_title_interaction_effect = {
|
|||
}
|
||||
scope:puppet_or_actor.house = {
|
||||
if = {
|
||||
limit = {
|
||||
scope:landed_title.tier = tier_county
|
||||
}
|
||||
limit = { scope:landed_title.tier = tier_county }
|
||||
save_scope_value_as = {
|
||||
name = revoke_title_unity_loss
|
||||
value = minor_unity_loss
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
scope:landed_title.tier = tier_duchy
|
||||
}
|
||||
else_if = {
|
||||
limit = { scope:landed_title.tier = tier_duchy }
|
||||
save_scope_value_as = {
|
||||
name = revoke_title_unity_loss
|
||||
value = medium_unity_loss
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:landed_title.tier = tier_kingdom
|
||||
}
|
||||
limit = { scope:landed_title.tier = tier_kingdom }
|
||||
save_scope_value_as = {
|
||||
name = revoke_title_unity_loss
|
||||
value = major_unity_loss
|
||||
|
|
@ -3735,7 +3851,7 @@ revoke_title_interaction_effect = {
|
|||
}
|
||||
if = {
|
||||
limit = { exists = scope:revoke_title_unity_loss }
|
||||
add_clan_unity_interaction_effect = {
|
||||
add_house_unity_interaction_effect = {
|
||||
CHARACTER = scope:puppet_or_actor
|
||||
TARGET = scope:recipient
|
||||
VALUE = scope:revoke_title_unity_loss
|
||||
|
|
@ -3750,7 +3866,7 @@ revoke_title_interaction_effect = {
|
|||
scope:recipient = {
|
||||
if = {
|
||||
limit = {
|
||||
has_ep3_dlc_trigger = yes
|
||||
has_playable_adventurer_dlc_trigger = yes
|
||||
is_valid_for_laampdom = yes
|
||||
}
|
||||
# Plus for our memory variable.
|
||||
|
|
@ -3841,19 +3957,15 @@ revoke_title_interaction_effect = {
|
|||
var:requested_my_excommunication = scope:puppet_or_actor
|
||||
}
|
||||
}
|
||||
NOT = {
|
||||
has_relation_rival = scope:puppet_or_actor
|
||||
}
|
||||
NOT = { has_relation_rival = scope:puppet_or_actor }
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_relation_potential_rival = scope:puppet_or_actor
|
||||
}
|
||||
limit = { has_relation_potential_rival = scope:puppet_or_actor }
|
||||
remove_relation_potential_rival = scope:puppet_or_actor
|
||||
}
|
||||
set_relation_rival = {
|
||||
target = scope:puppet_or_actor
|
||||
reason = rival_revoked_title_reversed
|
||||
set_relation_rival_effect = {
|
||||
TARGET = scope:puppet_or_actor
|
||||
REASON = rival_revoked_title_reversed
|
||||
}
|
||||
}
|
||||
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...
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -4262,10 +4396,20 @@ seek_indulgences_interaction_effect = {
|
|||
}
|
||||
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 = {
|
||||
limit = {
|
||||
scope:recipient = {
|
||||
pam_antipope_is_sponsored_by_trigger = { SPONSOR = scope:actor }
|
||||
scope:actor.faith = {
|
||||
any_religious_head_challenger = {
|
||||
holder ?= scope:recipient
|
||||
}
|
||||
}
|
||||
}
|
||||
send_interface_message = {
|
||||
|
|
@ -4497,6 +4641,7 @@ hof_ask_for_gold_interaction_effect = {
|
|||
}
|
||||
if = {
|
||||
limit = {
|
||||
faith.religious_head ?= scope:recipient
|
||||
any_vassal = {
|
||||
vassal_stance = zealot
|
||||
}
|
||||
|
|
@ -4871,6 +5016,10 @@ revoke_holy_order_lease_effect = {
|
|||
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 = {
|
||||
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$ = {
|
||||
send_interface_message = {
|
||||
type = holy_order_lease_revoked_message
|
||||
|
|
@ -4994,8 +5144,8 @@ revoke_holy_order_lease_effect = {
|
|||
$BARONY$ = {
|
||||
save_scope_as = barony
|
||||
county = {
|
||||
#Scaled development loss based on level of holding
|
||||
change_development_level = revoking_lease_development_cost
|
||||
#Scaled prosperity loss based on level of holding
|
||||
change_prosperity_level = revoking_lease_prosperity_cost
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5067,7 +5217,7 @@ revoke_holy_order_lease_effect = {
|
|||
}
|
||||
else = {
|
||||
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 = {
|
||||
add_opinion = {
|
||||
modifier = pleased_opinion
|
||||
|
|
@ -5105,6 +5255,7 @@ revoke_holy_order_lease_effect = {
|
|||
modifier = lost_holy_order_modifier
|
||||
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.
|
||||
$BARONY$ = {
|
||||
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 = {
|
||||
scope:actor = {
|
||||
# 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue