Scripted effect · Khans of the Steppe files
culture_court_yurt_effect
culture_court_yurt_effect = { CHANCE = … PERCENT = … }game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 5864 (31 lines). Parameters: $CHANCE$, $PERCENT$.
culture_court_yurt_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 5864 of its file. A call passes 2 parameters: CHANCE and PERCENT. The game's script calls it in 1 place, among them mpo_yearly_yurt_rewards_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.
What it does
- …% chance of › You › Your domicile:
change_herd = { value = max_herd multiply = 0.01 multiply = $PERCENT$ }
• 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 (31 lines of game script)
culture_court_yurt_effect = {
root = {
every_tributary = {
culture = { add_to_temporary_list = yurt_culture_list }
}
every_vassal = {
culture = { add_to_temporary_list = yurt_culture_list }
}
}
random = {
chance = {
value = "list_size(yurt_culture_list)"
multiply = $CHANCE$
min = 0
}
root = {
send_interface_message = {
title = culture_court_yurt_effect_tt
desc = culture_court_yurt_effect_desc
domicile ?= {
change_herd = {
value = max_herd
multiply = 0.01
multiply = $PERCENT$
}
}
}
}
}
}As written in game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls culture_court_yurt_effect.
Scripted effects (1)
Source: game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.