Scripted effect · Coronations files
coronation_create_artifact_game_start_effect
coronation_create_artifact_game_start_effect = yesgame/common/scripted_effects/10_ach_effects.txt, line 3011 (145 lines). No parameters.
coronation_create_artifact_game_start_effect is a scripted effect in Crusader Kings III, in the Coronations files, written at line 3011 of its file. It takes no parameters: coronation_create_artifact_game_start_effect = yes. The game's script calls it in 1 place, among them coronation_events.0302 (event). Patch 1.20.1.2, from game/common/scripted_effects/10_ach_effects.txt.
What it does
If
Then
Otherwise
- Otherwise › 1 of 2 things will happen:
- 50%: Nothing else happens
- 50%: Nothing else happens
If
game_start_date >= 1170.1.1
Then
coronation_create_artifact_date_effect = { DATE_CREATION = 1060.1.1 DATE_INHERITANCE = 1070.1.1 }
Else if
game_start_date >= 1066.1.1
Then
coronation_create_artifact_date_effect = { DATE_CREATION = 940.1.1 DATE_INHERITANCE = 960.1.1 }
Else if
game_start_date < 868.1.1
Then
coronation_create_artifact_date_effect = { DATE_CREATION = 740.1.1 DATE_INHERITANCE = 760.1.1 }
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (120 lines of game script)
coronation_create_artifact_game_start_effect = {
save_scope_as = owner
if = {
limit = {
OR = {
realm_size >= 60
highest_held_title_tier >= tier_empire
}
}
set_artifact_rarity_famed = yes
}
else = {
set_artifact_rarity_masterwork = yes
}
if = {
limit = {
coronation_proper_artifact_crown_trigger = yes
}
save_scope_value_as = {
name = artifact_type
value = flag:crown
}
}
else_if = {
limit = {
coronation_proper_artifact_regalia_trigger = yes
}
save_scope_value_as = {
name = artifact_type
value = flag:regalia
}
}
else = {
random_list = {
1 = {
save_scope_value_as = {
name = artifact_type
value = flag:crown
}
}
1 = {
save_scope_value_as = {
name = artifact_type
value = flag:regalia
}
}
}
}
primary_title = {
save_scope_as = crown_title
ordered_past_holder = {
limit = {
NOT = { this = scope:owner }
house = scope:owner.house
time_since_death ={
years >= 80
}
}
alternative_limit = {
NOT = { this = scope:owner }
dynasty = scope:owner.dynasty
time_since_death ={
years >= 80
}
}
alternative_limit = {
NOT = { this = scope:owner }
culture = scope:owner.culture
time_since_death ={
years >= 80
}
}
alternative_limit = {
NOT = { this = scope:owner }
faith = scope:owner.faith
time_since_death ={
years >= 80
}
}
alternative_limit = {
NOT = { this = scope:owner }
dynasty = scope:owner.dynasty
}
alternative_limit = {
NOT = { this = scope:owner }
culture = scope:owner.culture
}
alternative_limit = {
NOT = { this = scope:owner }
faith = scope:owner.faith
}
alternative_limit = {
NOT = { this = scope:owner }
}
alternative_limit = {
always = yes
}
save_scope_as = title_founder
# For title-specific localization usage
save_scope_as = title_holder_reference
}
# Fix 'title_holder_reference' if the founder cannot be a good reference for the title (rank / name / etc) by falling back to the current owner.
if = {
limit = {
scope:title_holder_reference ?= {
is_alive = yes
is_ruler = no
}
}
scope:owner = {
save_scope_as = title_holder_reference
}
}
}
if = {
limit = {
game_start_date >= 1170.1.1As written in game/common/scripted_effects/10_ach_effects.txt.
The first 120 of its 145 lines; the rest is in game/common/scripted_effects/10_ach_effects.txt from line 3011.
Where it is used
Every place in common/, events/ and history/ that calls coronation_create_artifact_game_start_effect.
Events (1)
Source: game/common/scripted_effects/10_ach_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.