The Crown of Britain

This commit is contained in:
Thakia 2026-09-11 21:58:56 -03:00
parent ff812bcd85
commit 58a587909d
32 changed files with 269 additions and 6 deletions

View file

@ -240,4 +240,46 @@ create_artifact_pearl_crown_effect = {
value = yes
}
}
}
create_artifact_st_edwards_crown_effect = {
# Get the character the artifact is being made for.
$OWNER$ = { save_scope_as = owner }
# Not really used, but if we don't set the scopes we get errors in the feature selection
set_artifact_rarity_illustrious = yes
create_artifact = {
name = artifact_st_edwards_crown_name
description = artifact_st_edwards_crown_description
type = helmet
visuals = st_edwards_crown
wealth = scope:wealth
quality = scope:quality
history = {
type = created_before_history
}
modifier = st_edwards_crown_modifier
save_scope_as = newly_created_artifact
decaying = no
}
scope:newly_created_artifact = {
set_variable = { name = historical_unique_artifact value = yes }
set_variable = st_edwards_crown
set_variable = {
name = portrait_remains_after_death
value = yes
}
set_variable = {
name = artifact_succession_title
value = title:e_britannia
}
add_artifact_title_history = {
target = title:e_britannia
date = 2212.1.1
}
save_scope_as = epic
save_scope_value_as = {
name = st_edwards_crown
value = yes
}
}
}

View file

@ -33,4 +33,18 @@ artifact_visual_after_death_dead_character_flag_effect = {
debug_log = "Nistrenian Crown Dead Character Flag Set"
}
}
else_if = {
limit = {
scope:dead_artifact_visual_heir = {
has_character_flag = st_edwards_crown
}
}
scope:dead_ruler = {
add_dead_character_flag = {
flag = st_edwards_crown_wearer_dead
years = 400
}
debug_log = "British Crown Dead Character Flag Set"
}
}
}