Scripted effect · Khans of the Steppe files
mpo_yearly_dynasty_of_many_khans_effect
mpo_yearly_dynasty_of_many_khans_effect = yesgame/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 5314 (36 lines). No parameters.
mpo_yearly_dynasty_of_many_khans_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 5314 of its file. It takes no parameters: mpo_yearly_dynasty_of_many_khans_effect = yes. The game's script calls it in 1 place, among them yearly_playable_pulse (on action). Patch 1.20.1.2, from game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.
The comment above it in the file
Used to distribute the Dynasty of Many Khans dynasty_court_yurt_06 reward Called from yearly_on_action root is character
What it does
If
- Their dynasty:
has_dynasty_modifier = dynasty_of_many_crowns_nomad
- Their domicile:
has_domicile_parameter = nomad_yurt_dynasty_many_khans
Then
- Their dynasty: The dynasty gains … Renown
- Their dynasty:
• 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 (36 lines of game script)
mpo_yearly_dynasty_of_many_khans_effect = {
if = {
limit = {
this = dynasty.dynast
dynasty = {
has_dynasty_modifier = dynasty_of_many_crowns_nomad
}
domicile ?= {
has_domicile_parameter = nomad_yurt_dynasty_many_khans
}
}
send_interface_toast = {
type = event_toast_effect_good
title = dynasty_many_khans_yearly_tt
set_variable = {
name = temp_dynn_prestige
value = 1
}
dynasty = {
every_dynasty_member = {
limit = {
primary_title.tier >= tier_kingdom
}
root = {
change_variable = {
name = temp_dynn_prestige
add = minor_dynasty_prestige_gain
}
}
}
add_dynasty_prestige = root.var:temp_dynn_prestige
}
remove_variable = temp_dynn_prestige
}
}
}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 mpo_yearly_dynasty_of_many_khans_effect.
On actions (the game's own hooks) (1)
- yearly_playable_pulse
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.