character interactions updating (again)
This commit is contained in:
parent
068d323484
commit
568b018fc5
29 changed files with 4043 additions and 1867 deletions
|
|
@ -182,6 +182,15 @@
|
|||
empire = 12
|
||||
hegemony = 12
|
||||
}
|
||||
ai_frequency_by_tier_government_override = {
|
||||
government = merchant_government
|
||||
barony = 0
|
||||
county = 108
|
||||
duchy = 0
|
||||
kingdom = 0
|
||||
empire = 0
|
||||
hegemony = 0
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
base = 0
|
||||
|
|
@ -324,8 +333,6 @@
|
|||
has_relation_lover = scope:actor
|
||||
has_relation_friend = scope:actor
|
||||
has_secret_relation_lover = scope:actor
|
||||
has_relation_soulmate = scope:actor
|
||||
has_relation_best_friend = scope:actor
|
||||
is_child_of = scope:actor
|
||||
}
|
||||
}
|
||||
|
|
@ -597,6 +604,7 @@ invite_to_court_interaction = {
|
|||
desc = invite_to_court_interaction_desc
|
||||
|
||||
is_shown = {
|
||||
scope:actor = { is_ruler = yes }
|
||||
scope:recipient = {
|
||||
NOR = {
|
||||
is_courtier_of = scope:actor
|
||||
|
|
@ -665,17 +673,13 @@ invite_to_court_interaction = {
|
|||
|
||||
#Pay som gold to persuade a wandering character to come to your court
|
||||
send_option = {
|
||||
is_shown = {
|
||||
exists = scope:recipient
|
||||
}
|
||||
is_shown = { exists = scope:recipient }
|
||||
flag = cover_travel_expenses
|
||||
localization = COVER_TRAVEL_EXPENSES
|
||||
}
|
||||
send_option = { # EP3 Influence
|
||||
is_shown = { # Actor must have a government that uses influence
|
||||
scope:actor = {
|
||||
government_has_flag = government_has_influence
|
||||
}
|
||||
scope:actor = { government_has_flag = government_has_influence }
|
||||
}
|
||||
is_valid = {
|
||||
# Actor has enough influence
|
||||
|
|
@ -688,9 +692,7 @@ invite_to_court_interaction = {
|
|||
}
|
||||
send_option = {
|
||||
is_valid = {
|
||||
scope:actor = {
|
||||
has_usable_hook = scope:recipient
|
||||
}
|
||||
scope:actor = { has_usable_hook = scope:recipient }
|
||||
}
|
||||
flag = hook
|
||||
localization = SCHEME_HOOK
|
||||
|
|
@ -714,58 +716,91 @@ invite_to_court_interaction = {
|
|||
}
|
||||
|
||||
on_accept = {
|
||||
hidden_effect = {
|
||||
scope:recipient = {
|
||||
set_variable = {
|
||||
name = invite_to_court_cooldown
|
||||
years = 5
|
||||
}
|
||||
scope:recipient = {
|
||||
set_variable = {
|
||||
name = invite_to_court_cooldown
|
||||
years = 5
|
||||
}
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
exists = scope:recipient.liege
|
||||
}
|
||||
scope:recipient.liege = {
|
||||
# Message relevant parties
|
||||
liege ?= {
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { government_has_flag = government_is_merchant }
|
||||
}
|
||||
send_interface_message = {
|
||||
type = event_generic_neutral
|
||||
title = msg_courtier_left_court_interaction_title
|
||||
|
||||
right_icon = scope:recipient
|
||||
|
||||
show_as_tooltip = {
|
||||
remove_courtier_or_guest = scope:recipient
|
||||
show_as_tooltip = { remove_courtier_or_guest = scope:recipient }
|
||||
}
|
||||
}
|
||||
else = {
|
||||
send_interface_message = {
|
||||
type = event_generic_bad
|
||||
title = msg_courtier_left_court_interaction_merchant_title
|
||||
right_icon = scope:recipient
|
||||
show_as_tooltip = { remove_courtier_or_guest = scope:recipient }
|
||||
}
|
||||
}
|
||||
# House Relation impact
|
||||
if = { # Only change house relations w vassals or below
|
||||
limit = { this != scope:actor.liege }
|
||||
house ?= {
|
||||
if = {
|
||||
limit = { this != scope:actor.house }
|
||||
if = {
|
||||
limit = {
|
||||
NOT = { has_house_relation_with = scope:actor.house }
|
||||
}
|
||||
set_house_relation = {
|
||||
target = scope:actor.house
|
||||
level = quarrel
|
||||
description = house_relation_poached_talent_desc
|
||||
}
|
||||
}
|
||||
else = {
|
||||
change_house_relation_effect = {
|
||||
HOUSE = scope:actor.house
|
||||
VALUE = house_relation_damage_minor_value
|
||||
REASON = poached_talent
|
||||
CHAR = scope:actor
|
||||
TARGET_CHAR = scope:recipient.liege
|
||||
TITLE = scope:dummy_gender
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
scope:actor = {
|
||||
send_interface_message = {
|
||||
type = event_generic_neutral
|
||||
title = invite_to_court_interaction_notification
|
||||
right_icon = scope:recipient
|
||||
|
||||
scope:recipient = {
|
||||
every_traveling_family_member = {
|
||||
scope:actor = { add_courtier = prev }
|
||||
hidden_effect = {
|
||||
return_to_court = yes
|
||||
}
|
||||
hidden_effect = { return_to_court = yes }
|
||||
}
|
||||
}
|
||||
|
||||
if = {
|
||||
limit = { always = scope:hook }
|
||||
scope:actor = {
|
||||
use_hook = scope:recipient
|
||||
scope:actor = { use_hook = scope:recipient }
|
||||
}
|
||||
if = {
|
||||
limit = { government_has_flag = government_uses_company_sentiment }
|
||||
house ?= {
|
||||
add_unity_value = {
|
||||
value = minor_unity_loss
|
||||
character = scope:recipient
|
||||
desc = merchant_invite_associate_loss
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if = {
|
||||
limit = { always = scope:cover_travel_expenses }
|
||||
scope:actor = {
|
||||
|
|
@ -784,7 +819,7 @@ invite_to_court_interaction = {
|
|||
}
|
||||
|
||||
ai_accept = {
|
||||
base = -50
|
||||
base = -80
|
||||
|
||||
#Opinions
|
||||
opinion_modifier = {
|
||||
|
|
@ -964,18 +999,14 @@ invite_to_court_interaction = {
|
|||
add = -50
|
||||
desc = AI_INSPIRED
|
||||
inspiration ?= {
|
||||
NOT = {
|
||||
exists = inspiration_sponsor
|
||||
}
|
||||
NOT = { exists = inspiration_sponsor }
|
||||
}
|
||||
}
|
||||
|
||||
modifier = {
|
||||
add = -500
|
||||
desc = AI_SPONSORED_INSPIRATION
|
||||
inspiration ?= {
|
||||
exists = inspiration_sponsor
|
||||
}
|
||||
inspiration ?= { exists = inspiration_sponsor }
|
||||
}
|
||||
|
||||
modifier = {
|
||||
|
|
@ -991,9 +1022,7 @@ invite_to_court_interaction = {
|
|||
is_adult = no
|
||||
any_memory = {
|
||||
memory_type = family_castration_fled_memory
|
||||
memory_participant:castrator ?= {
|
||||
this = scope:actor
|
||||
}
|
||||
memory_participant:castrator ?= { this = scope:actor }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1011,9 +1040,7 @@ invite_to_court_interaction = {
|
|||
add = scope:actor.diplomacy
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
faith = scope:actor.faith
|
||||
}
|
||||
limit = { faith = scope:actor.faith }
|
||||
add = 10
|
||||
}
|
||||
else_if = {
|
||||
|
|
@ -1029,16 +1056,12 @@ invite_to_court_interaction = {
|
|||
add = 5
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
culture = scope:actor.culture
|
||||
}
|
||||
limit = { culture = scope:actor.culture }
|
||||
add = 10
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
culture = {
|
||||
has_same_culture_heritage = scope:actor.culture
|
||||
}
|
||||
culture = { has_same_culture_heritage = scope:actor.culture }
|
||||
}
|
||||
add = 5
|
||||
}
|
||||
|
|
@ -1074,15 +1097,11 @@ invite_to_court_interaction = {
|
|||
add = {
|
||||
value = 20
|
||||
if = {
|
||||
limit = {
|
||||
has_trait = greedy
|
||||
}
|
||||
limit = { has_trait = greedy }
|
||||
multiply = 1.5
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_trait = generous
|
||||
}
|
||||
limit = { has_trait = generous }
|
||||
multiply = 0.5
|
||||
}
|
||||
}
|
||||
|
|
@ -1108,7 +1127,7 @@ invite_to_court_interaction = {
|
|||
if = {
|
||||
limit = {
|
||||
scope:actor = {
|
||||
amenity_level = { target = court_lodging_standards value >= very_high_amenity_level }
|
||||
amenity_level = { target = court_lodging_standards value >= very_high_amenity_level }
|
||||
}
|
||||
}
|
||||
add = 10
|
||||
|
|
@ -1116,7 +1135,7 @@ invite_to_court_interaction = {
|
|||
if = {
|
||||
limit = {
|
||||
scope:actor = {
|
||||
amenity_level = { target = court_lodging_standards value >= max_amenity_level }
|
||||
amenity_level = { target = court_lodging_standards value >= max_amenity_level }
|
||||
}
|
||||
}
|
||||
add = 20
|
||||
|
|
@ -1174,15 +1193,47 @@ invite_to_court_interaction = {
|
|||
multiply = 0.5
|
||||
}
|
||||
desc = AI_HOUSE_UNITY
|
||||
scope:actor = { government_has_flag = government_is_clan }
|
||||
exists = house
|
||||
exists = scope:actor.house
|
||||
house = scope:actor.house
|
||||
house = {
|
||||
OR = {
|
||||
has_house_unity_stage = harmonious
|
||||
has_house_unity_stage = friendly
|
||||
}
|
||||
scope:actor = {
|
||||
government_has_flag = government_uses_house_unity
|
||||
exists = house
|
||||
}
|
||||
house ?= {
|
||||
this = scope:actor.house
|
||||
house_unity_is_positive_trigger = yes
|
||||
}
|
||||
}
|
||||
|
||||
modifier = {
|
||||
add = {
|
||||
value = scope:actor.house.house_unity_value
|
||||
multiply = 0.5
|
||||
}
|
||||
desc = AI_COMPANY_DIRECTION
|
||||
scope:actor = {
|
||||
government_has_flag = government_uses_company_sentiment
|
||||
exists = house
|
||||
}
|
||||
house ?= {
|
||||
this = scope:actor.house
|
||||
house_unity_is_positive_trigger = yes
|
||||
}
|
||||
}
|
||||
|
||||
modifier = {
|
||||
add = 50
|
||||
desc = AI_RECIPIENT_COMPANY_SENTIMENT
|
||||
scope:recipient.liege ?= {
|
||||
government_has_flag = government_is_merchant
|
||||
house ?= { has_house_unity_stage = rapacious_cs }
|
||||
}
|
||||
}
|
||||
|
||||
modifier = {
|
||||
add = 20
|
||||
desc = AI_RECIPIENT_COMPANY_SENTIMENT_OPPORTUNISTIC
|
||||
scope:recipient.liege ?= {
|
||||
government_has_flag = government_is_merchant
|
||||
house ?= { has_house_unity_stage = opportunistic_cs }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1238,9 +1289,7 @@ invite_to_court_interaction = {
|
|||
}
|
||||
|
||||
modifier = {
|
||||
scope:actor.culture = {
|
||||
has_cultural_parameter = invite_courtiers_reasons
|
||||
}
|
||||
scope:actor.culture = { has_cultural_parameter = invite_courtiers_reasons }
|
||||
add = 15
|
||||
desc = invite_courtiers_additional_reason
|
||||
}
|
||||
|
|
@ -1254,7 +1303,57 @@ invite_to_court_interaction = {
|
|||
add = -200
|
||||
desc = cid_1010_no_invite_var_desc
|
||||
}
|
||||
}
|
||||
|
||||
# #Guelphs & Ghibellines
|
||||
# modifier = {
|
||||
# scope:recipient = {
|
||||
# has_opinion_modifier = {
|
||||
# modifier = banished_me
|
||||
# target = scope:actor
|
||||
# }
|
||||
# }
|
||||
# add = -500
|
||||
# desc = RECIPIENT_WAS_BANISHED_BY_ACTOR
|
||||
# }
|
||||
# modifier = {
|
||||
# scope:actor = { is_ghibelline_trigger = yes }
|
||||
# scope:recipient = { exists = var:displaced_ghibelline_ruler }
|
||||
# add = 100
|
||||
# desc = RECIPIENT_WAS_GHIBELLINE_SIDE
|
||||
# }
|
||||
# modifier = {
|
||||
# scope:actor = { is_guelph_trigger = yes }
|
||||
# scope:recipient = { exists = var:displaced_guelph_ruler }
|
||||
# add = 100
|
||||
# desc = RECIPIENT_WAS_GUELPH_SIDE
|
||||
# }
|
||||
# modifier = {
|
||||
# scope:actor = { is_ghibelline_trigger = yes }
|
||||
# scope:recipient = { exists = var:displaced_guelph_ruler }
|
||||
# add = -200
|
||||
# desc = RECIPIENT_WAS_GUELPH_SIDE
|
||||
# }
|
||||
# modifier = {
|
||||
# scope:actor = { is_guelph_trigger = yes }
|
||||
# scope:recipient = { exists = var:displaced_ghibelline_ruler }
|
||||
# add = -200
|
||||
# desc = RECIPIENT_WAS_GHIBELLINE_SIDE
|
||||
# }
|
||||
# modifier = {
|
||||
# OR = {
|
||||
# AND = {
|
||||
# scope:actor = { is_guelph_trigger = yes }
|
||||
# scope:recipient.var:displaced_ghibelline_ruler ?= scope:actor
|
||||
# }
|
||||
# AND = {
|
||||
# scope:actor = { is_ghibelline_trigger = yes }
|
||||
# scope:recipient.var:displaced_guelph_ruler ?= scope:actor
|
||||
# }
|
||||
# }
|
||||
# add = -1000
|
||||
# desc = RECIPIENT_WAS_DISPLACED_BY_ACTOR
|
||||
# }
|
||||
# }
|
||||
|
||||
auto_accept = {
|
||||
custom_description = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue