more Relic nonsense

This commit is contained in:
Greekman 2026-11-20 23:36:41 +00:00
parent 5af3557d38
commit 8c73f125b2
6 changed files with 201 additions and 48 deletions

View file

@ -285,6 +285,7 @@ create_starting_holy_relic_eminent_effect = {
scope:relic_site = holy_site:iasi
}
neow_create_orthodox_relic_iasi_effect = yes
neow_create_orthodox_relic_iasi_constantine_effect = yes
}
else_if = {
limit = {
@ -1686,23 +1687,32 @@ finalize_starting_relic_effect = {
destroy_artifact = scope:newly_created_artifact
}
else = {
scope:newly_created_artifact = {
scope:relic_owner = { save_scope_as = owner } # Required for the 'add_scaled_artifact_' scripted effects
add_scaled_artifact_modifier_piety_effect = yes
add_scaled_artifact_modifier_grandeur_small_effect = yes
if = {
limit = {
OR = {
rarity = famed
rarity = illustrious
}
# The six named Orthodox relics have fixed bonuses assigned at creation.
# All other relics retain the existing rarity-scaled effects.
if = {
limit = {
scope:newly_created_artifact = {
NOT = { has_variable = neow_fixed_orthodox_relic_modifiers }
}
add_2_scaled_artifact_modifier_devotion_effect = yes
}
else = {
add_scaled_artifact_modifier_devotion_effect = yes
scope:newly_created_artifact = {
scope:relic_owner = { save_scope_as = owner } # Required for scaled artifact effects
add_scaled_artifact_modifier_piety_effect = yes
add_scaled_artifact_modifier_grandeur_small_effect = yes
if = {
limit = {
OR = {
rarity = famed
rarity = illustrious
}
}
add_2_scaled_artifact_modifier_devotion_effect = yes
}
else = {
add_scaled_artifact_modifier_devotion_effect = yes
}
add_artifact_modifier = artifact_monthly_prestige_penalty_modifier
}
add_artifact_modifier = artifact_monthly_prestige_penalty_modifier # overwrite default creation modifier
}
scope:newly_created_artifact = {
@ -1733,7 +1743,10 @@ neow_create_orthodox_relic_iasi_effect = {
save_scope_as = newly_created_artifact
}
}
scope:newly_created_artifact = { set_variable = neow_orthodox_relic_iasi }
scope:newly_created_artifact = {
set_variable = neow_orthodox_relic_iasi
set_variable = { name = neow_fixed_orthodox_relic_modifiers value = yes }
}
finalize_starting_unique_relic_effect = yes
}
@ -1754,7 +1767,10 @@ neow_create_orthodox_relic_kiev_effect = {
save_scope_as = newly_created_artifact
}
}
scope:newly_created_artifact = { set_variable = neow_orthodox_relic_kiev }
scope:newly_created_artifact = {
set_variable = neow_orthodox_relic_kiev
set_variable = { name = neow_fixed_orthodox_relic_modifiers value = yes }
}
finalize_starting_unique_relic_effect = yes
}
@ -1775,7 +1791,10 @@ neow_create_orthodox_relic_athos_cross_effect = {
save_scope_as = newly_created_artifact
}
}
scope:newly_created_artifact = { set_variable = neow_orthodox_relic_athos_cross }
scope:newly_created_artifact = {
set_variable = neow_orthodox_relic_athos_cross
set_variable = { name = neow_fixed_orthodox_relic_modifiers value = yes }
}
finalize_starting_unique_relic_effect = yes
}
@ -1796,7 +1815,10 @@ neow_create_orthodox_relic_athos_magdalene_effect = {
save_scope_as = newly_created_artifact
}
}
scope:newly_created_artifact = { set_variable = neow_orthodox_relic_athos_magdalene }
scope:newly_created_artifact = {
set_variable = neow_orthodox_relic_athos_magdalene
set_variable = { name = neow_fixed_orthodox_relic_modifiers value = yes }
}
finalize_starting_unique_relic_effect = yes
}
@ -1817,7 +1839,10 @@ neow_create_orthodox_relic_athos_girdle_effect = {
save_scope_as = newly_created_artifact
}
}
scope:newly_created_artifact = { set_variable = neow_orthodox_relic_athos_girdle }
scope:newly_created_artifact = {
set_variable = neow_orthodox_relic_athos_girdle
set_variable = { name = neow_fixed_orthodox_relic_modifiers value = yes }
}
finalize_starting_unique_relic_effect = yes
}
@ -1838,6 +1863,51 @@ neow_create_orthodox_relic_tbilisi_effect = {
save_scope_as = newly_created_artifact
}
}
scope:newly_created_artifact = { set_variable = neow_orthodox_relic_tbilisi }
scope:newly_created_artifact = {
set_variable = neow_orthodox_relic_tbilisi
set_variable = { name = neow_fixed_orthodox_relic_modifiers value = yes }
}
finalize_starting_unique_relic_effect = yes
}
# Stolen York monument; the native effect supplies the original Constantine model and icon.
# All bonuses are fixed, like the other named Orthodox relics.
neow_create_orthodox_relic_iasi_constantine_effect = {
if = {
limit = { has_ep3_dlc_trigger = yes }
scope:relic_owner = {
create_artifact_statue_constantine_effect = { OWNER = this }
}
scope:newly_created_artifact = {
set_artifact_name = neow_orthodox_relic_iasi_constantine_name
set_artifact_description = neow_orthodox_relic_iasi_constantine_desc
remove_artifact_modifier = statue_constantine_modifier
add_artifact_modifier = neow_orthodox_relic_iasi_constantine_modifier
}
}
else = {
# The statue's standard base-game visual is available without Roads to Power.
set_artifact_rarity_famed = yes
scope:relic_owner = {
create_artifact = {
name = neow_orthodox_relic_iasi_constantine_name
description = neow_orthodox_relic_iasi_constantine_desc
type = sculpture
template = neow_orthodox_holy_relic_template
visuals = statue
wealth = scope:wealth
quality = scope:quality
history = { type = created_before_history date = 1998.1.1 }
modifier = neow_orthodox_relic_iasi_constantine_modifier
decaying = no
save_scope_as = newly_created_artifact
}
}
}
scope:newly_created_artifact = {
set_variable = neow_orthodox_relic_iasi_constantine
set_variable = { name = neow_fixed_orthodox_relic_modifiers value = yes }
}
finalize_starting_unique_relic_effect = yes
}