Scripted effect · The Royal Court files
generate_historical_artifact_based_on_location_effect
generate_historical_artifact_based_on_location_effect = { LOCATION = … }game/common/scripted_effects/00_ep1_artifact_creation_effects.txt, line 14740 (918 lines). Parameters: $LOCATION$.
generate_historical_artifact_based_on_location_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 14740 of its file. A call passes 1 parameter: LOCATION. The game's script calls it in 1 place, among them Treasure Map: A Bird in the Hand... (event ep3_contract_event.0045). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.
What it does
- 1 of 63 things will happen:
- 0%:
create_artifact_sculpture_ark_of_covenant_effect = { OWNER = root }
- 0%:
create_artifact_sculpture_babr_e_bayan_effect = { OWNER = root }
- 2%:
create_artifact_pedestal_justinian_effect = { OWNER = root }
- 2%:
create_artifact_pedestal_cup_jamshid_effect = { OWNER = root }
- 2%:
create_artifact_pedestal_david_harp_effect = { OWNER = root }
- 2%:
create_artifact_pedestal_crown_iron_effect = { OWNER = root }
- 2%:
create_artifact_wall_banner_kaviani_effect = { OWNER = root }
- 2%:
create_artifact_wall_banner_edessa_effect = { OWNER = root }
- 2%:
create_artifact_wall_cid_sword_effect = { OWNER = root }
- 2%:
create_artifact_wall_muhammad_sword_effect = { OWNER = root }
- 2%:
create_artifact_wall_sword_attila_effect = { OWNER = root }
- 2%:
create_artifact_throne_scone_effect = { OWNER = root }
- 2%:
create_artifact_throne_solomon_effect = { OWNER = root }
- 2%:
create_artifact_throne_charlemagne_effect = { OWNER = root }
- 3%:
create_artifact_excalibur_effect = { OWNER = root }
- 2%:
create_artifact_edmund_head_effect = { OWNER = root }
- 2%:
create_artifact_dhammapada_effect = { OWNER = root }
- 2%:
create_artifact_sutta_pitaka_effect = { OWNER = root }
- 2%:
create_artifact_vinaya_pitaka_effect = { OWNER = root }
- 2%:
create_artifact_abhidhamma_pitaka_effect = { OWNER = root }
- 3%:
create_artifact_jewelled_danda_effect = { OWNER = ROOT }
- 1%:
create_artifact_pedestal_koh_i_noor_effect = { OWNER = ROOT }
- 2%:
create_artifact_makarakundala_effect = { OWNER = ROOT }
- 2%:
create_artifact_pedestal_great_diamond_effect = { OWNER = ROOT }
- 2%:
create_artifact_al_taj_crown_effect = { OWNER = ROOT }
- 2%:
create_artifact_al_sayf_al_khass_effect = { OWNER = ROOT }
- 2%:
create_artifact_qadib_al_mulk_effect = { OWNER = ROOT }
- 2%:
create_artifact_al_dawat_effect = { OWNER = ROOT }
- 2%:
create_artifact_al_hafir_effect = { OWNER = ROOT }
- 0%:
create_artifact_wall_banner_thankfulness_effect = { OWNER = ROOT }
- 1%:
create_artifact_pedestal_al_jabal_effect = { OWNER = ROOT }
- 1%:
create_artifact_pedestal_al_yatima_effect = { OWNER = ROOT }
- 2%:
create_artifact_dagger_of_rostam_effect = { OWNER = ROOT }
- 2%:
create_artifact_ascalon_effect = { OWNER = ROOT }
- 2%:
create_artifact_zomorrodnegar_effect = { OWNER = ROOT }
- 3%:
create_artifact_muhammads_epistles_effect = { OWNER = ROOT }
- 2%:
create_artifact_kaves_apron_effect = { OWNER = ROOT }
- 0%:
create_artifact_arms_of_alexander_effect = { OWNER = ROOT }
- 2%:
create_artifact_olifant_effect = { OWNER = ROOT }
- 2%:
create_artifact_angelicas_ring_effect = { OWNER = ROOT }
- 2%:
create_colada_effect = { OWNER = ROOT }
- 2%:
create_artifact_curtana_effect = { OWNER = ROOT }
- 2%:
create_artifact_durendal_effect = { OWNER = ROOT }
- 2%:
create_artifact_joyeuse_effect = { OWNER = ROOT }
- 2%:
create_artifact_aram_effect = { OWNER = ROOT }
- 2%:
create_artifact_sword_mmaagha_kamalu_effect = { OWNER = ROOT }
- 3%:
create_artifact_pedestal_ikenga_effect = { OWNER = ROOT }
- 3%:
create_artifact_ibeji_effect = { OWNER = ROOT }
- 2%:
create_artifact_nagelring_effect = { OWNER = ROOT }
- 2%:
create_artifact_szczerbiec_effect = { OWNER = ROOT }
- 2%:
create_artifact_kladenets_effect = { OWNER = ROOT }
- 2%:
create_artifact_legbiter_effect = { OWNER = ROOT }
- 2%:
create_artifact_quernbiter_effect = { OWNER = ROOT }
- 3%:
create_artifact_navaratna_effect = { OWNER = ROOT }
- 2%:
create_artifact_dragvandil_effect = { OWNER = ROOT }
- 1%:
create_artifact_ruyi_effect = { OWNER = ROOT }
- 1%:
create_artifact_turquoise_throne_effect = { OWNER = ROOT }
- 1%:
create_artifact_peacock_throne_effect = { OWNER = ROOT }
- 1%:
create_artifact_mantle_of_the_prophet_effect = { OWNER = ROOT }
- 1%:
create_artifact_spear_of_the_prophet_effect = { OWNER = ROOT }
- 2%:
create_artifact_illustrious_sassanian_sword_effect = { OWNER = ROOT }
- 0%:
create_artifact_wall_narwhal_horn_effect = { OWNER = scope:owner HUNTER = scope:inspiration_owner }
- 0%:
create_artifact_pedestal_branch_relic_general_effect = { OWNER = root RELIGION = $LOCATION$.religion }
- 0%:
• 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)
generate_historical_artifact_based_on_location_effect = {
random_list = {
2 = { #Ark of the covenant
trigger = {
NOT = {
any_artifact = { has_variable = ark_of_the_covenant }
}
$LOCATION$ ?= {
OR = {
geographical_region = world_middle_east
geographical_region = world_africa_north_east
geographical_region = world_africa_east
}
}
}
create_artifact_sculpture_ark_of_covenant_effect = { OWNER = root }
}
2 = { #Babr E Bayan
trigger = {
NOT = {
any_artifact = { has_variable = babr_e_bayan }
}
$LOCATION$ ?= {
OR = {
geographical_region = world_middle_east_persia
#geographical_region = world_steppe
culture = { has_cultural_pillar = heritage_iranian }
}
}
}
create_artifact_sculpture_babr_e_bayan_effect = { OWNER = root }
}
10 = { #Crown of Justinian
trigger = {
NOT = {
any_artifact = { has_variable = crown_of_justinian }
}
$LOCATION$ ?= {
OR = {
geographical_region = custom_eastern_roman_empire
culture = { has_cultural_pillar = heritage_byzantine }
}
}
}
create_artifact_pedestal_justinian_effect = { OWNER = root }
}
10 = { #Cup of Jamshid
trigger = {
NOT = {
any_artifact = { has_variable = cup_jamshid }
}
$LOCATION$ ?= {
OR = {
geographical_region = world_middle_east_persia
culture = { has_cultural_pillar = heritage_iranian }
}
}
}
create_artifact_pedestal_cup_jamshid_effect = { OWNER = root }
}
10 = { #Harp of David
trigger = {
NOT = {
any_artifact = { has_variable = david_harp }
}
$LOCATION$ ?= {
OR = {
geographical_region = world_middle_east_jerusalem
culture = { has_cultural_pillar = heritage_israelite }
faith.religion = religion:judaism_religion
}
}
}
create_artifact_pedestal_david_harp_effect = { OWNER = root }
}
10 = { #Iron Crown - Recreate if lost
trigger = {
NOT = {
any_artifact = { has_variable = iron_crown }
}
$LOCATION$ ?= {
OR = {
geographical_region = custom_northern_italy
culture = { has_cultural_pillar = heritage_latin }
}
}
}
create_artifact_pedestal_crown_iron_effect = { OWNER = root }
}
10 = { #Kaviani Banner
trigger = {
NOT = {
any_artifact = { has_variable = banner_kaviani }
}
$LOCATION$ ?= {
OR = {
geographical_region = world_middle_east_persia
#geographical_region = world_steppe
culture = { has_cultural_pillar = heritage_iranian }
}
}
}
create_artifact_wall_banner_kaviani_effect = { OWNER = root }
}
10 = { #Edessa Banner
trigger = {
NOT = {
any_artifact = { has_variable = banner_edessa }
}
$LOCATION$ ?= {
OR = {
geographical_region = world_middle_east
geographical_region = world_asia_minor
}
}
}
create_artifact_wall_banner_edessa_effect = { OWNER = root }
}
10 = { #El Cid's Sword
trigger = {As written in game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.
The first 120 of its 918 lines; the rest is in game/common/scripted_effects/00_ep1_artifact_creation_effects.txt from line 14740.
Where it is used
Every place in common/, events/ and history/ that calls generate_historical_artifact_based_on_location_effect.
Events (1)
- Treasure Map: A Bird in the Hand...
ep3_contract_event.0045
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.