Scripted effect · Khans of the Steppe files
refill_maa_with_herd_effect
refill_maa_with_herd_effect = yesgame/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 4740 (32 lines). No parameters.
refill_maa_with_herd_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 4740 of its file. It takes no parameters: refill_maa_with_herd_effect = yes. The game's script calls it in 1 place, among them Refill Men-at-Arms (interaction). Patch 1.20.1.2, from game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (32 lines of game script)
refill_maa_with_herd_effect = {
save_scope_as = nomad_temp
while = {
limit = {
scope:actor.domicile.herd > 0
any_maa_regiment = {
maa_regiments_valid_to_refill_trigger = yes
}
}
random_maa_regiment = {
limit = {
maa_regiments_valid_to_refill_trigger = yes
}
save_scope_as = maa_scope
save_scope_value_as = {
name = current_herd_max_value_scope
value = scope:actor.domicile.herd
}
scope:actor.domicile ?= {
change_herd = {
value = {
add = scope:maa_scope.replenishable_troops_value
divide = herd_refill_value
max = scope:current_herd_max_value_scope
multiply = -1
}
}
}
change_maa_troops_count = replenishable_troops_with_herd_value
}
}
}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 refill_maa_with_herd_effect.
Character interactions (1)
- Refill Men-at-Arms
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.