Scripted effect · Roads to Power files
refill_maa_with_provisions_effect
refill_maa_with_provisions_effect = yesgame/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 9912 (33 lines). No parameters.
refill_maa_with_provisions_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 9912 of its file. It takes no parameters: refill_maa_with_provisions_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/07_dlc_ep3_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (33 lines of game script)
refill_maa_with_provisions_effect = {
save_scope_as = laamp_temp
while = {
count = 100 # Hard bound; the limit below is what normally ends the loop
limit = {
scope:actor.domicile.provisions > 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_provisions_max_value_scope
value = scope:actor.domicile.provisions
}
scope:actor.domicile ?= {
change_provisions = {
value = {
add = scope:maa_scope.replenishable_troops_value
divide = provision_refill_value
max = scope:current_provisions_max_value_scope
multiply = -1
}
}
}
change_maa_troops_count = replenishable_troops_with_provisions_value
}
}
}As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls refill_maa_with_provisions_effect.
Character interactions (1)
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.