Scripted effect
negotiate_the_danelaw_accept_effect
negotiate_the_danelaw_accept_effect = yesgame/common/scripted_effects/00_decisions_effects.txt, line 2543 (136 lines). No parameters.
negotiate_the_danelaw_accept_effect is a scripted effect in Crusader Kings III, written at line 2543 of its file. It takes no parameters: negotiate_the_danelaw_accept_effect = yes. The game's script calls it in 3 places, among them An Unthinkable Bargain (event british_isles.1021), An Unthinkable Bargain (event british_isles.1022) and negotiate_the_danelaw_each_way_effect (scripted effect). Its body carries 3 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 be De Jure Partitioned
scope:ntd_brit:scope:ntd_nord:- All English Duchies that … holds at least one County in become De Jure part of the Danelaw
- All independent English Duchies with a North Germanic-Culture or Norse-Faith Ruler become De Jure part of the Danelaw
scope:ntd_brit:add_truce_both_ways = { character = scope:ntd_nord years = 25 name = TRUCE_SIGNED_PARTITION }- Opinion: Respect (+50)
reverse_add_opinion = { target = scope:ntd_nord modifier = respect_opinion opinion = 50 }
- All independent rulers within England: Opinion: Weak (-40)
- scope:ntd_actor: Gains the Nickname 'the Dane'
• 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)
negotiate_the_danelaw_accept_effect = {
# Mark the partition as being active.
custom_tooltip = negotiate_the_danelaw_accept_effect.partition_active.tt
set_global_variable = {
name = partition_active_danelaw
value = title:k_england
}
# Kingdoms for all!
## Scope:ntd_brit receives k_england.
scope:ntd_brit = {
create_title_and_vassal_change = {
type = created
save_scope_as = change
}
title:k_england = {
change_title_holder = {
holder = scope:ntd_brit
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
title:k_england = { add_title_law = saxon_elective_succession_law }
}
## Whilst scope:ntd_nord receives k_danelaw.
scope:ntd_nord = {
create_title_and_vassal_change = {
type = created
save_scope_as = change
}
title:k_danelaw = {
change_title_holder = {
holder = scope:ntd_nord
change = scope:change
}
}
resolve_title_and_vassal_change = scope:change
title:k_danelaw = {
add_title_law = scandinavian_elective_succession_law
# And make sure it follows appropriate de jures.
hidden_effect = { set_de_jure_liege_title = title:k_england.de_jure_liege }
}
}
# Give k_danelaw various de jures.
## Firstly, any duchy that it has at least one county in which isn't scope:ntd_brit's capital duchy.
custom_tooltip = negotiate_the_danelaw_accept_effect.de_jure_holdings_recognised.tt
hidden_effect = {
scope:ntd_nord = {
every_sub_realm_county = {
limit = {
kingdom = title:k_england
duchy != scope:ntd_brit.capital_county.duchy
}
duchy = { set_de_jure_liege_title = title:k_danelaw }
}
}
}
## Then, any independent duchy held by a Scandi-side ruler (again exempting scope:ntd_brit's capital, just in case).
custom_tooltip = negotiate_the_danelaw_accept_effect.independent_holdings_recognised.tt
hidden_effect = {
every_county_in_region = {
region = world_europe_west_britannia
limit = {
kingdom = title:k_england
exists = duchy.holder
duchy.holder = { negotiate_the_danelaw_norse_side_trigger = yes }
duchy != scope:ntd_brit.capital_county.duchy
}
duchy = { set_de_jure_liege_title = title:k_danelaw }
}
}
# Set up a ceasefire & some opinion gain between the two rulers.
scope:ntd_brit = {
add_truce_both_ways = {
character = scope:ntd_nord
years = 25
name = TRUCE_SIGNED_PARTITION
}
add_opinion = {
target = scope:ntd_nord
modifier = respect_opinion
opinion = 50
}
reverse_add_opinion = {
target = scope:ntd_nord
modifier = respect_opinion
opinion = 50
}
}
# Independent rulers on both sides are extremely unimpressed with this divvying.
## First, grab everyone applicable.
title:k_england = {
every_in_de_jure_hierarchy = {
limit = {
holder ?= {
top_liege = this
NOR = {
this = scope:ntd_actor
this = scope:ntd_recipient
}
}
}
holder = { add_to_list = riled_danelaw_independents_list }
}
}
## Then, apply opinion & hidden rivalry effects.
every_in_list = {
list = riled_danelaw_independents_list
custom = negotiate_the_danelaw_accept_effect.riled_independents_list
add_opinion = {
target = scope:ntd_brit
modifier = weak_opinion
opinion = -40
}
add_opinion = {
target = scope:ntd_nord
modifier = weak_opinion
opinion = -40
}
# We hide the rivalry stuff, both to make it seem less unappealing, and to encourage valid-feeling drama without deliberately signalling it.
hidden_effect = {As written in game/common/scripted_effects/00_decisions_effects.txt.
The first 120 of its 136 lines; the rest is in game/common/scripted_effects/00_decisions_effects.txt from line 2543.
Where it is used
Every place in common/, events/ and history/ that calls negotiate_the_danelaw_accept_effect.
Events (2)
- An Unthinkable Bargain
british_isles.1021 - An Unthinkable Bargain
british_isles.1022
Scripted effects (1)
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.