Scripted effect · Silk and Silver files
luxury_contract_dangerous_creature_effect
luxury_contract_dangerous_creature_effect = { PROVINCE = … }game/common/scripted_effects/gdp_domicile_artifact_creation_scripted_effects.txt, line 648 (61 lines). Parameters: $PROVINCE$.
luxury_contract_dangerous_creature_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 648 of its file. A call passes 1 parameter: PROVINCE. The game's script calls it in 2 places, among them create_creature_artifact_effect (scripted effect) and Create Domicile Artifact (interaction). Patch 1.21.0, from game/common/scripted_effects/gdp_domicile_artifact_creation_scripted_effects.txt.
What it does
- 1 of 8 things will happen:
- 13%: Nothing else happens
- 13%: Nothing else happens
- 13%: Nothing else happens
- 13%: Nothing else happens
- 13%: Nothing else happens
- 13%: Nothing else happens
- 13%: Nothing else happens
- 13%: Nothing else happens
• 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 (61 lines of game script)
luxury_contract_dangerous_creature_effect = {
random_list = {
10 = { # Lion
trigger = {
$PROVINCE$ = { hunt_animal_lion_trigger = yes }
NOT = { scope:reserved_type ?= flag:lion }
}
set_variable = { name = animal_type value = flag:lion years = 3 }
}
10 = { # Caracal
trigger = {
$PROVINCE$ = { hunt_animal_caracal_trigger = yes }
NOT = { scope:reserved_type ?= flag:caracal }
}
set_variable = { name = animal_type value = flag:caracal years = 3 }
}
10 = { # Lynx
trigger = {
$PROVINCE$ = { hunt_animal_lynx_trigger = yes }
NOT = { scope:reserved_type ?= flag:lynx }
}
set_variable = { name = animal_type value = flag:lynx years = 3 }
}
10 = { # Tiger
trigger = {
$PROVINCE$ = { hunt_animal_tiger_trigger = yes }
NOT = { scope:reserved_type ?= flag:tiger }
}
set_variable = { name = animal_type value = flag:tiger years = 3 }
}
10 = { # Leopard
trigger = {
$PROVINCE$ = { hunt_animal_leopard_trigger = yes }
NOT = { scope:reserved_type ?= flag:leopard }
}
set_variable = { name = animal_type value = flag:leopard years = 3 }
}
10 = { # Bear
trigger = {
$PROVINCE$ = { hunt_animal_bear_trigger = yes }
NOT = { scope:reserved_type ?= flag:bear }
}
set_variable = { name = animal_type value = flag:bear years = 3 }
}
10 = { # Elephant
trigger = {
$PROVINCE$ = { luxury_contract_creature_elephant_trigger = yes }
NOT = { scope:reserved_type ?= flag:elephant }
}
set_variable = { name = animal_type value = flag:elephant years = 3 }
}
# Fallback so the list is never empty, since every other entry needs local fauna
# We ignore scope:reserved_type here, or the list could be empty again
10 = { # Bear
trigger = {
$PROVINCE$ = { luxury_contract_dangerous_creature_location_trigger = no }
}
set_variable = { name = animal_type value = flag:bear years = 3 }
}
}
}As written in game/common/scripted_effects/gdp_domicile_artifact_creation_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls luxury_contract_dangerous_creature_effect.
Character interactions (1)
- Create Domicile Artifact
Scripted effects (1)
Source: game/common/scripted_effects/gdp_domicile_artifact_creation_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.