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

Scripted effect

asturias_becomes_leon_and_castille_effect

asturias_becomes_leon_and_castille_effect = yes

game/common/scripted_effects/00_title_effects.txt, line 37 (42 lines). No parameters.

asturias_becomes_leon_and_castille_effect is a scripted effect in Crusader Kings III, written at line 37 of its file. It takes no parameters: asturias_becomes_leon_and_castille_effect = yes. The game's script calls it in 5 places, among them Splitting the Crown (event title_event.0012), Splitting the Crown (event title_event.0013) and Splitting the Crown (event title_event.0014). Patch 1.20.1.2, from game/common/scripted_effects/00_title_effects.txt.

What it does

  • León:
    • If

      a check the game hides

      Then

      • Gains the … Title (leon char)
    • copy_title_history = title:k_asturias
  • Asturias:
    • Every in de jure hierarchy:
      • Where: Title tier exactly Duchy
      • Becomes de jure part of León
  • If

    a check the game hides

    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 (42 lines of game script)
asturias_becomes_leon_and_castille_effect = {
	create_title_and_vassal_change = {
		type = created
		save_scope_as = title_change
		add_claim_on_loss = no
	}
	title:k_leon = {
		if = {
			limit = { exists = scope:leon_char }
			change_title_holder = {
				holder = scope:leon_char
				change = scope:title_change
			}
		}
		copy_title_history = title:k_asturias
	}
	title:k_asturias = {
		every_in_de_jure_hierarchy = {
			limit = { tier = tier_duchy }
			set_de_jure_liege_title = title:k_leon
		}
		hidden_effect = {
			every_claimant = {
				if = {
					limit = { has_strong_claim_on = title:k_asturias }
					remove_claim = title:k_asturias
					add_pressed_claim = title:k_leon
				}
				else = {
					remove_claim = title:k_asturias
					add_unpressed_claim = title:k_leon
				}
			}
		}
	}
	resolve_title_and_vassal_change = scope:title_change
	# Destroy Asturias if appropriate.
	if = {
		limit = { exists = scope:leon_char }
		scope:leon_char = { destroy_title = title:k_asturias }
	}
}

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

Where it is used

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

Events (5)

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