Scripted trigger
ep3_frankokratia_ghw_trigger
ep3_frankokratia_ghw_trigger = yesgame/common/scripted_triggers/07_frankokratia_triggers.txt, line 4 (126 lines). No parameters.
ep3_frankokratia_ghw_trigger is a scripted trigger in Crusader Kings III, written at line 4 of its file. It takes no parameters: ep3_frankokratia_ghw_trigger = yes (or no). The game's script calls it in 2 places, among them great_holy_war.0001 (event) and The Unjust Dispossession (event ep3_frankokratia_events.0001). Patch 1.20.1.2, from game/common/scripted_triggers/07_frankokratia_triggers.txt.
The comment above it in the file
FRANKOKRATIA TRIGGERS
What it checks
- title:e_byzantium.holder.faith: Their religion is Christianity
- title:e_byzantium.holder.rite: Has the Eastern Christian Doctrine
If
- title:e_byzantium.holder: they has administrative government mechanic
Then
title:e_byzantium.holder.primary_title:state_rite = { rite_has_doctrine = special_doctrine_is_eastern_christian_faith }
- If game rule set to “Balanced”:
One of these
exists = global_var:cath_crusade_1or
current_date >= 1178.1.1
- Else, if game rule set to “None”: Never
- Else, if game rule set to “Fourth Crusade”:
One of these
All of these
current_date < 1178.1.1exists = global_var:cath_crusade_1- Cath crusade 1 at least 3
or
All of these
current_date >= 1178.1.1exists = global_var:cath_crusade_1
One of these
title:e_byzantium.holder.culture:One of these
this = culture:greekor
Any parent culture or above:this = culture:greek
or
Their Culture has the Eastern Roman Cultural Pillar
or
title:e_byzantium.holder.capital_county.culture:One of these
this = culture:greekor
Any parent culture or above:this = culture:greek
or
Their Culture has the Eastern Roman Cultural Pillar
If
current_date >= 1200.1.1- Does not have “frankokratia occurred” (a variable the game's script sets)
Then
ghw_target_title = { … }
Otherwise
ghw_target_title = { … }
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (120 lines of game script)
ep3_frankokratia_ghw_trigger = {
#There is an emperor of Byzantium
exists = title:e_byzantium.holder
#There is NOT a Latin emperor
NOT = { exists = title:e_latin_empire.holder }
#Byzantine emperor is Christian, but not Catholic
title:e_byzantium.holder.faith = {
religion = religion:christianity_religion
}
title:e_byzantium.holder.rite = {
rite_has_doctrine = special_doctrine_is_eastern_christian_faith
}
trigger_if = {
limit = {
title:e_byzantium.holder = {
government_has_mechanic = administrative
}
}
#Byzantine state rite is still Eastern Christian (not Latin)
title:e_byzantium.holder.primary_title = {
state_rite = {
rite_has_doctrine = special_doctrine_is_eastern_christian_faith
}
}
}
trigger_if = {
limit = {
has_game_rule = historicity_frankokratia_default
}
OR = {
exists = global_var:cath_crusade_1
current_date >= 1178.1.1
}
}
trigger_else_if = {
limit = {
has_game_rule = historicity_frankokratia_blocked
}
always = no
}
trigger_else_if = {
limit = {
has_game_rule = historicity_frankokratia_fourth_crusade
}
OR = {
AND = {
current_date < 1178.1.1
exists = global_var:cath_crusade_1
global_var:cath_crusade_1 >= 3
}
AND = {
current_date >= 1178.1.1
exists = global_var:cath_crusade_1
}
}
}
trigger_else = {
#historicity_frankokratia_high game rule has no start date-based restrictions
}
#Byz emperor or By capital is some kind of Greek
OR = {
title:e_byzantium.holder.culture = {
OR = {
this = culture:greek
any_parent_culture_or_above = {
this = culture:greek
}
has_cultural_pillar = heritage_byzantine
}
}
title:e_byzantium.holder.capital_county.culture = {
OR = {
this = culture:greek
any_parent_culture_or_above = {
this = culture:greek
}
has_cultural_pillar = heritage_byzantine
}
}
}
#Looser requirements if we really want it to happen
trigger_if = {
limit = {
current_date >= 1200.1.1
#Latin empire hasn't been made before
NOT = {
has_global_variable = frankokratia_occurred
}
exists = global_var:cath_crusade_1
}
#A target that Mediterranean control could help reach.. and a bit more
ghw_target_title = {
OR = {
title_capital_county.title_province = { geographical_region = world_middle_east_arabia }
title_capital_county.title_province = { geographical_region = world_middle_east_jerusalem }
title_capital_county.title_province = { geographical_region = world_asia_minor }
title_capital_county.title_province = { geographical_region = world_africa_north }
title_capital_county.title_province = { geographical_region = world_europe_west_iberia }
this = title:k_caucasus
this = title:k_pontic_steppe
this = title:k_cyprus
this = title:k_krete
this = title:k_hellas
this = title:k_sardinia
}
}
}
trigger_else = {
#A target that Mediterranean control could help reach
ghw_target_title = {
OR = {
title_capital_county.title_province = { geographical_region = world_middle_east_arabia }
title_capital_county.title_province = { geographical_region = world_middle_east_jerusalem }
title_capital_county.title_province = { geographical_region = world_asia_minor }
title_capital_county.title_province = { geographical_region = world_africa_north }
this = title:k_caucasus
this = title:k_pontic_steppe
this = title:k_cyprusAs written in game/common/scripted_triggers/07_frankokratia_triggers.txt.
The first 120 of its 126 lines; the rest is in game/common/scripted_triggers/07_frankokratia_triggers.txt from line 4.
Where it is used
Every place in common/, events/ and history/ that calls ep3_frankokratia_ghw_trigger.
Events (2)
- great_holy_war.0001
- The Unjust Dispossession
ep3_frankokratia_events.0001
Source: game/common/scripted_triggers/07_frankokratia_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.