Scripted effect
ep3_frankokratia_grant_latin_lands_effect
ep3_frankokratia_grant_latin_lands_effect = yesgame/common/scripted_effects/07_frankokratia_scripted_effects.txt, line 2938 (56 lines). No parameters.
ep3_frankokratia_grant_latin_lands_effect is a scripted effect in Crusader Kings III, written at line 2938 of its file. It takes no parameters: ep3_frankokratia_grant_latin_lands_effect = yes. The game's script calls it in 1 place, among them Ours is the Purple (event ep3_frankokratia_events.0044). Patch 1.20.1.2, from game/common/scripted_effects/07_frankokratia_scripted_effects.txt.
What it does
- You › If has “latin duchy” (a variable the game's script sets):
destroy_title = var:latin_duchy
- Every in list: Gains the … Title (latin title gainer)
scope:latin_title_gainer:change_liege = { liege = scope:latin_emperor change = scope:title_change }
- Every in list:
remove_from_list = my_latin_titles
• 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 (56 lines of game script)
ep3_frankokratia_grant_latin_lands_effect = {
root = {
var:latin_county = {
add_to_list = my_latin_titles
}
if = {
limit = {
has_variable = latin_duchy
}
var:latin_duchy = {
add_to_list = my_latin_titles
}
destroy_title = var:latin_duchy
}
}
create_title_and_vassal_change = {
type = granted
save_scope_as = title_change
}
every_in_list = {
list = my_latin_titles
change_title_holder = {
holder = scope:latin_title_gainer
change = scope:title_change
}
}
scope:latin_title_gainer = {
change_liege = {
liege = scope:latin_emperor
change = scope:title_change
}
}
resolve_title_and_vassal_change = scope:title_change
#Remove so this doesn't cause title stealing
every_in_list = {
list = my_latin_titles
remove_from_list = my_latin_titles
}
#Make sure they're feudal
if = {
limit = {
scope:latin_empire_receiver = {
this = scope:financier
}
}
scope:latin_title_gainer = {
assign_feudal_governments_effect = yes
}
}
}As written in game/common/scripted_effects/07_frankokratia_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls ep3_frankokratia_grant_latin_lands_effect.
Events (1)
- Ours is the Purple
ep3_frankokratia_events.0044
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.