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_latin_empire_designate_financier_lands_effect

ep3_latin_empire_designate_financier_lands_effect = yes

game/common/scripted_effects/07_frankokratia_scripted_effects.txt, line 1866 (153 lines). No parameters.

ep3_latin_empire_designate_financier_lands_effect is a scripted effect in Crusader Kings III, written at line 1866 of its file. It takes no parameters: ep3_latin_empire_designate_financier_lands_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

• 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_latin_empire_designate_financier_lands_effect = {
	#First, give aegean islands counties
	title:e_byzantium.holder = {
		if = {
			limit = {
				scope:latin_capital.kingdom = {
					this = title:k_thessalonika
				}
				any_realm_county = {
					NOT = { is_in_list = financier_sate_titles }
					duchy = title:d_aegean_islands
					holder = {
						is_ai = yes
						NOT = {
							is_at_war_with = title:e_byzantium.holder
						}
					}
				}
			}
			title:d_aegean_islands = {
				save_scope_as = financier_latin_emp_duchy
			}
		}
		#Not possible? Give them counties from a duchy with a coastal province in the latin kingdom
		else_if = {
			limit = {
				any_realm_county = {
					NOR = {
						is_in_list = financier_sate_titles
						this = scope:latin_capital
					}
					kingdom = scope:latin_capital.kingdom
					has_coastal_province = yes
					holder = {
						is_ai = yes
						NOT = {
							is_at_war_with = title:e_byzantium.holder
						}
					}
				}
			}
			random_realm_county = {
				limit = {
					NOR = {
						is_in_list = financier_sate_titles
						this = scope:latin_capital
					}
					kingdom = scope:latin_capital.kingdom
					has_coastal_province = yes
					holder = {
						is_ai = yes
						NOT = {
							is_at_war_with = title:e_byzantium.holder
						}
					}
				}
				duchy = { save_scope_as = financier_latin_emp_duchy }
			}
		}
		#Not possible? Give them counties from a duchy with a coastal province that borders the latin kingdom
		else_if = {
			limit = {
				any_realm_county = {
					any_neighboring_county = {
						kingdom = scope:latin_capital.kingdom
					}
					NOR = {
						is_in_list = financier_sate_titles
						this = scope:latin_capital
					}
					has_coastal_province = yes
					holder = {
						is_ai = yes
						NOT = {
							is_at_war_with = title:e_byzantium.holder
						}
					}
				}
			}
			random_realm_county = {
				limit = {
					NOR = {
						is_in_list = financier_sate_titles
						this = scope:latin_capital
					}
					any_neighboring_county = {
						kingdom = scope:latin_capital.kingdom
					}
					has_coastal_province = yes
					holder = {
						is_ai = yes
						NOT = {
							is_at_war_with = title:e_byzantium.holder
						}
					}
				}
				duchy = { save_scope_as = financier_latin_emp_duchy }
			}
		}
		#Not possible? Run the sate rewards effect again and add more to that list
		else = {
			ep3_frankokratia_save_financier_sate_lands_effect = yes
		}
	
		#Give all counties in the duchy
		if = {
			limit = {
				exists = scope:financier_latin_emp_duchy
			}
			every_realm_county = {
				limit = {
					duchy = scope:financier_latin_emp_duchy
					holder = {
						is_ai = yes
						NOT = {
							is_at_war_with = title:e_byzantium.holder
						}
					}
				}
				add_to_list = financier_latin_emp_titles

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

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

Where it is used

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

Events (1)

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?