Scripted effect · Legacy of Persia files
create_artifact_fp3_ancient_drinking_vessel_effect
create_artifact_fp3_ancient_drinking_vessel_effect = { OWNER = … }game/common/scripted_effects/03_dlc_fp3_artifact_creation_effects.txt, line 375 (62 lines). Parameters: $OWNER$.
create_artifact_fp3_ancient_drinking_vessel_effect is a scripted effect in Crusader Kings III, in the Legacy of Persia files, written at line 375 of its file. A call passes 1 parameter: OWNER. The game's script calls it in 2 places, among them Qanats of … (event travel_events_fp3.0021) and Tomb Raiders (event travel_events_fp3.0050). Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp3_artifact_creation_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (62 lines of game script)
create_artifact_fp3_ancient_drinking_vessel_effect = {
# Set up general scopes.
$OWNER$ = { save_scope_as = owner }
# Begin creating.
hidden_effect_new_object = {
random_list = {
1 = { set_artifact_rarity_illustrious = yes }
2 = { set_artifact_rarity_famed = yes }
3 = { set_artifact_rarity_masterwork = yes }
1 = { set_artifact_rarity_common = yes }
}
# Create the artifact.
scope:owner = {
if = {
limit = { has_royal_court = yes }
create_artifact_fp3_ancient_drinking_vessel_effect_base = { TYPE = goblet }
}
else = {
create_artifact_fp3_ancient_drinking_vessel_effect_base = { TYPE = miscellaneous_when_not_court }
}
}
scope:newly_created_artifact = {
set_artifact_description = fp3_ancient_drinking_vessel_desc
# Flag this as something that can be reforged for free, if relevant.
if = {
limit = {
$OWNER$ = { has_royal_court = no }
}
set_variable = {
name = dlc_potential_court_artifact
value = yes
}
}
# Let's add modifiers!
## Illustrious gets to be very swanky.
if = {
limit = { rarity = illustrious }
add_scaled_artifact_modifier_prestige_effect = yes
add_scaled_artifact_modifier_stress_gain_effect = yes
add_scaled_artifact_modifier_attractiveness_effect = yes
}
## Famed
else_if = {
limit = { rarity = famed }
add_scaled_artifact_modifier_prestige_effect = yes
add_scaled_artifact_modifier_stress_gain_effect = yes
}
## Masterwork
else_if = {
limit = { rarity = masterwork }
add_scaled_artifact_modifier_prestige_effect = yes
add_scaled_artifact_modifier_stress_gain_effect = yes
}
## Common
else_if = {
limit = { rarity = common }
add_scaled_artifact_modifier_stress_gain_effect = yes
}
}
}
}As written in game/common/scripted_effects/03_dlc_fp3_artifact_creation_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls create_artifact_fp3_ancient_drinking_vessel_effect.
Events (2)
- Qanats of …
travel_events_fp3.0021 - Tomb Raiders
travel_events_fp3.0050
Source: game/common/scripted_effects/03_dlc_fp3_artifact_creation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.