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:
parent
f9a352ae5f
commit
714c37ce75
2 changed files with 25 additions and 13 deletions
|
|
@ -4,19 +4,26 @@ reforge_crown_wenceslas_decision = {
|
|||
}
|
||||
|
||||
desc = reforge_crown_wenceslas_decision_desc
|
||||
decision_group_type = realm
|
||||
sort_order = 100
|
||||
|
||||
selection_tooltip = reforge_crown_wenceslas_decision_tooltip
|
||||
cooldown = { days = 1000 }
|
||||
|
||||
is_shown = {
|
||||
OR = {
|
||||
any_character_artifact = {
|
||||
has_variable = crown_wenceslas
|
||||
AND = {
|
||||
OR = {
|
||||
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 = {
|
||||
has_title = title:k_bohemia
|
||||
|
|
@ -25,8 +32,8 @@ reforge_crown_wenceslas_decision = {
|
|||
custom_tooltip = {
|
||||
text = must_have_crown_wenceslas
|
||||
any_character_artifact = {
|
||||
has_name = crown_wenceslas_name
|
||||
}
|
||||
has_variable = crown_wenceslas
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -42,7 +49,7 @@ reforge_crown_wenceslas_decision = {
|
|||
}
|
||||
every_character_artifact = {
|
||||
limit = {
|
||||
has_name = crown_wenceslas_name
|
||||
has_variable = crown_wenceslas
|
||||
}
|
||||
destroy_artifact = this
|
||||
}
|
||||
|
|
@ -58,7 +65,7 @@ reforge_crown_wenceslas_decision = {
|
|||
quality = scope:quality
|
||||
culture = root.culture
|
||||
decaying = no
|
||||
save_scope_as = newly_created_artifact
|
||||
save_scope_as = crown_wenceslas_reforged
|
||||
history = {
|
||||
location = root.capital_province
|
||||
actor = root
|
||||
|
|
@ -66,11 +73,16 @@ reforge_crown_wenceslas_decision = {
|
|||
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_will_do = {
|
||||
base = 15
|
||||
base = 50
|
||||
}
|
||||
}
|
||||
|
|
@ -44,7 +44,7 @@ create_artifact_crown_wenceslas_effect = { # Crown of Saint Wenceslas
|
|||
wealth = scope:wealth
|
||||
quality = scope:quality
|
||||
decaying = no
|
||||
save_scope_as = newly_created_artifact
|
||||
save_scope_as = crown_wenceslas
|
||||
history = {
|
||||
type = created_before_history
|
||||
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 = crown_wenceslas
|
||||
save_scope_as = epic
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue