Scripted effect · The Royal Court files
create_artifact_wall_skull_effect
create_artifact_wall_skull_effect = { ANIMAL = … HUNTER = … LEGENDARY = … OWNER = … }game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt, line 670 (97 lines). Parameters: $ANIMAL$, $HUNTER$, $LEGENDARY$, $OWNER$.
create_artifact_wall_skull_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 670 of its file. A call passes 4 parameters: ANIMAL, HUNTER, LEGENDARY and OWNER. The game's script calls it in 10 places, among them A Beautiful Specimen (event hunt.8001), Felling a Beast (event hunt.4005) and Victim of the Wild (event hunt.0080). Patch 1.20.1.2, from game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.
What it does
scope:owner:If
One of these
NOT = { exists = var:animal_type }or
Animal type is none
Then
- 1 of 2 things will happen:
- 80%:
hunt_activity_standard_game_effect = { PROVINCE = scope:hunter.location HUNTER = scope:hunter }
- 20%:
hunt_activity_dangerous_game_effect = { PROVINCE = scope:hunter.location }
- 80%:
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 (97 lines of game script)
create_artifact_wall_skull_effect = {
$OWNER$ = { save_scope_as = owner }
$HUNTER$ = { save_scope_as = hunter }
save_scope_value_as = { name = legendary value = $LEGENDARY$ }
scope:owner = {
set_variable = { name = animal_type value = $ANIMAL$ days = 5 }
if = {
limit = {
OR = {
NOT = { exists = var:animal_type }
var:animal_type ?= flag:none
}
}
random_list = {
8 = {
hunt_activity_standard_game_effect = { PROVINCE = scope:hunter.location HUNTER = scope:hunter }
}
2 = {
hunt_activity_dangerous_game_effect = { PROVINCE = scope:hunter.location }
}
}
}
}
if = {
limit = { exists = scope:adventurer }
scope:adventurer = { save_scope_as = creator }
}
else = {
scope:hunter = { save_scope_as = creator }
}
hidden_effect_new_object = {
# Get artifact quality, location, and animal
animal_artifact_wealth_quality_effect = yes
get_animal_hunt_location_effect = yes
scope:location = { add_to_list = artifact_material_sources }
scope:owner = {
create_artifact = {
name = artifact_wall_skull_name
description = placeholder
creator = scope:creator
visuals = animal_trophy
type = animal_skull
modifier = artifact_placeholder_modifier
wealth = scope:wealth
quality = scope:quality
save_scope_as = newly_created_artifact
}
}
scope:newly_created_artifact = {
set_max_durability = 60
# Set grandeur
add_scaled_artifact_modifier_grandeur_small_effect = yes
# Set prestige
add_scaled_artifact_modifier_minor_prestige_effect = yes
if = {
limit = {
OR = {
rarity = famed
rarity = illustrious
}
}
add_scaled_artifact_modifier_dynasty_prestige_effect = yes
}
remove_artifact_modifier = artifact_placeholder_modifier
set_variable = {
name = animal_type
value = scope:owner.var:animal_type
}
set_variable = {
name = quality
value = scope:quality
}
set_variable = {
name = wealth
value = scope:wealth
}
hunt_animal_artifact_modifier_selection_effect = yes
if = {
limit = { scope:legendary = yes }
set_artifact_name = artifact_wall_skull_name_legendary
set_variable = { name = legendary }
add_scaled_artifact_modifier_majesty_effect = yes
add_scaled_artifact_modifier_combat_effect = yes
}
else_if = {
limit = { exists = scope:adventurer }
set_artifact_name = artifact_wall_skull_name_adventurer
}
else = { set_artifact_name = artifact_wall_skull_name }
set_artifact_description = artifact_wall_skull_description
}
scope:owner = {
remove_variable = adventure_artifact_location
remove_variable = adventure_artifact_hunter
}
}
}As written in game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls create_artifact_wall_skull_effect.
Character interactions (1)
- Bestow Artifact
Events (6)
- A Beautiful Specimen
hunt.8001 - Felling a Beast
hunt.4005 - Victim of the Wild
hunt.0080 - … … Skull
debug.328 - Lorem ipsum dolor sit amet, consectetur adipiscing elit.
debug.9620 - Lorem ipsum dolor sit amet, consectetur adipiscing elit.
debug.9621
Source: game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.