Trident Crown of Doggerland

This commit is contained in:
Thakia 2026-10-27 20:59:14 -03:00
parent 99f5fc9724
commit 086ccfaf0e
31 changed files with 276 additions and 3 deletions

View file

@ -401,3 +401,44 @@ neow_chad_ironside_skull_effect = {
}
}
create_artifact_trident_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_trident_crown_name
description = artifact_trident_crown_description
type = helmet
visuals = trident_crown
wealth = scope:wealth
quality = scope:quality
history = {
type = created_before_history
}
modifier = trident_crown_modifier
save_scope_as = newly_created_artifact
decaying = no
}
scope:newly_created_artifact = {
set_variable = { name = historical_unique_artifact value = yes }
set_variable = trident_crown
set_variable = {
name = portrait_remains_after_death
value = yes
}
set_variable = {
name = artifact_succession_title
value = title:k_doggerland
}
add_artifact_title_history = {
target = title:k_doggerland
date = 2212.1.1
}
save_scope_as = epic
save_scope_value_as = {
name = trident_crown
value = yes
}
}
}

View file

@ -50,6 +50,23 @@
}
}
}
else_if = {
limit = {
any_equipped_character_artifact = {
has_variable = trident_crown
}
}
root.primary_heir = {
add_character_flag = {
flag = trident_crown
days = 3
}
trigger_event = {
id = death_management.0151
days = 1
}
}
}
}
artifact_visual_after_death_dead_character_flag_effect = {
@ -95,4 +112,18 @@ artifact_visual_after_death_dead_character_flag_effect = {
debug_log = "AK Scepter Dead Character Flag Set"
}
}
else_if = {
limit = {
scope:dead_artifact_visual_heir = {
has_character_flag = trident_crown
}
}
scope:dead_ruler = {
add_dead_character_flag = {
flag = trident_crown_wearer_dead
years = 400
}
debug_log = "Trident Crown Dead Character Flag Set"
}
}
}