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_grant_latin_empire_effect

ep3_frankokratia_grant_latin_empire_effect = yes

game/common/scripted_effects/07_frankokratia_scripted_effects.txt, line 2020 (395 lines). No parameters.

ep3_frankokratia_grant_latin_empire_effect is a scripted effect in Crusader Kings III, written at line 2020 of its file. It takes no parameters: ep3_frankokratia_grant_latin_empire_effect = yes. The game's script calls it in 2 places, among them Baptized by Fire (event ep3_frankokratia_events.0042) and 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

  • Every in list:
    • Where: Title tier more than County
    • Gains the … Title (latin emperor)
  • scope:latin_emperor:
    • If

      • scope:frankokratia_story:
        • Any in list › Their culture: The Culture has the Can recruit Conrois as Men-at-Arms Tradition
        • Any in list › Their culture:
          • has_innovation = innovation_advanced_bowmaking

      Then

      • spawn_army = { … }

      Else if

      • scope:frankokratia_story:
        • Any in list › Their culture: The Culture has the Can recruit Conrois as Men-at-Arms Tradition
        • Any in list › Their culture:
          • has_innovation = innovation_quilted_armor

      Then

      • spawn_army = { … }

      Else if

      Then

      • spawn_army = { … }

      Else if

      • scope:frankokratia_story:
        • Any in list › Their culture:
          • has_innovation = innovation_arched_saddle
        • Any in list › Their culture:
          • has_innovation = innovation_advanced_bowmaking

      Then

      • spawn_army = { … }

      Else if

      • scope:frankokratia_story:
        • Any in list › Their culture:
          • has_innovation = innovation_arched_saddle
        • Any in list › Their culture:
          • has_innovation = innovation_quilted_armor

      Then

      • spawn_army = { … }

      Else if

      • scope:frankokratia_story › Any in list › Their culture:
        • has_innovation = innovation_arched_saddle

      Then

      • spawn_army = { … }

      Else if

      • scope:frankokratia_story:
        • Any in list › Their culture:
          • has_innovation = innovation_quilted_armor
        • Any in list › Their culture:
          • has_innovation = innovation_advanced_bowmaking

      Then

      • spawn_army = { … }

      Else if

      • scope:frankokratia_story › Any in list › Their culture:
        • has_innovation = innovation_quilted_armor

      Then

      • spawn_army = { … }

      Else if

      • scope:frankokratia_story › Any in list › Their culture:
        • has_innovation = innovation_advanced_bowmaking

      Then

      • spawn_army = { … }

      Otherwise

      • spawn_army = { … }
  • scope:latin_emperor: Adopts the High Crown Authority Law
  • If

    • scope:latin_emperor: they has administrative government mechanic

    Then

• 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_grant_latin_empire_effect = {
	#Make it less likely frankokratia will happen again
	set_global_variable = {
		name = frankokratia_occurred 
		value = current_date
	}
	scope:latin_capital.kingdom = {
		every_de_jure_county = {
			limit = {
				this != scope:latin_capital
				holder = {
					OR = {
						this = title:e_byzantium.holder
						AND = {
							is_ai = yes
							is_vassal_or_below_of = title:e_byzantium.holder
							NOT = {
								is_at_war_with = title:e_byzantium.holder
							}
						}
					}
					this != scope:financier
				}
			}
			add_to_list = latin_emperor_titles
		}
	}
	scope:latin_capital = {
		if = {
			limit = {
				duchy = {
					OR = {
						NOT = { exists = holder }
						holder = {
							is_ai = yes
							OR = {
								is_vassal_or_below_of = title:e_byzantium.holder
								this = title:e_byzantium.holder
							}
							NOT = {
								is_at_war_with = title:e_byzantium.holder
							}
						}
					}
				}
			}
			duchy = {
				add_to_list = latin_emperor_titles
			}
		}
	}
	show_as_tooltip = {
		create_title_and_vassal_change = {
			type = granted
			save_scope_as = title_change
			add_claim_on_loss = yes
		}
		every_in_list = {
			list = latin_emperor_titles
			limit = {
				tier > tier_county
			}
			change_title_holder = {
				holder = scope:latin_emperor
				change = scope:title_change
			}
		}
		resolve_title_and_vassal_change = scope:title_change
	}
	hidden_effect = {
		#Titles for emperor
		create_title_and_vassal_change = {
			type = created
			save_scope_as = title_change
			add_claim_on_loss = yes
		}
		every_in_list = {
			list = latin_emperor_titles
			change_title_holder = {
				holder = scope:latin_emperor
				change = scope:title_change
			}
		}
		resolve_title_and_vassal_change = scope:title_change
	}
	scope:latin_emperor = {
		#Gains Latin Empire special troops
		if = {
			limit = {
				scope:frankokratia_story = {
					any_in_list = {
						variable = frankokratia_leaders
						culture = {
							has_cultural_parameter = unlock_maa_conrois
						}
					}
					any_in_list = {
						variable = frankokratia_leaders
						culture = {
							has_innovation = innovation_advanced_bowmaking
						}
					}
				}
			}
			spawn_army = {
				name = ep3_latin_emp_army_name
				uses_supply = yes
				inheritable = yes
				levies = latin_emp_army_levies_value
				men_at_arms = {
					type = conrois
					stacks = latin_emp_army_maa_value
				}
				men_at_arms = {
					type = crossbowmen
					stacks = latin_emp_army_maa_value
				}
				location = scope:latin_capital_barony.title_province
			}
		}

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

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

Where it is used

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

Events (2)

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?