Decision to Reforge the Crown of St. Wenceslas FIXED

finally found what was causing the issues (i think, but it works, so i am not complaining)
This commit is contained in:
GoTouchSomeGrass314 2026-04-28 20:31:36 +02:00
parent f9a352ae5f
commit 714c37ce75
2 changed files with 25 additions and 13 deletions

View file

@ -4,19 +4,26 @@ reforge_crown_wenceslas_decision = {
} }
desc = reforge_crown_wenceslas_decision_desc desc = reforge_crown_wenceslas_decision_desc
decision_group_type = realm
sort_order = 100 sort_order = 100
selection_tooltip = reforge_crown_wenceslas_decision_tooltip selection_tooltip = reforge_crown_wenceslas_decision_tooltip
cooldown = { days = 1000 } cooldown = { days = 1000 }
is_shown = { is_shown = {
OR = { AND = {
any_character_artifact = { OR = {
has_variable = crown_wenceslas any_character_artifact = {
has_variable = crown_wenceslas
}
has_title = title:k_bohemia
}
NOT = {
any_character_artifact = {
has_variable = crown_wenceslas_reforged
}
} }
has_title = title:k_bohemia
} }
} }
is_valid = { is_valid = {
has_title = title:k_bohemia has_title = title:k_bohemia
@ -25,8 +32,8 @@ reforge_crown_wenceslas_decision = {
custom_tooltip = { custom_tooltip = {
text = must_have_crown_wenceslas text = must_have_crown_wenceslas
any_character_artifact = { any_character_artifact = {
has_name = crown_wenceslas_name has_variable = crown_wenceslas
} }
} }
} }
@ -42,7 +49,7 @@ reforge_crown_wenceslas_decision = {
} }
every_character_artifact = { every_character_artifact = {
limit = { limit = {
has_name = crown_wenceslas_name has_variable = crown_wenceslas
} }
destroy_artifact = this destroy_artifact = this
} }
@ -58,7 +65,7 @@ reforge_crown_wenceslas_decision = {
quality = scope:quality quality = scope:quality
culture = root.culture culture = root.culture
decaying = no decaying = no
save_scope_as = newly_created_artifact save_scope_as = crown_wenceslas_reforged
history = { history = {
location = root.capital_province location = root.capital_province
actor = root actor = root
@ -66,11 +73,16 @@ reforge_crown_wenceslas_decision = {
type = created_before_history type = created_before_history
} }
} }
scope:crown_wenceslas_reforged = {
set_variable = { name = historical_unique_artifact value = yes }
set_variable = crown_wenceslas_reforged
save_scope_as = epic
}
} }
} }
ai_check_interval = { 500 } ai_check_interval = { 500 }
ai_will_do = { ai_will_do = {
base = 15 base = 50
} }
} }

View file

@ -44,7 +44,7 @@ create_artifact_crown_wenceslas_effect = { # Crown of Saint Wenceslas
wealth = scope:wealth wealth = scope:wealth
quality = scope:quality quality = scope:quality
decaying = no decaying = no
save_scope_as = newly_created_artifact save_scope_as = crown_wenceslas
history = { history = {
type = created_before_history type = created_before_history
date = 1346.1.1 date = 1346.1.1
@ -52,7 +52,7 @@ create_artifact_crown_wenceslas_effect = { # Crown of Saint Wenceslas
} }
} }
scope:newly_created_artifact = { scope:crown_wenceslas = {
set_variable = { name = historical_unique_artifact value = yes } set_variable = { name = historical_unique_artifact value = yes }
set_variable = crown_wenceslas set_variable = crown_wenceslas
save_scope_as = epic save_scope_as = epic