CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect

ep3_frankokratia_distribute_lands_to_crusaders_effect

ep3_frankokratia_distribute_lands_to_crusaders_effect = yes

game/common/scripted_effects/07_frankokratia_scripted_effects.txt, line 2546 (391 lines). No parameters.

ep3_frankokratia_distribute_lands_to_crusaders_effect is a scripted effect in Crusader Kings III, written at line 2546 of its file. It takes no parameters: ep3_frankokratia_distribute_lands_to_crusaders_effect = yes. The game's script calls it in 1 place, among them ep3_frankokratia_events.0043 (event). 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_distribute_lands_to_crusaders_effect = {

	#save a list of all titles there are to give out
	#Counties in latin kingdom
	every_in_list = {
		list = latin_emperor_titles
		limit = {
			NOR = {
				this = scope:latin_capital
				#Don't give out financier's lands, unless financier is latin emp
				holder = {
					this = scope:financier
					this != scope:latin_emperor
				}
				this = title:c_byzantion
			}
			tier = tier_county
			NOT = {
				duchy = {
					holder = scope:latin_emperor
				}
			}
		}
		add_to_list = available_latin_kingdom_counties
		add_to_list = available_latin_emp_counties
	}
	#Counties on border with latin capital
	scope:latin_emperor = {
		every_realm_county = {
			limit = {
				this = scope:latin_capital
			}
			every_neighboring_county = {
				limit = {
					OR = {
						holder = title:e_byzantium.holder
						holder = {
							is_ai = yes
							is_vassal_or_below_of = title:e_byzantium.holder
							NOT = {
								is_at_war_with = title:e_byzantium.holder
							}
						}
					}
				}
				add_to_list = available_latin_neighbor_counties
				add_to_list = available_latin_emp_counties
			}
		}
	}
	#Border counties belonging to kingdom owned by latin emperor
	if = {
		limit = {
			exists = scope:latin_kingdom_2
		}
		scope:latin_emperor = {
			every_realm_county = {
				every_neighboring_county = {
					limit = {
						kingdom = scope:latin_kingdom_2
						OR = {
							holder = title:e_byzantium.holder
							holder = {
								is_ai = yes
								is_vassal_or_below_of = title:e_byzantium.holder
								NOT = {
									is_at_war_with = title:e_byzantium.holder
								}
							}
						}
					}
					add_to_list = available_latin_neighbor_counties
					add_to_list = available_latin_emp_counties
				}
			}
		}
	}
	
	##Save duchies in the latin emp that can be given out
	if = {
		limit = {
			any_in_list = {
				list = available_latin_kingdom_counties
				duchy = {
					OR = {
						NOT = { exists = holder }
						holder = title:e_byzantium.holder
						holder = {
							is_ai = yes
							is_vassal_or_below_of = title:e_byzantium.holder
							NOT = {
								is_at_war_with = title:e_byzantium.holder
							}
						}
					}
				}
			}
		}
		every_in_list = {
			list = available_latin_kingdom_counties
			limit = {
				duchy = {
					OR = {
						NOT = { exists = holder }
						holder = title:e_byzantium.holder
						holder = {
							is_ai = yes
							is_vassal_or_below_of = title:e_byzantium.holder
							NOT = {
								is_at_war_with = title:e_byzantium.holder
							}
						}
						NOT = {
							holder = {
								this = scope:financier
								this != scope:latin_emperor
							}
						}
					}
				}

As written in game/common/scripted_effects/07_frankokratia_scripted_effects.txt.

The first 120 of its 391 lines; the rest is in game/common/scripted_effects/07_frankokratia_scripted_effects.txt from line 2546.

Where it is used

Every place in common/, events/ and history/ that calls ep3_frankokratia_distribute_lands_to_crusaders_effect.

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.

Spotted a mistake on this page?