Scripted effect
ep3_frankokratia_designate_latin_empire_effect
ep3_frankokratia_designate_latin_empire_effect = yesgame/common/scripted_effects/07_frankokratia_scripted_effects.txt, line 1495 (370 lines). No parameters.
ep3_frankokratia_designate_latin_empire_effect is a scripted effect in Crusader Kings III, written at line 1495 of its file. It takes no parameters: ep3_frankokratia_designate_latin_empire_effect = yes. The game's script calls it in 1 place, among them All the Riches of Empire (event ep3_frankokratia_events.0041). Patch 1.20.1.2, from game/common/scripted_effects/07_frankokratia_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (120 lines of game script)
ep3_frankokratia_designate_latin_empire_effect = {
#GO FOR CONSTANTINOPLE/THESSALONIKA AS CAPITAL KINGDOM FIRST
if = {
limit = {
title:e_byzantium.holder = {
any_realm_county = {
this = title:c_byzantion
}
}
title:c_byzantion.holder = {
is_ai = yes
OR = {
this = title:e_byzantium.holder
NOT = {
is_at_war_with = title:e_byzantium.holder
}
}
}
}
title:c_byzantion = { save_scope_as = latin_capital }
title:b_constantinople = {
save_scope_as = latin_capital_barony
}
#Try to save thessalonika as the most natural capital kingdom
if = {
limit = {
title:k_thessalonika = {
ep3_frankokratia_latin_kingdom_available_trigger = yes
}
}
title:k_thessalonika = { save_scope_as = latin_kingdom_1 }
}
#Start going through other capital kingdoms in order of logic - they really should have one
else_if = {
limit = {
title:k_nikaea = {
ep3_frankokratia_latin_kingdom_available_trigger = yes
}
}
title:k_nikaea = { save_scope_as = latin_kingdom_1 }
}
else_if = {
limit = {
title:k_hellas = {
ep3_frankokratia_latin_kingdom_available_trigger = yes
}
}
title:k_hellas = { save_scope_as = latin_kingdom_1 }
}
else_if = {
limit = {
title:k_bulgaria = {
ep3_frankokratia_latin_kingdom_available_trigger = yes
}
}
title:k_bulgaria = { save_scope_as = latin_kingdom_1 }
}
else_if = {
limit = {
title:e_byzantium = {
any_in_de_jure_hierarchy = {
tier = tier_kingdom
ep3_frankokratia_latin_kingdom_available_trigger = yes
any_de_jure_county = {
is_coastal_county = yes
}
}
}
}
title:e_byzantium = {
random_in_de_jure_hierarchy = {
limit = {
tier = tier_kingdom
ep3_frankokratia_latin_kingdom_available_trigger = yes
any_de_jure_county = {
is_coastal_county = yes
}
}
save_scope_as = latin_kingdom_1
}
}
}
else_if = {
limit = {
NOT = { exists = scope:latin_kingdom_1 }
}
title:e_byzantium = {
random_in_de_jure_hierarchy = {
limit = {
tier = tier_kingdom
ep3_frankokratia_latin_kingdom_available_trigger = yes
}
save_scope_as = latin_kingdom_1
}
}
}
#The latins also took Hellas, first prio
if = {
limit = {
title:e_byzantium.holder = {
any_realm_county = {
kingdom = title:k_hellas
title:k_hellas = {
this != scope:latin_kingdom_1
ep3_frankokratia_latin_kingdom_available_trigger = yes
}
}
}
}
title:k_hellas = { save_scope_as = latin_kingdom_2 }
}
#The latins had a short-lived attempt at ruling southern Bulgaria
else_if = {
limit = {
title:e_byzantium.holder = {
any_realm_county = {
kingdom = title:k_bulgaria
title:k_bulgaria = {
this != scope:latin_kingdom_1
ep3_frankokratia_latin_kingdom_available_trigger = yesAs written in game/common/scripted_effects/07_frankokratia_scripted_effects.txt.
The first 120 of its 370 lines; the rest is in game/common/scripted_effects/07_frankokratia_scripted_effects.txt from line 1495.
Where it is used
Every place in common/, events/ and history/ that calls ep3_frankokratia_designate_latin_empire_effect.
Events (1)
- All the Riches of Empire
ep3_frankokratia_events.0041
Source: game/common/scripted_effects/07_frankokratia_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.