East Europe Events
East Europe Events
immediate = {
play_music_cue = "mx_cue_epic_sacral_moment"
unite_the_western_slavs_decision_effects = yes
}
option = {
name = east_europe.0001.a
give_nickname = nick_the_wend
}
}
option = {
name = name_i_see
}
}
immediate = {
play_music_cue = "mx_cue_epic_sacral_moment"
unite_the_southern_slavs_decision_effects = yes
}
option = {
name = east_europe.0001.a
give_nickname = nick_the_crowned
}
}
option = {
name = name_i_see
}
}
option = {
name = east_europe.0010.a
if = {
limit = { is_female = yes }
give_nickname = nick_the_polyanitsa
}
else = {
give_nickname = nick_the_bogatyr
}
}
}
option = {
name = name_i_see
}
}
immediate = {
#Music cue in follow-up event.
faith = {
every_holy_site = {
limit = {
county.holder = root
title_province = { has_special_building = no }
# barony = { }
}
add_to_list = holy_sites
}
}
save_target_list_as_separate_scopes_effect = { TARGET_LIST = holy_sites
}
}
option = {
name = east_europe.0015.a
custom_tooltip = east_europe.0015.tooltip
scope:target_list_member_a = {
save_scope_as = holy_site
}
}
option = {
name = east_europe.0015.b
custom_tooltip = east_europe.0015.tooltip
scope:target_list_member_b = {
save_scope_as = holy_site
}
}
option = {
trigger = { exists = scope:target_list_member_c }
name = east_europe.0015.c
custom_tooltip = east_europe.0015.tooltip
scope:target_list_member_c = {
save_scope_as = holy_site
}
}
option = {
trigger = { exists = scope:target_list_member_d }
name = east_europe.0015.d
custom_tooltip = east_europe.0015.tooltip
scope:target_list_member_d = {
save_scope_as = holy_site
}
}
after = {
trigger_event = east_europe.0016
}
}
immediate = {
play_music_cue = "mx_cue_sacredrite"
defenders_of_highgod_decision_effects = yes
}
option = {
name = east_europe.0016.a
give_nickname = nick_the_defender_of_highgod
}
after = {
every_player = {
limit = {
NOT = { this = scope:defender_of_highgod }
is_within_diplo_range = { CHARACTER = root }
}
trigger_event = east_europe.0017
}
}
}
immediate = {
#If the character shares the hero's faith, _then_ cue the music.
if = {
limit = { faith = scope:defender_of_highgod.faith }
play_music_cue = "mx_cue_sacredrite"
}
}
option = {
name = {
trigger = { faith = scope:defender_of_highgod.faith }
text = east_europe.0016.a
}
name = {
trigger = { NOT = { faith = scope:defender_of_highgod.faith } }
text = name_i_see
}
}
}
immediate = {
play_music_cue = "mx_cue_faith_conversion"
save_scope_as = scoped_ruler
promote_hungarian_settlement_decision_scripted_effect = yes
}
option = {
name = east_europe.0030.a
every_player = {
limit = {
NOT = { this = root }
capital_province = {
geographical_region = world_europe_east
}
}
trigger_event = east_europe.0031
}
}
}
option = {
name = {
trigger = {
culture = { has_cultural_pillar = heritage_magyar }
target_is_liege_or_above = scope:scoped_ruler
}
text = east_europe.0031.a
}
name = {
trigger = {
NAND = {
culture = { has_cultural_pillar = heritage_magyar }
target_is_liege_or_above = scope:scoped_ruler
}
}
text = east_europe.0031.b
}
}
}
##################################################
# Reviving Magyarism
# by Flavio Verna & Ewan Cowhig Croft
# 0032-0034
##################################################
scripted_effect revive_magyar_paganism_notify_players_effect = {
every_player = {
limit = {
NOT = { this = root }
capital_province = {
geographical_region = world_europe_east
}
}
trigger_event = east_europe.0034
}
}
east_europe.0032 = {
type = character_event
title = east_europe.0032.t
desc = east_europe.0032.desc
theme = faith
left_portrait = {
character = scope:scoped_ruler
animation = personality_zealous
}
override_background = { event_background = throne_room }
immediate = {
play_music_cue = "mx_cue_faith_conversion"
save_scope_as = scoped_ruler
faith = { save_scope_as = old_faith }
revive_magyar_paganism_decision_scripted_effect = yes
}
east_europe.0034 = {
type = character_event
title = east_europe.0034.t
desc = {
first_valid = {
triggered_desc = {
trigger = { top_liege = root }
desc = east_europe.0034.desc.vassals
}
desc = east_europe.0034.desc.outsiders
}
desc = east_europe.0034.desc.intro
triggered_desc = {
trigger = { scope:hungarian_return = flag:vanilla }
desc = east_europe.0034.desc.conversion_vanilla
}
triggered_desc = {
trigger = { scope:hungarian_return = flag:syncretic }
desc = east_europe.0034.desc.conversion_syncretic
}
triggered_desc = {
trigger = { scope:hungarian_return = flag:bloodthirsty }
desc = east_europe.0034.desc.conversion_bloodthirsty
}
triggered_desc = {
trigger = { scope:hungarian_return = flag:adaptive }
desc = east_europe.0034.desc_conversion_adaptive
}
}
theme = faith
left_portrait = scope:scoped_ruler
override_background = { event_background = wilderness_forest_pine }
#Vassals who do not follow the faith may decide to convert after all.
option = {
name = east_europe.0034.b
trigger = {
top_liege = root
NOT = { religion = religion:magyar_religion }
}
set_character_faith_with_conversion = faith:magyar_pagan
}
##################################################
# Founding the Kingdom of Bosnia
# by Ewan Cowhig Croft
# 0101-0102
##################################################
immediate = {
play_music_cue = "mx_cue_postive_effect"
found_kingdom_of_bosnia_decision_scripted_effect = yes
}
#Your wry smile walking away from your coronation will be remembered.
add_stress = major_stress_loss
##################################################
# I Think I Smell HERESY
# by Ewan Cowhig Croft
# 0111-0130
##################################################
scripted_trigger krstjani_manipulate_hof_valid_critical_success_target_trigger = {
exists = scope:critical_success
#The accuser must still be around/eligible to actually *be* excommunicated.
scope:accuser = {
is_alive = yes
NOT = { has_trait = excommunicated }
}
}
scripted_trigger generic_invalidation_criteria_trigger = {
OR = {
scope:hof = {
OR = {
#Scope:hof has died.
is_alive = no
#Scope:hof has been deposed.
NOT = { this = scope:hof.faith.religious_head }
}
}
scope:heretic = {
OR = {
#Scope:heretic has died.
is_alive = no
#Scope:heretic is no longer an independent ruler (including
being deposed).
is_independent_ruler = no
#Scope:heretic has become a different flavour of ecumenical
Christian.
faith = {
NOT = { this = faith:bosnian_church }
has_doctrine = special_doctrine_ecumenical_christian
}
#Scope:heretic has become a different heretic.
faith = {
NAND = {
this = faith:bosnian_church
has_doctrine =
special_doctrine_ecumenical_christian
}
}
#Scope:heretic has converted to a different Abrahamic
religion.
faith.religion = {
NOT = { this = religion:christianity_religion }
is_in_family = rf_abrahamic
}
#Scope:heretic has converted to a totally different
religious family.
faith.religion = {
NOT = { is_in_family = rf_abrahamic }
}
}
}
}
}
scripted_effect on_trigger_fail_no_heretic_notification_effect = {
#First, we trigger notification events. These have limited mechanical
effects, so we're not too worried if they get lost in the system.
#All actual core mechanical functionality is carried out in east_europe.0122,
which is a hidden maintenance event, and goes off regardless of whether or not
there are players there to witness it.
scope:accuser = {
#Inform scope:accuser.
if = {
limit = {
is_alive = yes
is_landed = yes
}
#Trigger the notification event.
trigger_event = east_europe.0123
}
#... Or their probable heir.
else_if = {
limit = {
AND = { #Just here to prevent errors in the event that
their primary title has been destroyed.
exists = primary_title.holder
primary_title.holder = { dynasty =
scope:accuser.dynasty }
}
}
primary_title.holder = { trigger_event = east_europe.0123 }
}
}
#No notice for scope:heretic, as they've not been informed at all at this
stage in the chain.
#Clear the variable from the list after a reasonable cooldown.
trigger_event = {
id = east_europe.0122
years = accuse_the_krstjani_of_heresy_cancellation_cooldown_value
}
}
scripted_effect on_trigger_fail_full_notifications_effect = {
#First, we trigger notification events. These have limited mechanical
effects, so we're not too worried if they get lost in the system.
#All actual core mechanical functionality is carried out in east_europe.0122,
which is a hidden maintenance event, and goes off regardless of whether or not
there are players there to witness it.
scope:accuser = {
#Inform scope:accuser.
if = {
limit = {
is_alive = yes
is_landed = yes
}
trigger_event = east_europe.0123
}
#... Or their probable heir.
else_if = {
limit = {
AND = { #Just here to prevent errors in the event that
their primary title has been destroyed.
exists = primary_title.holder
primary_title.holder = { dynasty =
scope:accuser.dynasty }
}
}
primary_title.holder = { trigger_event = east_europe.0123 }
}
}
scope:heretic = {
#Inform scope:heretic.
if = {
limit = {
is_alive = yes
is_landed = yes
}
trigger_event = east_europe.0124
}
#... Or their probable heir.
else_if = {
limit = {
AND = { #Just here to prevent errors in the event that
their primary title has been destroyed.
exists = primary_title.holder
primary_title.holder = { dynasty =
scope:heretic.dynasty }
}
}
primary_title.holder = { trigger_event = east_europe.0124}
}
}
#Clear the variable from the list after a reasonable cooldown.
trigger_event = {
id = east_europe.0122
years = accuse_the_krstjani_of_heresy_cancellation_cooldown_value
}
}
##Event Block
ai_chance = {
#The AI will always pick this.
base = 100
}
}
ai_chance = {
#The AI never backs down from this event.
base = 0
}
}
}
trigger = { generic_invalidation_criteria_trigger = no }
on_trigger_fail = {
on_trigger_fail_no_heretic_notification_effect = yes
}
#Announce failure.
custom_tooltip = east_europe.0111.tt.announce_failure
#Clear the variable from the list after a reasonable cooldown.
custom_tooltip = east_europe.0111.tt.regular_cooldown
trigger_event = {
id = east_europe.0122
years = accuse_the_krstjani_of_heresy_failure_cooldown_value
}
ai_chance = {
#The AI will always choose this.
base = 100
}
}
}
trigger = { generic_invalidation_criteria_trigger = no }
on_trigger_fail = {
on_trigger_fail_no_heretic_notification_effect = yes
}
ai_chance = {
#AI will always choose this option.
base = 100
}
}
}
trigger = { generic_invalidation_criteria_trigger = no }
on_trigger_fail = {
on_trigger_fail_no_heretic_notification_effect = yes
}
stress_impact = {
zealous = medium_stress_impact_loss
lazy = minor_stress_impact_gain
craven = minor_stress_impact_gain
}
ai_chance = {
base = 100
ai_value_modifier = {
ai_zeal = 0.75
ai_boldness = 0.5
}
modifier = { #Weight up for stress.
add = 20
has_trait = zealous
}
modifier = { #Weight down for stress.
add = -10
has_trait = lazy
}
modifier = { #Weight down for stress.
add = -10
has_trait = craven
}
}
}
#If the hook is strong, and scope:accuser both uses a communion faith &
has no counter-hook, then this is a critical success.
if = {
limit = {
has_strong_usable_hook = scope:hof
scope:hof.faith = { has_doctrine_parameter =
excommunication_active }
NOT = {
scope:accuser = { has_strong_hook = scope:hof}
}
}
save_scope_value_as = {
name = critical_success
value = yes
}
}
#Spend hooks appropriately.
use_hook = scope:hof
#Send the response event.
custom_tooltip = east_europe.0114.b.tt
trigger_event = {
id = east_europe.0118
days = { 7 14 }
}
stress_impact = {
deceitful = medium_stress_impact_loss
arbitrary = medium_stress_impact_loss
honest = medium_stress_impact_gain
just = medium_stress_impact_gain
}
ai_chance = {
base = 10000 #Since this is an autosuccess, the AI should
pretttty much always take it if they have the choice (barring stress traits).
ai_value_modifier = {
ai_boldness = 0.75
ai_honor = -0.5
}
#Stress values here are set up so that, if scope:heretic has
appropriate traits, they might actually _not_ choose this, even with the auto-win.
modifier = { #Weight up for stress.
add = 9920
has_trait = deceitful
}
modifier = { #Weight up for stress.
add = 9920
has_trait = arbitrary
}
modifier = { #Weight down for stress.
add = -9920
has_trait = honest
}
modifier = { #Weight down for stress.
add = -9920
has_trait = just
}
}
}
stress_impact = {
deceitful = medium_stress_impact_loss
arbitrary = medium_stress_impact_loss
honest = medium_stress_impact_gain
just = medium_stress_impact_gain
}
ai_chance = {
base = 100
ai_value_modifier = {
ai_boldness = 0.75
ai_honor = -0.5
}
modifier = { #Weight up for stress.
add = 20
has_trait = deceitful
}
modifier = { #Weight up for stress.
add = 20
has_trait = arbitrary
}
modifier = { #Weight down for stress.
add = -20
has_trait = honest
}
modifier = { #Weight down for stress.
add = -20
has_trait = just
}
}
}
stress_impact = {
humble = minor_stress_impact_loss
cynical = major_stress_impact_loss
arrogant = minor_stress_impact_gain
zealous = major_stress_impact_gain
}
ai_chance = {
base = 100
ai_value_modifier = {
#Intentionally set these to be a bit more realpolitik than
usual: it's not necessarily a sincere conversion, after all.
ai_rationality = 0.75
ai_zeal = -0.25
}
modifier = { #Weight up for stress.
add = 10
has_trait = humble
}
modifier = { #Weight up for stress.
add = 30
has_trait = cynical
}
modifier = { #Weight down for stress.
add = -10
has_trait = arrogant
}
modifier = { #Weight down for stress.
add = -30
has_trait = zealous
}
}
}
#Fallout begins.
custom_tooltip = east_europe.0114.e.tt
trigger_event = {
id = east_europe.0120
days = { 7 14 }
}
stress_impact = {
arrogant = minor_stress_impact_loss
zealous = major_stress_impact_loss
humble = minor_stress_impact_gain
cynical = major_stress_impact_gain
}
ai_chance = {
base = 100
ai_value_modifier = {
#Intentionally set these to be a bit more realpolitik than
usual: it's not necessarily a sincere conversion, after all.
ai_zeal = 0.25
ai_rationality = -0.75
}
modifier = { #Weight up for stress.
add = 10
has_trait = arrogant
}
modifier = { #Weight up for stress.
add = 30
has_trait = zealous
}
modifier = { #Weight down for stress.
add = -10
has_trait = humble
}
modifier = { #Weight down for stress.
add = -30
has_trait = cynical
}
}
}
}
immediate = {
if = {
limit = { scope:heretic_conversion = flag:political }
show_as_tooltip = {
scope:heretic = { set_character_faith = scope:hof.faith }
}
}
else_if = {
limit = { scope:heretic_conversion = flag:wholehearted }
show_as_tooltip = {
scope:heretic = { set_character_faith_with_conversion =
scope:hof.faith }
}
}
}
ai_chance = {
#The AI will always take this option.
base = 100
}
}
ai_chance = {
#The AI does not have access to this option.
base = 0
}
}
}
immediate = {
#Reduced cooldown for ordinary successes.
custom_tooltip = east_europe.0111.tt.regular_cooldown
trigger_event = {
id = east_europe.0122
years = accuse_the_krstjani_of_heresy_failure_cooldown_value
}
#Flag them as a converted Krstjani leader, so that they can't just
reconvert for free via false conversions.
add_character_flag = {
flag = atoned_krstjani_leader_flag
years = 20
}
}
stress_impact = {
stubborn = minor_stress_impact_loss
zealous = minor_stress_impact_loss
fickle = minor_stress_impact_gain
arbitrary = minor_stress_impact_gain
}
ai_chance = {
base = 100
ai_value_modifier = {
ai_zeal = 0.5
ai_vengefulness = -0.25
}
modifier = { #Weight up for stress.
add = 10
has_trait = stubborn
}
modifier = { #Weight up for stress.
add = 10
has_trait = zealous
}
modifier = { #Weight down for stress.
add = -10
has_trait = fickle
}
modifier = { #Weight down for stress.
add = -10
has_trait = arbitrary
}
}
}
stress_impact = {
fickle = minor_stress_impact_loss
arbitrary = minor_stress_impact_loss
stubborn = medium_stress_impact_gain
zealous = medium_stress_impact_gain
}
ai_chance = {
base = 100
ai_value_modifier = {
ai_honor = 0.25
ai_vengefulness = 0.25
}
modifier = { #Weight up for stress.
add = 10
has_trait = fickle
}
modifier = { #Weight up for stress.
add = 10
has_trait = arbitrary
}
modifier = { #Weight down for stress.
add = -20
has_trait = stubborn
}
modifier = { #Weight down for stress.
add = -20
has_trait = zealous
}
}
}
}
trigger = { generic_invalidation_criteria_trigger = no }
on_trigger_fail = {
on_trigger_fail_full_notifications_effect = yes
}
immediate = {
#Apply excommunication if necessary.
if = {
limit =
{ krstjani_manipulate_hof_valid_critical_success_target_trigger = yes }
add_excommunication_actual_effect = yes
save_scope_value_as = {
name = excommunicated_just_now
value = yes
}
}
#If possible, quietly make scope:hof a potential rival. Just for
funsies.
hidden_effect = {
if = {
limit = {
can_set_relation_potential_rival_trigger =
{ CHARACTER = scope:hof }
}
set_relation_potential_rival = scope:hof
}
}
}
#This is a travesty!
option = {
name = east_europe.0117.a
trigger = {
NOT = { exists = scope:excommunicated_just_now }
}
#Announce failure.
custom_tooltip = east_europe.0111.tt.announce_failure
#Clear the variable from the list after a reasonable cooldown.
custom_tooltip = east_europe.0111.tt.regular_cooldown
trigger_event = {
id = east_europe.0122
years = accuse_the_krstjani_of_heresy_failure_cooldown_value
}
ai_chance = {
#The AI will always take this option if available.
base = 100
}
}
#Announce failure.
custom_tooltip = east_europe.0111.tt.announce_failure
#Clear the variable from the list after a LONG cooldown.
custom_tooltip = east_europe.0111.tt.critical_cooldown
trigger_event = {
id = east_europe.0122
years =
accuse_the_krstjani_of_heresy_critical_failure_cooldown_value
}
ai_chance = {
#The AI will always take this option if available.
base = 100
}
}
#Announce failure.
custom_tooltip = east_europe.0111.tt.announce_failure
#Clear the variable from the list after a LONG cooldown.
custom_tooltip = east_europe.0111.tt.critical_cooldown
trigger_event = {
id = east_europe.0122
years =
accuse_the_krstjani_of_heresy_critical_failure_cooldown_value
}
on_trigger_fail = {
on_trigger_fail_full_notifications_effect = yes
}
immediate = {
if = {
limit = {
scope:accuser =
{ krstjani_manipulate_hof_valid_critical_success_target_trigger = yes }
}
scope:accuser = { add_excommunication_tooltip_only_effect = yes }
#Clear the variable from the list after a reasonable cooldown.
custom_tooltip = east_europe.0111.tt.critical_cooldown
trigger_event = {
id = east_europe.0122
years =
accuse_the_krstjani_of_heresy_critical_failure_cooldown_value
}
}
else = {
#Reduced cooldown for ordinary successes.
custom_tooltip = east_europe.0111.tt.regular_cooldown
trigger_event = {
id = east_europe.0122
years =
accuse_the_krstjani_of_heresy_failure_cooldown_value
}
}
scope:accuser = { trigger_event = east_europe.0117 }
}
stress_impact = {
zealous = medium_stress_impact_loss
cynical = minor_stress_impact_gain
}
ai_chance = {
base = 100
ai_value_modifier = {
ai_zeal = 0.5
ai_boldness = 0.25
}
modifier = { #Weight down for stress.
add = 20
has_trait = zealous
}
modifier = { #Weight down for stress.
add = -10
has_trait = cynical
}
}
}
add_stress = massive_stress_loss
stress_impact = {
cynical = medium_stress_impact_loss
zealous = minor_stress_impact_gain
}
ai_chance = {
base = 100
ai_value_modifier = {
ai_energy = 0.25
ai_zeal = -0.5
}
modifier = { #Weight down for stress.
add = 20
has_trait = cynical
}
modifier = { #Weight down for stress.
add = -10
has_trait = zealous
}
}
}
}
trigger = { generic_invalidation_criteria_trigger = no }
on_trigger_fail = {
on_trigger_fail_full_notifications_effect = yes
}
immediate = {
show_as_tooltip = {
#The Krstjani are formally declared to be heretical.
faith:bosnian_church = { remove_doctrine =
special_doctrine_ecumenical_christian }
}
}
#Vindication!
option = {
name = east_europe.0119.a
add_piety_experience = major_piety_value
ai_chance = {
#The AI will always take this option.
base = 100
}
}
}
trigger = { generic_invalidation_criteria_trigger = no }
on_trigger_fail = {
on_trigger_fail_full_notifications_effect = yes
}
immediate = {
#The Krstjani are formally declared to be heretical.
faith:bosnian_church = { remove_doctrine =
special_doctrine_ecumenical_christian }
#The accuser is told of their triumph!
scope:accuser = { trigger_event = east_europe.0119 }
#Relevant players (neighbouring realms and Krstjani ones) are informed.
every_player = {
limit = {
NOR = {
this = scope:heretic #Not the actual chief
heretic.
this = scope:accuser #Nor the chief accuser.
}
OR = {
faith = faith:bosnian_church
any_neighboring_top_liege_realm = { holder =
scope:heretic }
}
}
trigger_event = east_europe.0121
}
}
#This is terrible!
option = {
name = east_europe.0120.a
custom_tooltip = east_europe.0120.a.tt
ai_chance = {
#The AI will always pick this option.
base = 100
}
}
}
show_as_tooltip = {
faith:bosnian_church = { remove_doctrine =
special_doctrine_ecumenical_christian }
}
ai_chance = {
#AI choice is irrelevant.
base = 100
}
}
show_as_tooltip = {
faith:bosnian_church = { remove_doctrine =
special_doctrine_ecumenical_christian }
}
ai_chance = {
#AI choice is irrelevant.
base = 100
}
}
show_as_tooltip = {
faith:bosnian_church = { remove_doctrine =
special_doctrine_ecumenical_christian }
}
ai_chance = {
#AI choice is irrelevant.
base = 100
}
}
}
trigger = {
#Just some basic triggers, since this is mostly, but not entirely, just
a notification.
is_alive = yes
is_adult = yes
#Tonally required to not have converted/been inherited by a Krstjan.
NOT = { faith = faith:bosnian_church }
}
immediate = {
#Check to see why we've invalidated.
##Scope:hof has died.
if = {
limit = {
scope:hof = { is_alive = no }
}
save_scope_value_as = {
name = invalidation_type
value = flag:hof_died
}
#Set-up portraits.
scope:hof = { save_scope_as = dead_character }
}
##Scope:heretic has died.
else_if = {
limit = {
scope:heretic = { is_alive = no }
}
save_scope_value_as = {
name = invalidation_type
value = flag:heretic_died
}
#Set-up portraits.
scope:heretic = { save_scope_as = dead_character }
}
##Scope:hof is no longer actually the hof.
else_if = {
limit = {
scope:hof = {
NOT = { this = scope:hof.faith.religious_head}
}
}
save_scope_value_as = {
name = invalidation_type
value = flag:hof_no_longer_hof
}
#Set-up portraits.
scope:heretic = { save_scope_as = escaped_on_technicality }
}
##Scope:heretic is no longer independent.
else_if = {
limit = {
scope:heretic = { is_independent_ruler = no }
}
save_scope_value_as = {
name = invalidation_type
value = flag:heretic_not_independent_ruler
}
#Set-up portraits.
scope:heretic = { save_scope_as = escaped_on_technicality }
}
##Scope:heretic has converted to a different ecumenical faith.
else_if = {
limit = {
scope:heretic = {
faith = {
NOT = { this = faith:bosnian_church }
has_doctrine =
special_doctrine_ecumenical_christian
}
}
}
save_scope_value_as = {
name = invalidation_type
value = flag:heretic_now_ecumenical_christian
}
#Set-up portraits.
scope:heretic = { save_scope_as = escaped_on_technicality }
}
##Scope:heretic has converted to another heresy.
else_if = {
limit = {
scope:heretic = {
faith = {
NAND = {
this = faith:bosnian_church
has_doctrine =
special_doctrine_ecumenical_christian
}
}
}
}
save_scope_value_as = {
name = invalidation_type
value = flag:heretic_now_different_heresy
}
#Set-up portraits.
scope:heretic = { save_scope_as = escaped_on_technicality }
}
##Scope:heretic has converted to another Abrahamic religion.
else_if = {
limit = {
scope:heretic = {
faith.religion = {
NOT = { this = religion:christianity_religion }
is_in_family = rf_abrahamic
}
}
}
save_scope_value_as = {
name = invalidation_type
value = flag:heretic_now_infidel
}
#Set-up portraits.
scope:heretic = { save_scope_as = escaped_on_technicality }
}
##Scope:heretic has converted to a non-Abrahamic religion.
else_if = {
limit = {
scope:heretic = {
faith.religion = {
NOT = { is_in_family = rf_abrahamic }
}
}
}
save_scope_value_as = {
name = invalidation_type
value = flag:heretic_now_heathen
}
#Set-up portraits.
scope:heretic = { save_scope_as = escaped_on_technicality }
}
##Aaaaand a fallback, in case something goes weird.
else = {
save_scope_value_as = {
name = invalidation_type
value = flag:fallback
}
#Set-up portraits.
scope:heretic = { save_scope_as = escaped_on_technicality }
}
}
#Announce failure.
custom_tooltip = east_europe.0111.tt.announce_failure
#Clear the variable from the list after a reasonable cooldown.
custom_tooltip = east_europe.0111.tt.cancellation_cooldown
ai_chance = {
#The AI will always pick this option.
base = 100
}
}
}
# Heretic POV: decision has invalidated for some reason.
east_europe.0124 = {
type = character_event
title = east_europe.0124.t
desc = {
desc = east_europe.0124.desc.intro
first_valid = {
triggered_desc = {
trigger = { scope:invalidation_type = flag:hof_died }
desc = east_europe.0124.desc.hof_died
}
triggered_desc = {
trigger = { scope:invalidation_type = flag:heretic_died }
desc = east_europe.0124.desc.heretic_died
}
triggered_desc = {
trigger = { scope:invalidation_type =
flag:hof_no_longer_hof}
desc = east_europe.0123.desc.hof_no_longer_hof
}
triggered_desc = {
trigger = { scope:invalidation_type =
flag:heretic_not_independent_ruler }
desc = east_europe.0124.desc.heretic_not_independent_ruler
}
triggered_desc = {
trigger = { scope:invalidation_type =
flag:heretic_now_ecumenical_christian }
desc =
east_europe.0124.desc.heretic_now_ecumenical_christian
}
triggered_desc = {
trigger = { scope:invalidation_type =
flag:heretic_now_different_heresy }
desc = east_europe.0124.desc.heretic_now_different_heresy
}
triggered_desc = {
trigger = { scope:invalidation_type =
flag:heretic_now_infidel }
desc = east_europe.0124.desc.heretic_now_infidel
}
triggered_desc = {
trigger = { scope:invalidation_type =
flag:heretic_now_heathen }
desc = east_europe.0124.desc.heretic_now_heathen
}
triggered_desc = {
trigger = { scope:invalidation_type = flag:fallback }
desc = east_europe.0124.desc.fallback
}
}
desc = east_europe.0124.desc.outro
}
theme = faith
left_portrait = {
character = scope:dead_character
animation = sadness
}
right_portrait = {
character = scope:escaped_on_technicality
animation = dismissal
}
override_background = { event_background = council_chamber }
trigger = {
#Just some basic triggers, since this is mostly, but not entirely, just
a notification.
is_alive = yes
is_adult = yes
}
immediate = {
#Check to see why we've invalidated.
##Scope:hof has died.
if = {
limit = {
scope:hof = { is_alive = no }
}
save_scope_value_as = {
name = invalidation_type
value = flag:hof_died
}
#Set-up portraits.
scope:hof = { save_scope_as = dead_character }
}
##Scope:heretic has died.
else_if = {
limit = {
scope:heretic = { is_alive = no }
}
save_scope_value_as = {
name = invalidation_type
value = flag:heretic_died
}
#Set-up portraits.
scope:heretic = { save_scope_as = dead_character }
}
##Scope:hof is no longer actually the hof.
else_if = {
limit = {
scope:hof = {
NOT = { this = scope:hof.faith.religious_head}
}
}
save_scope_value_as = {
name = invalidation_type
value = flag:hof_no_longer_hof
}
#Set-up portraits.
scope:heretic = { save_scope_as = escaped_on_technicality }
}
##Scope:heretic is no longer independent.
else_if = {
limit = {
scope:heretic = { is_independent_ruler = no }
}
save_scope_value_as = {
name = invalidation_type
value = flag:heretic_not_independent_ruler
}
#Set-up portraits.
scope:heretic = { save_scope_as = escaped_on_technicality }
}
##Scope:heretic has converted to a different ecumenical faith.
else_if = {
limit = {
scope:heretic = {
faith = {
NOT = { this = faith:bosnian_church }
has_doctrine =
special_doctrine_ecumenical_christian
}
}
}
save_scope_value_as = {
name = invalidation_type
value = flag:heretic_now_ecumenical_christian
}
#Set-up portraits.
scope:heretic = { save_scope_as = escaped_on_technicality }
}
##Scope:heretic has converted to another heresy.
else_if = {
limit = {
scope:heretic = {
faith = {
NAND = {
this = faith:bosnian_church
has_doctrine =
special_doctrine_ecumenical_christian
}
}
}
}
save_scope_value_as = {
name = invalidation_type
value = flag:heretic_now_different_heresy
}
#Set-up portraits.
scope:heretic = { save_scope_as = escaped_on_technicality }
}
##Scope:heretic has converted to another Abrahamic religion.
else_if = {
limit = {
scope:heretic = {
faith.religion = {
NOT = { this = religion:christianity_religion }
is_in_family = rf_abrahamic
}
}
}
save_scope_value_as = {
name = invalidation_type
value = flag:heretic_now_infidel
}
#Set-up portraits.
scope:heretic = { save_scope_as = escaped_on_technicality }
}
##Scope:heretic has converted to a non-Abrahamic religion.
else_if = {
limit = {
scope:heretic = {
faith.religion = {
NOT = { is_in_family = rf_abrahamic }
}
}
}
save_scope_value_as = {
name = invalidation_type
value = flag:heretic_now_heathen
}
#Set-up portraits.
scope:heretic = { save_scope_as = escaped_on_technicality }
}
##Aaaaand a fallback, in case something goes weird.
else = {
save_scope_value_as = {
name = invalidation_type
value = flag:fallback
}
#Set-up portraits.
scope:heretic = { save_scope_as = escaped_on_technicality }
}
}
add_stress = medium_stress_loss
ai_chance = {
#The AI will always pick this option.
base = 100
}
}
}
immediate = {
#What is the HoF's reply?
random_list = {
#Default to yes.
100 = {
trigger_event = {
id = east_europe.113
days = { 7 14 }
}
#Always do it if you have a strong hook on the HoF (though
you're not *technically* using it).
modifier = {
add = 1000
has_strong_hook = scope:hof
}
#Weight up nicely if you have a regular hook (though you're
still not *technically* using it).
modifier = {
add = 25
has_hook = scope:hof
}
#A friendly HoF wants to agree with you.
modifier = {
add = 30
any_relation = {
type = friend
this = scope:hof
}
}
#A lover HoF wants to agree with you.
modifier = {
add = 50
any_relation = {
type = lover
this = scope:hof
}
}
#An extremely-friendly HoF wants to agree with you.
modifier = {
add = 20
reverse_opinion = {
target = scope:hof
value >= high_positive_opinion
}
}
#Potentially-negative values from this point on need to be
added to the refusal branch.
##An extremely-unfriendly HoF wants to disagree with you.
modifier = {
add = -20
reverse_opinion = {
target = scope:hof
value <= high_negative_opinion
}
}
##Weight down a bit for sin (no weight up for virtue, since
this is already overwhelmingly likely: we're really just checking to see if your
HoF is going to call you out for hypocrisy).
modifier = {
add = -10
num_sinful_traits = 1
}
modifier = {
add = -20
num_sinful_traits = 2
}
modifier = {
add = -30
num_sinful_traits = 3
}
modifier = {
add = -40
num_sinful_traits = 4
}
modifier = {
add = -50
num_sinful_traits >= 5
}
##A rivalling HoF wants to disagree with you.
modifier = {
add = -50
any_relation = {
type = rival
this = scope:hof
}
}
##A HoF that shares scope:heretic's culture is less likely
to want to pick on a fellow countryman.
modifier = {
add = -20
scope:hof.culture = scope:heretic.culture
}
}
#Disable no by default: this option is weighted upwards according
to how visibly unchristian scope:accuser is.
0 = {
trigger_event = {
id = east_europe.0112
days = 5
}
##################################################
# Last Gasp of the Great Migrations
# by Ewan Cowhig Croft
# 0131-0150
##################################################
immediate = {
save_scope_as = mogyer_invader
every_player = {
limit = {
NOT = { this = scope:mogyer_invader }
}
if = {
limit = {
any_vassal_or_below = { this = scope:mogyer_invader }
}
trigger_event = east_europe.0142
}
if = {
limit = {
any_sub_realm_county = {
title_province = { geographical_region =
custom_hungary }
}
#Exempt the liege from getting this message: should
be edge case, but the declaration of war should be enough to let them know that
they're gonna have a bad time.
NOT = {
any_vassal_or_below = { this =
scope:mogyer_invader }
}
}
trigger_event = east_europe.0143
}
}
}
custom_tooltip = east_europe.0141.a.tt
ai_chance = {
#The AI will always pick this.
base = 100
}
}
}
#A foolhardy errand.
option = {
name = east_europe.0142.a
custom_tooltip = east_europe.0142.a.tt
ai_chance = {
#The AI will always pick this.
base = 100
}
}
}
custom_tooltip = east_europe.0143.a.tt
ai_chance = {
#The AI will always pick this.
base = 100
}
}
}
##################################################
# Founding the Kingdom of Livonia
# by James Beaumont
##################################################
immediate = {
play_music_cue = "mx_cue_postive_effect"
found_kingdom_of_livonia_decision_scripted_effect = yes
}
immediate = {
play_music_cue = "mx_cue_postive_effect"
found_kingdom_of_livonia_decision_scripted_effect = yes
}