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

Scripted effect

frankokratia_latin_emp_end_msg_effect

frankokratia_latin_emp_end_msg_effect = yes

game/common/scripted_effects/07_frankokratia_scripted_effects.txt, line 6868 (79 lines). No parameters.

frankokratia_latin_emp_end_msg_effect is a scripted effect in Crusader Kings III, written at line 6868 of its file. It takes no parameters: frankokratia_latin_emp_end_msg_effect = yes. The game's script calls it in 1 place, among them on_title_destroyed (on action). 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 (79 lines of game script)
frankokratia_latin_emp_end_msg_effect = {
	save_scope_as = latin_emp
	faith = {
		every_faith_ruler = {
			limit = {
				is_ai = no
				NOT = {
					has_character_flag = had_ep3_frankokratia_events_0100
				}
			}
			add_to_list = latin_destroyed_recipients
		}
	}
	title:e_latin_empire = {
		every_in_de_jure_hierarchy = {
			if = {
				limit = {
					holder ?= {
						is_ai = no
						NOR = {
							is_in_list = latin_destroyed_recipients
							has_character_flag = had_ep3_frankokratia_events_0100
						}
					}
				}
				holder = {
					add_to_list = latin_destroyed_recipients
				}
			}
		}
	}
	title:e_byzantium = {
		every_in_de_jure_hierarchy = {
			if = {
				limit = {
					holder ?= {
						is_ai = no
						NOR = {
							is_in_list = latin_destroyed_recipients
							has_character_flag = had_ep3_frankokratia_events_0100
						}
					}
				}
				holder = {
					add_to_list = latin_destroyed_recipients
				}
			}
		}
	}
	if = {
		limit = {
			#Notification looks weird if it's Byzantine empire no longer being a Latin
			NOT = {
				any_held_title = {
					this = title:e_byzantium
				}
			}
		}
		every_in_list = {
			list = latin_destroyed_recipients
			limit = {
				this != root
			}
			trigger_event = ep3_frankokratia_events.0100
		}
		#Trigger one day after for root, switch the titles
		if = {
			limit = {
				NOT = {
					has_character_flag = had_ep3_frankokratia_events_0100
				}
			}
			trigger_event = {
				id = ep3_frankokratia_events.0100
				days = 1
			}
		}
	}
}

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 frankokratia_latin_emp_end_msg_effect.

On actions (the game's own hooks) (1)

  • on_title_destroyed

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?