event fixes pt II

This commit is contained in:
trashmasteruni 2026-10-10 23:36:32 +02:00
parent e8f9381e3a
commit 0555f85c12
55 changed files with 4908 additions and 134006 deletions

View file

@ -13,32 +13,36 @@ historical_artifacts.0023 = {
# All starting courts will have a dynasty banner
every_character_with_royal_court = {
save_scope_as = banner_ruler
# House Banner
set_variable = banner_from_house
set_variable = startup_banner
create_artifact_wall_banner_effect = {
OWNER = scope:banner_ruler
CREATOR = scope:banner_ruler
TARGET = scope:banner_ruler.house
}
# Dynasty Banner
If = {
if = {
limit = {
OR = {
this = dynasty.dynast # Dynasty Head
any_parent = { # Parent landless Dynasty Head
employer = prev
dynasty = prev.dynasty
this = dynasty.dynast
}
}
exists = house
}
set_variable = banner_from_dynasty
set_variable = banner_from_house
set_variable = startup_banner
create_artifact_wall_banner_effect = {
OWNER = scope:banner_ruler
CREATOR = scope:banner_ruler
TARGET = scope:banner_ruler.dynasty
TARGET = scope:banner_ruler.house
}
# Dynasty Banner
if = {
limit = {
OR = {
this = dynasty.dynast # Dynasty Head
any_parent = { # Parent landless Dynasty Head
employer = prev
dynasty = prev.dynasty
this = dynasty.dynast
}
}
}
set_variable = banner_from_dynasty
set_variable = startup_banner
create_artifact_wall_banner_effect = {
OWNER = scope:banner_ruler
CREATOR = scope:banner_ruler
TARGET = scope:banner_ruler.dynasty
}
}
}
}
@ -138,10 +142,10 @@ historical_artifacts.0023 = {
}
}
}
# # Historical Artifacts
# ## We do these per-artefact rather than per-title so that they can be easily reshuffled if desired.
# ## Crowns
# ### Iron Crown of Lombardy
# Historical Artifacts
## We do these per-artifact rather than per-title so that they can be easily reshuffled if desired.
## Crowns
### Iron Crown of Lombardy
if = {
limit = {
has_dlc_feature = royal_court
@ -1399,3 +1403,85 @@ historical_artifacts.0100 = {
}
}
}
# Seeds starting holy relics for holy sites
historical_artifacts.0050 = {
scope = none
hidden = yes
immediate = {
every_religion_global = {
every_faith = {
save_scope_as = relic_faith
# Eminent holy sites get the higher-rarity dispatcher.
every_eminent_holy_site = {
save_scope_as = relic_site
holy_site_county = {
if = {
limit = {
exists = holder
holder.faith = scope:relic_faith
}
holder = { save_scope_as = relic_owner }
create_starting_holy_relic_eminent_effect = yes
}
}
}
# Regular holy sites get the lower-rarity dispatcher.
every_holy_site = {
is_eminent = no
save_scope_as = relic_site
holy_site_county = {
if = {
limit = {
exists = holder
holder.faith = scope:relic_faith
}
holder = { save_scope_as = relic_owner }
create_starting_holy_relic_regular_effect = yes
}
}
}
}
}
# Pass 2: Tolerated eminent-site relics.
every_religion_global = {
every_faith = {
save_scope_as = relic_faith
if = {
limit = {
num_county_followers >= 3 # only check for faiths that are somewhat alive
}
every_eminent_holy_site = {
limit = {
holy_site_has_artifact = no
}
save_scope_as = relic_site
holy_site_county = {
if = {
limit = {
exists = holder
holder.faith = {
faith_hostility_level = {
target = scope:relic_faith
value <= faith_astray_level
}
}
}
# A temporary creator lets the relic inherit their faith
ordered_ruler = {
faith_filter = scope:relic_faith
order_by = highest_held_title_tier
max = 1
save_scope_as = relic_owner
create_starting_holy_relic_eminent_effect = yes
}
}
}
}
}
}
}
}
}