Scripted effect
formalise_the_daneland_effect
formalise_the_daneland_effect = yesgame/common/scripted_effects/00_decisions_effects.txt, line 2824 (59 lines). No parameters.
formalise_the_daneland_effect is a scripted effect in Crusader Kings III, written at line 2824 of its file. It takes no parameters: formalise_the_daneland_effect = yes. The game's script calls it in 4 places, among them Formalize the Daneland (decision), Law of the Land (event british_isles.1061) and Law of the Land (event british_isles.1062). Its body carries 2 texts 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
- England and the Danelaw are no longer considered De Jure Partitioned
- All De Jure parts of the Danelaw are Drifted into Daneland
- Daneland: Gains the … Title (founder)
- Danelaw Title is destroyed
- Danelaw:
- All Claimants:
remove_claim = title:k_danelawadd_unpressed_claim = title:k_daneland
- All Claimants:
scope:founder:progress_towards_rival_effect = { CHARACTER = scope:england OPINION = -75 REASON = rival_daneland }
• 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 (59 lines of game script)
formalise_the_daneland_effect = {
# To start with, remove the partition variable (so that we don't calculate partition resolution whilst taking the alternate route).
remove_global_variable = partition_active_danelaw
# Clarify the status of the partition for the player.
custom_tooltip = formalise_the_daneland_effect.partition_status.tt
# Sort the title swap.
## First, flip everything in k_danelaw to k_daneland.
custom_tooltip = formalise_the_daneland_effect.adjust_de_jures.tt
hidden_effect = {
title:k_danelaw = {
every_in_de_jure_hierarchy = {
limit = { tier = tier_duchy }
set_de_jure_liege_title = title:k_daneland
}
}
# Add k_daneland to whatever empire k_danelaw is part of.
title:k_daneland = { set_de_jure_liege_title = title:k_danelaw.de_jure_liege }
}
## Then, swap the two titles out.
### Give k_daneland to scope:founder.
create_title_and_vassal_change = {
type = created
save_scope_as = title_change
}
title:k_daneland = {
change_title_holder = {
holder = scope:founder
change = scope:title_change
}
}
resolve_title_and_vassal_change = scope:title_change
### Do some assorted aesthetic prep-work on k_daneland.
hidden_effect = {
title:k_daneland = {
# Give them k_danelaw's CoA.
set_coa = title:k_danelaw
# & title history.
copy_title_history = title:k_danelaw
}
}
### Destroy k_danelaw.
destroy_title = title:k_danelaw
# All claims on k_danelaw become claims on k_daneland
title:k_danelaw = {
every_claimant = {
custom = formalise_the_daneland_effect.all_claimants
remove_claim = title:k_danelaw
add_unpressed_claim = title:k_daneland
}
}
# Step a rivalry with scope:england.
scope:founder = {
progress_towards_rival_effect = {
CHARACTER = scope:england
OPINION = -75
REASON = rival_daneland
}
}
}As written in game/common/scripted_effects/00_decisions_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls formalise_the_daneland_effect.
Decisions (1)
Events (3)
- Law of the Land
british_isles.1061 - Law of the Land
british_isles.1062 - Law of the Land
british_isles.1063
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.