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

Scripted effect

create_roman_empire_scripted_effect

create_roman_empire_scripted_effect = yes

game/common/scripted_effects/00_major_decisions_scripted_effects.txt, line 1 (148 lines). No parameters.

create_roman_empire_scripted_effect is a scripted effect in Crusader Kings III, written at line 1 of its file. It takes no parameters: create_roman_empire_scripted_effect = yes. The game's script calls it in 3 places, among them Restore the Roman Empire (decision), Justinian's Dream Realized (event ep3_roman_restoration.0100) and The Dawn of a New Era (event roman_restoration.0001). Patch 1.20.1.2, from game/common/scripted_effects/00_major_decisions_scripted_effects.txt.

What it does

  • Gains the Trait Augustus
  • If

    a check the game hides

    Then

    • create_legend_seed = { … }
  • If

    a check the game hides

    Then

    • Roman Empire:
      • set_capital_county = title:c_byzantion
  • split_byzantine_empire_effect = yes
  • Roman Empire:
    • Gains the … Title (root)
    • copy_title_history = title:e_byzantium
  • Every held title:
    • title_tier = empire
    • You:
      • destroy_title = prev
  • If

    Then

    • You: Byzantion becomes the realm capital

    Else if

    Then

    • You: Roma becomes the realm capital

• 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)
create_roman_empire_scripted_effect = {
	primary_title = { save_scope_as = old_primary_title }
	add_trait = augustus
	if = {
		limit = { has_dlc_feature = legends }
		create_legend_seed = {
			type = legitimizing
			quality = illustrious
			chronicle = new_title
			properties = {
				title = title:h_roman_empire
				founder = root
			}
		}
	}
	#Create Roman Empire, shift dejure/history/laws, destroy e_byzantium.

	if = {
		limit = { capital_county = { this = title:c_byzantion } }
		title:h_roman_empire = {
			set_capital_county = title:c_byzantion
		}
	}

	hidden_effect = {
		every_held_title = { #Should shift all dejure of all Empires owned at the time.
			title_tier = empire

			set_de_jure_liege_title = title:h_roman_empire
		}
		every_empire = {
			limit = {
				NOT = { exists = hegemony }
				any_de_jure_county = {
					percent >= 0.6
					holder = {
						OR = {
							this = root
							any_liege_or_above = { this = root }
						}
					}
				}
			}
			set_de_jure_liege_title = title:h_roman_empire
		}
	}
	split_byzantine_empire_effect = yes
	create_title_and_vassal_change = {
		type = created
		save_scope_as = change
		add_claim_on_loss = no
	}
	title:h_roman_empire = {
		change_title_holder = {
			holder = root
			change = scope:change
		}
		copy_title_history = title:e_byzantium
	}
	resolve_title_and_vassal_change = scope:change
	if = { # Move your Title MaAs to your new title if you have any
		limit = {
			government_has_mechanic = administrative
			primary_title = {
				any_title_maa_regiment = { }
			}
		}
		hidden_effect = {
			primary_title = { transfer_title_maa_ownership = title:h_roman_empire }
		}
	}
	if = { # If you have founded the Varangian Guard, you get to keep the benefits
		limit = {
			scope:old_primary_title = { has_variable = founded_varangian_guard }
		}
		hidden_effect = {
			title:h_roman_empire = { set_variable = founded_varangian_guard }
		}
	}
	hidden_effect = { set_primary_title_to = title:h_roman_empire }
	every_held_title = { #Should destroy all other Empires owned at the time.
		title_tier = empire

		root = { destroy_title = prev }
	}

	if = { #Automatically move capital to Constantinople, unless it's been set to Rome.
		limit = {
			NOT = { capital_county = { this = title:c_roma } }
			NOT = { capital_county = { this = title:c_byzantion } }
			culture = { has_cultural_pillar = heritage_byzantine }
		}
		hidden_effect = {
			if = { #Usurp if not held personally.
				limit = {
					NOT = { this = title:c_byzantion.holder }
				}
				create_title_and_vassal_change = {
					type = returned
					save_scope_as = change
					add_claim_on_loss = no
				}
				title:c_byzantion = {
					change_title_holder = {
						holder = root
						change = scope:change
					}
				}
				resolve_title_and_vassal_change = scope:change
			}
		}
		root = { set_realm_capital = title:c_byzantion }
	}
	else_if = {
		limit = {
			NOT = { capital_county = { this = title:c_roma } }
			NOT = { capital_county = { this = title:c_byzantion } }
			NOT = { culture = { has_cultural_pillar = heritage_byzantine } }
			exists = title:h_roman_empire.holder
		}

As written in game/common/scripted_effects/00_major_decisions_scripted_effects.txt.

The first 120 of its 148 lines; the rest is in game/common/scripted_effects/00_major_decisions_scripted_effects.txt from line 1.

Where it is used

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

Events (2)

Source: game/common/scripted_effects/00_major_decisions_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?