CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · Roads to Power files

refill_maa_with_gold_effect

refill_maa_with_gold_effect = yes

game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 9946 (30 lines). No parameters.

refill_maa_with_gold_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 9946 of its file. It takes no parameters: refill_maa_with_gold_effect = yes. The game's script calls it in 2 places, among them Refill Men-at-Arms (interaction) and 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 (30 lines of game script)
refill_maa_with_gold_effect = {
	save_scope_as = laamp_temp
	while = {
		count = 100 # Hard bound; the limit below is what normally ends the loop
		limit = {
			scope:actor.gold > 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_gold_max_value_scope
				value = scope:actor.gold
			}
			scope:actor = {
				remove_short_term_gold = {
					add = scope:maa_scope.replenishable_troops_value
					divide = gold_refill_value
					max = scope:current_gold_max_value_scope
				}
			}
			change_maa_troops_count = replenishable_troops_with_gold_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_gold_effect.

Character interactions (2)

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.

Spotted a mistake on this page?