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_byzantine_independence_effect

ep3_frankokratia_byzantine_independence_effect = yes

game/common/scripted_effects/07_frankokratia_scripted_effects.txt, line 4799 (94 lines). No parameters.

ep3_frankokratia_byzantine_independence_effect is a scripted effect in Crusader Kings III, written at line 4799 of its file. It takes no parameters: ep3_frankokratia_byzantine_independence_effect = yes. The game's script calls it in 1 place, among them ep3_frankokratia_events.0050 (event). Patch 1.20.1.2, from game/common/scripted_effects/07_frankokratia_scripted_effects.txt.

What it does

  • Every vassal or below:
    • Only some of them (the filter is in the script below)
    • assign_feudal_governments_effect = yes
    • create_character_memory = { type = frankokratia_byz_independent_memory }
    • becomes_independent = { change = scope:change }

• 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 (94 lines of game script)
ep3_frankokratia_byzantine_independence_effect = {
	every_vassal_or_below = {
		limit = {
			is_landed = yes
			is_ai = yes
			highest_held_title_tier < tier_kingdom
			highest_held_title_tier >= tier_county
			liege = {
				save_temporary_scope_as = temp_byz_liege
			}
			OR = {
				#They have a strong reason and the last piece is personality
				AND = {
					ai_boldness > high_negative_ai_value
					ai_honor < high_positive_ai_value
					ai_energy > high_negative_ai_value
					OR = {
						trigger_if = {
							limit = {
								liege ?= {
									government_has_mechanic = administrative
								}
							}
							NOT = {
								government_has_mechanic = administrative
							}
						}
						liege = {
							governor_efficiency < 0.7
						}
						culture = {
							this != scope:temp_byz_liege.culture
						}
						faith = {
							this != scope:temp_byz_liege.faith
						}
						opinion = {
							target = liege
							value <= -50
						}
						#They are not de jure to the liege
						NOT = {
							primary_title = {
								target_is_de_jure_liege_or_above = scope:temp_byz_liege.primary_title
							}
						}
					}
				}
				#Their only reason is an inclination
				AND = {
					ai_boldness >= low_positive_ai_value
					ai_honor <= low_negative_ai_value
					ai_energy >= low_positive_ai_value
					OR = {
						liege = {
							influence_level <= 2
						}
						opinion = {
							target = liege
							value <= -25
						}
						liege = {
							governor_efficiency < 0.85
						}
					}
				}
			}
			NOR = {
				has_trait = loyal
				opinion = {
					target = liege
					value >= 80
				}
				liege = {
					influence_level >= 4
				}
				liege = {
					governor_efficiency >= 1.4
				}
			}
			highest_held_title_tier < tier_kingdom
		}
		assign_feudal_governments_effect = yes
		create_character_memory = {
			type = frankokratia_byz_independent_memory
		}
		create_title_and_vassal_change = {
			type = independency
			save_scope_as = change
		}
		becomes_independent = { change = scope:change }
		resolve_title_and_vassal_change = scope:change
	}
}

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_byzantine_independence_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?