Professional Documents
Culture Documents
Clan Events
Clan Events
# Flavor events
# clan.1001-1999
#################
# #
# FLAVOR #
# #
#################
#########################################
# Powerful vassal requests marriage #
# by Linnéa Thimrén #
#########################################
scripted_trigger clan_1001_valid_vassal = {
is_powerful_vassal_of = root
has_government = clan_government
NOT = { is_allied_to = root }
any_child = {
save_temporary_scope_as = child_check
root = {
any_child = {
is_married = no
can_marry_character_trigger = { CHARACTER =
scope:child_check }
}
}
}
}
clan.1001 = {
type = character_event
title = clan.1001.t
desc = clan.1001.desc
theme = realm
left_portrait = scope:child
right_portrait = scope:vassal
lower_right_portrait = scope:vassal_child
trigger = {
has_government = clan_government
NOT = { has_character_flag = had_event_clan_1001 }
any_vassal = {
clan_1001_valid_vassal = yes
}
}
immediate = {
add_character_flag = {
flag = had_event_clan_1001
years = 10
}
every_child = {
limit = {
is_married = no
}
add_to_list = unmarried_children
}
random_vassal = {
limit = {
clan_1001_valid_vassal = yes
}
save_scope_as = vassal
random_child = {
limit = {
save_temporary_scope_as = child_check
any_in_list = {
list = unmarried_children
can_marry_character_trigger = { CHARACTER =
scope:child_check }
}
}
save_scope_as = vassal_child
}
}
random_in_list = {
list = unmarried_children
limit = {
can_marry_character_trigger = { CHARACTER =
scope:vassal_child }
}
weight = {
base = 1
modifier = {
add = 1
NOT = { is_primary_heir_of = root }
}
}
save_scope_as = child
}
}
option = { #nah
name = clan.1001.b
scope:vassal = {
add_opinion = {
target = root
modifier = refusal_opinion
opinion = -30
}
}
ai_chance = {
base = 50
}
}
}
immediate = {
scope:rejected_betrothed = {
save_scope_as = vassal_child
random_parent = {
limit = {
is_vassal_of = root
}
save_scope_as = vassal
add_opinion = {
target = root
modifier = broke_promise
}
}
}
scope:rejecting_betrothed = {
save_scope_as = child
}
#################################
# A vassal asks for a perk #
# by Linnéa Thimrén #
#################################
clan.1011 = {
type = character_event
title = clan.1011.t
desc = {
desc = clan.1011.desc_opening
first_valid = {
triggered_desc = {
trigger = {
exists = scope:army_1
}
desc = clan.1011.desc_army
}
triggered_desc = {
trigger = {
exists = scope:prestige_1
}
desc = clan.1011.desc_prestige
}
triggered_desc = {
trigger = {
exists = scope:diplomacy_1
}
desc = clan.1011.desc_diplomacy
}
triggered_desc = {
trigger = {
exists = scope:prowess_1
}
desc = clan.1011.desc_prowess
}
desc = clan.1011.desc_fallback
}
}
theme = realm
left_portrait = scope:vassal
right_portrait = scope:allied_vassal
lower_center_portrait = scope:councillor
trigger = {
has_government = clan_government
NOT = { has_character_flag = had_event_clan_1011 }
any_vassal = {
has_government = clan_government
is_allied_to = root
}
any_vassal = {
has_government = clan_government
NOT = { is_allied_to = root }
}
}
immediate = {
add_character_flag = {
flag = had_event_clan_1011
years = 10
}
random_vassal = { #An ally you hopefully like somewhat
limit = {
has_government = clan_government
is_allied_to = root
has_friendly_relationship_with_root_trigger = yes
}
alternative_limit = {
has_government = clan_government
is_allied_to = root
has_any_bad_relationship_with_root_trigger = no
}
alternative_limit = {
has_government = clan_government
is_allied_to = root
}
weight = {
base = 1
opinion_modifier = {
opinion_target = root
}
}
save_scope_as = allied_vassal
}
random_vassal = { #A poor not-allied vassal :(
limit = {
has_government = clan_government
NOT = { is_allied_to = root }
has_friendly_relationship_with_root_trigger = no
}
alternative_limit = {
has_government = clan_government
NOT = { is_allied_to = root }
}
save_scope_as = vassal
}
option = { #army
name = clan.1011.army
trigger = {
OR = {
exists = scope:army_1
exists = scope:army
}
}
if = {
limit = {
NOT = { exists = scope:army_1 }
}
custom_tooltip = clan.1011.tt
}
scope:councillor = {
add_character_modifier = {
modifier = focused_on_teaching_martial_modifier
years = 5
}
}
scope:vassal = {
add_character_modifier = {
modifier = trained_troops_modifier
years = 5
}
}
ai_chance = {
base = 50
}
}
option = { #prestige
name = clan.1011.prestige
trigger = {
OR = {
exists = scope:prestige_1
exists = scope:prestige
}
}
if = {
limit = {
NOT = { exists = scope:prestige_1 }
}
custom_tooltip = clan.1011.tt
}
add_prestige = medium_prestige_loss
scope:vassal = {
add_prestige = medium_prestige_gain
}
ai_chance = {
base = 50
}
}
option = { #diplomacy
name = clan.1011.diplomacy
trigger = {
OR = {
exists = scope:diplomacy_1
exists = scope:diplomacy
}
}
if = {
limit = {
NOT = { exists = scope:diplomacy_1 }
}
custom_tooltip = clan.1011.tt
}
scope:vassal = {
add_character_modifier = {
modifier = diplomacy_student_modifier
years = 5
}
}
add_character_modifier = {
modifier = busy_tutoring_modifier
years = 5
}
ai_chance = {
base = 50
}
}
option = { #prowess
name = clan.1011.prowess
trigger = {
OR = {
exists = scope:prowess_1
exists = scope:prowess
}
}
if = {
limit = {
NOT = { exists = scope:prowess_1 }
}
custom_tooltip = clan.1011.tt
}
scope:vassal = {
add_character_modifier = {
modifier = prowess_student_modifier
years = 5
}
}
add_character_modifier = {
modifier = busy_tutoring_modifier
years = 5
}
ai_chance = {
base = 50
}
}
option = { #fallback
name = clan.1011.fallback
trigger = {
NOR = {
exists = scope:army
exists = scope:prestige
exists = scope:diplomacy
}
short_term_gold >= medium_gold_value
}
show_as_unavailable = {
short_term_gold < medium_gold_value
}
remove_short_term_gold = medium_gold_value
scope:vassal = {
add_gold = medium_gold_value
}
ai_chance = {
base = 50
}
}
option = { #nah
name = clan.1011.b
scope:vassal = {
add_opinion = {
target = root
modifier = refusal_opinion
opinion = -30
}
}
ai_chance = {
base = 10
}
}
}
#########################################
# Vassal Resents Nepotism #
# by Sean Hughes #
#########################################
scripted_trigger clan_1101_complaining_vassal = {
clan_1101_nondynastic_vassal = yes
is_available_ai_adult = yes
scripted_trigger clan_1101_nondynastic_vassal = {
has_government = clan_government
NOT = {
dynasty = root.dynasty
}
}
clan.1101 = {
type = character_event
title = clan.1101.t
desc = clan.1101.desc
theme = realm
left_portrait = {
character = scope:vassal
animation = beg
}
trigger = {
has_government = clan_government
any_vassal = {
clan_1101_complaining_vassal = yes
}
any_vassal = {
clan_1101_nondynastic_vassal = yes
percent <= 0.35
}
}
weight_multiplier = {
base = 0.5
modifier = {
any_vassal = {
clan_1101_nondynastic_vassal = yes
percent <= 0.25
}
add = 0.5
}
modifier = {
any_vassal = {
clan_1101_nondynastic_vassal = yes
percent <= 0.15
}
add = 1
}
}
immediate = {
random_vassal = {
limit = {
is_powerful_vassal_of = root
clan_1101_complaining_vassal = yes
}
alternative_limit = {
clan_1101_complaining_vassal = yes
}
weight = {
base = 1
compare_modifier = {
value = highest_held_title_tier
}
ai_value_modifier = {
ai_greed = 0.01 # Between +1 and -1
}
}
save_scope_as = vassal
}
}
skill = diplomacy
scope:vassal = {
add_opinion = {
modifier = pleased_opinion
target = root
opinion = 10
}
}
}
scope:vassal = {
add_opinion = {
modifier = pleased_opinion
target = root
opinion = 20
}
}
every_vassal_or_below = {
limit = {
dynasty = root.dynasty
}
custom = clan.1101.b.custom
custom_tooltip = clan.1101.b.tt
add_opinion = {
modifier = angry_opinion
target = root
opinion = -10
}
hidden_effect = {
reverse_add_opinion = {
modifier = curtailed_privileges_opinion
target = root
years = 5
}
}
}
}
imprison_character_effect = {
IMPRISONER = root
TARGET = scope:vassal
}
}
scope:vassal = {
add_opinion = {
modifier = refusal_opinion
target = root
opinion = -20
}
}
every_vassal_or_below = {
limit = {
clan_1101_nondynastic_vassal = yes
NOT = { THIS = scope:vassal }
}
custom = clan.1101.d.custom
add_opinion = {
modifier = disappointed_opinion
target = root
opinion = -10
}
}
}
}
#########################################
# Culture seeks Representation #
# by Sean Hughes #
#########################################
scripted_trigger clan_1201_has_unrepresented_culture_trigger = {
save_temporary_scope_as = this_county
holder = {
# Ruled by a foreigner
NOT = { culture = scope:this_county.culture }
}
}
}
}
clan.1201 = {
type = character_event
title = clan.1201.t
desc = clan.1201.desc
theme = realm
left_portrait = {
character = scope:petitioner
}
right_portrait = {
character = scope:vassal
}
trigger = {
has_government = clan_government
any_sub_realm_county = {
clan_1201_has_unrepresented_culture_trigger = yes
NOT = { this = root.primary_title }
}
}
immediate = {
# Find a county of a culture that has no representation in government.
random_sub_realm_county = {
limit = {
clan_1201_has_unrepresented_culture_trigger = yes
NOT = { this = root.primary_title }
}
save_scope_as = county
culture = { save_scope_as = culture }
name = clan.1201.a
# Assign all titles in the duchy (including the duchy itself) to the
petitioner.
create_title_and_vassal_change = {
type = granted
save_scope_as = change
add_claim_on_loss = yes
}
if = {
limit = {
scope:target_title = {
tier = tier_duchy
}
}
scope:target_title = {
change_title_holder = {
holder = scope:petitioner
change = scope:change
}
holder = {
add_to_list = upset_vassals
}
}
}
every_in_list = {
list = target_title_counties
limit = {
holder = {
target_is_liege_or_above = root
}
}
holder = {
add_to_list = upset_vassals
}
change_title_holder = {
holder = scope:petitioner
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
every_in_list = {
list = upset_vassals
add_opinion = {
modifier = angry_opinion
target = root
opinion = -50
}
}
}
add_courtier = scope:petitioner
scope:petitioner = {
add_opinion = {
modifier = pleased_opinion
target = root
opinion = 30
}
}
every_in_list = {
list = target_title_counties
limit = {
holder = {
target_is_liege_or_above = root
}
}
change_county_control = -50
add_county_modifier = {
modifier = peasant_war_lost_county_modifier
years = 10
}
}
}