Scripted effect · Khans of the Steppe files
hostage_ward_yurt_effect
hostage_ward_yurt_effect = { CHANCE = … }game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 5574 (55 lines). Parameters: $CHANCE$.
hostage_ward_yurt_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 5574 of its file. A call passes 1 parameter: CHANCE. 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:
If
a check the game hides
Then
- scope:yurt_ward › 1 of 5 things will happen:
- 20%:
add_diplomacy_skill = 1
- 20%:
add_stewardship_skill = 1
- 20%:
add_intrigue_skill = 1
- 20%:
add_learning_skill = 1
- 20%:
add_martial_skill = 1
- 20%:
scope:yurt_hostage:increase_wounds_no_death_effect = { REASON = beaten }
- You: Gain +200 Prestige
- scope:yurt_ward › 1 of 5 things will happen:
• 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 (55 lines of game script)
hostage_ward_yurt_effect = {
root = {
every_courtier = {
limit = {
is_hostage_of = root
}
add_to_list = temp_yurt_hostages
}
}
random = {
chance = {
value = "list_size(temp_yurt_hostages)"
multiply = $CHANCE$
min = 0
}
root = {
random_courtier = {
limit = {
is_hostage_of = root
}
save_scope_as = yurt_hostage
}
random_relation = {
type = ward
save_scope_as = yurt_ward
}
if = {
limit = {
exists = scope:yurt_ward
}
send_interface_message = {
title = hostage_ward_yurt_effect_tt
desc = hostage_ward_yurt_effect_desc
left_icon = scope:yurt_ward
right_icon = scope:yurt_hostage
scope:yurt_ward = {
random_list = {
1 = { add_diplomacy_skill = 1 }
1 = { add_stewardship_skill = 1 }
1 = { add_intrigue_skill = 1 }
1 = { add_learning_skill = 1 }
1 = { add_martial_skill = 1 }
}
}
scope:yurt_hostage = {
increase_wounds_no_death_effect = { REASON = beaten }
}
root = {
add_prestige = 200
}
}
}
}
}
}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 hostage_ward_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.