Scripted effect · The Royal Court files
create_artifact_imperial_seal_effect
create_artifact_imperial_seal_effect = { OWNER = … SMITH = … }game/common/scripted_effects/00_ep1_artifact_creation_effects.txt, line 10857 (144 lines). Parameters: $OWNER$, $SMITH$.
create_artifact_imperial_seal_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 10857 of its file. A call passes 2 parameters: OWNER and SMITH. The game's script calls it in 2 places, among them Tribute Mission: Seal of Investiture (event tribute_mission.1006) and Tribute Mission: Seal of Investiture (event tribute_mission.3006). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.
What it does
get_artifact_quality_effect = yesget_artifact_wealth_effect = yesIf
- scope:owner: Have a Royal Court
Then
If a check the game hides passes: the same again (1 line)
- “Excellent Seal of Investiture” Artifact is created
Otherwise
- “Excellent Seal of Investiture” Artifact is created
Otherwise
If a check the game hides passes: the same again (1 line)
- “Excellent Seal of Investiture” Artifact is created
Otherwise
- “Excellent Seal of Investiture” Artifact is created
hidden_effect_new_object = { … }
• 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)
create_artifact_imperial_seal_effect = {
# Get the character the artifact is being made for.
$OWNER$ = { save_scope_as = owner }
$SMITH$ = { save_scope_as = scribe }
# Get artifact quality and wealth
get_artifact_quality_effect = yes
get_artifact_wealth_effect = yes
# Create the artifact
if = {
limit = { scope:owner = { has_royal_court = yes } }
if = {
limit = {
exists = scope:adventurer
}
create_artifact = {
name = artifact_seal_of_investiture
description = seal_of_investiture.desc
creator = scope:scribe
visuals = imperial_seal
type = seal_of_investiture_court
wealth = scope:wealth
quality = scope:quality
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
history = {
location = scope:location
actor = scope:adventurer
recipient = root
type = given
}
}
}
else = {
create_artifact = {
name = artifact_seal_of_investiture
description = seal_of_investiture.desc
creator = scope:scribe
visuals = imperial_seal
type = seal_of_investiture_court
wealth = scope:wealth
quality = scope:quality
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
}
}
}
else = {
if = {
limit = {
exists = scope:adventurer
}
create_artifact = {
name = artifact_seal_of_investiture
description = seal_of_investiture.desc
creator = scope:scribe
visuals = imperial_seal
type = seal_of_investiture
wealth = scope:wealth
quality = scope:quality
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
history = {
location = scope:location
actor = scope:adventurer
recipient = root
type = given
}
}
}
else = {
create_artifact = {
name = artifact_seal_of_investiture
description = seal_of_investiture.desc
creator = scope:scribe
visuals = imperial_seal
type = seal_of_investiture
wealth = scope:wealth
quality = scope:quality
modifier = artifact_placeholder_modifier
save_scope_as = newly_created_artifact
}
}
}
hidden_effect_new_object = {
scope:newly_created_artifact = {
# Prestige modifier is scaled based on the Wealth of the artifact (opulence).
add_scaled_artifact_modifier_prestige_effect = yes
# Add a rulership-related modifier based on the Quality of the artifact.
if = {
limit = { # Chance to add a second rulership-related modifier for high rarity artifacts.
OR = {
rarity = famed
rarity = illustrious
}
}
random_list = {
50 = {
add_2_scaled_artifact_modifier_rulership_effect = yes
}
50 = {
add_scaled_artifact_modifier_rulership_effect = yes
}
}
}
else = {
add_scaled_artifact_modifier_rulership_effect = yes
}
# Add a majesty-related modifier based on the Quality of the artifact.
if = {
limit = { # Chance to add a second majesty-related modifier for high rarity artifacts.
OR = {
rarity = famed
rarity = illustrious
}
}
random_list = {As written in game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.
The first 120 of its 144 lines; the rest is in game/common/scripted_effects/00_ep1_artifact_creation_effects.txt from line 10857.
Where it is used
Every place in common/, events/ and history/ that calls create_artifact_imperial_seal_effect.
Events (2)
- Tribute Mission: Seal of Investiture
tribute_mission.1006 - Tribute Mission: Seal of Investiture
tribute_mission.3006
Source: game/common/scripted_effects/00_ep1_artifact_creation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.