Scripted effect
unite_the_spanish_thrones_decision_effects
unite_the_spanish_thrones_decision_effects = yesgame/common/scripted_effects/00_decisions_effects.txt, line 594 (61 lines). No parameters.
unite_the_spanish_thrones_decision_effects is a scripted effect in Crusader Kings III, written at line 594 of its file. It takes no parameters: unite_the_spanish_thrones_decision_effects = yes. The game's script calls it in 2 places, among them Unite the Spanish Thrones (decision) and A United Spain (event iberia_north_africa.0005). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_decisions_effects.txt.
What it does
- Gain +750 Prestige
- If has the Autonomous Vassals Law: Adopts the High Crown Authority Law
- Else, if all of these hold:
- Conditions:
One of these
- Has the Limited Crown Authority Law
or
Has the High Crown Authority Law
- Then: Adopts the Absolute Crown Authority Law
- Conditions:
If
scope:spain_uniter.primary_title = title:k_castille
Then
- Their primary title: The coat of arms changes
Else if
scope:spain_uniter.primary_title = title:k_leon
Then
- Their primary title: The coat of arms changes
- Every Spanish Kingdom Title you own (except your Primary Title) will be destroyed and their territories will become De Jure of your Primary Title (…)
• 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 (61 lines of game script)
unite_the_spanish_thrones_decision_effects = {
#Prestige
add_prestige = massive_prestige_gain
#Laws
if = {
limit = { has_realm_law = crown_authority_0 }
add_realm_law_skip_effects = crown_authority_2
}
else_if = {
limit = {
OR = {
has_realm_law = crown_authority_1
has_realm_law = crown_authority_2
}
}
add_realm_law_skip_effects = crown_authority_3
}
# Coat of Arms
if = {
limit = { scope:spain_uniter.primary_title = title:k_castille }
primary_title = { set_coa = k_castille_leon }
}
else_if = {
limit = { scope:spain_uniter.primary_title = title:k_leon }
primary_title = { set_coa = k_leon_castille }
}
#Handle other Kingdom titles
title:k_castille = { add_to_list = spanish_kingdoms }
title:k_leon = { add_to_list = spanish_kingdoms }
title:k_spanish_galicia = { add_to_list = spanish_kingdoms }
title:k_portugal = { add_to_list = spanish_kingdoms }
title:k_aragon = { add_to_list = spanish_kingdoms }
title:k_navarra = { add_to_list = spanish_kingdoms }
title:k_andalusia = { add_to_list = spanish_kingdoms }
title:k_badajoz = { add_to_list = spanish_kingdoms }
title:k_valencia = { add_to_list = spanish_kingdoms }
title:k_toledo = { add_to_list = spanish_kingdoms }
custom_tooltip = unite_the_spanish_thrones_decision_titles_tt
hidden_effect = {
every_in_list = {
list = spanish_kingdoms
limit = {
this != scope:spain_uniter.primary_title
scope:spain_uniter = { completely_controls = prev }
}
#De jure shift all held spanish titles into your primary title
every_in_de_jure_hierarchy = {
limit = { tier = tier_duchy }
set_de_jure_liege_title = scope:spain_uniter.primary_title
}
#Destroys them all!
scope:spain_uniter = { destroy_title = prev }
}
}
}As written in game/common/scripted_effects/00_decisions_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls unite_the_spanish_thrones_decision_effects.
Decisions (1)
Events (1)
- A United Spain
iberia_north_africa.0005
Source: game/common/scripted_effects/00_decisions_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.