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

create_maa_or_upgrade_regiment_effect

create_maa_or_upgrade_regiment_effect = { SIZE = … TYPE = … }

game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 9294 (24 lines). Parameters: $SIZE$, $TYPE$.

create_maa_or_upgrade_regiment_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 9294 of its file. A call passes 2 parameters: SIZE and TYPE. The game's script calls it in 1 place, among them ep3_create_random_maa_regiment_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.

What it does

  • If

    • Any maa regiment:
      • is_maa_type = $TYPE$
      • … regiment can increase its size

    Then

    • One random maa regiment:
      • Where:
        • is_maa_type = $TYPE$
        • … regiment can increase its size
      • change_maa_regiment_size = $SIZE$

    Otherwise

    • create_maa_regiment = { type = $TYPE$ check_can_recruit = no size = $SIZE$ }

• 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 (24 lines of game script)
create_maa_or_upgrade_regiment_effect = {
	if = {
		limit = {
			any_maa_regiment = {
				is_maa_type = $TYPE$
				can_upgrade_maa = yes
			}
		}
		random_maa_regiment = {
			limit = {
				is_maa_type = $TYPE$
				can_upgrade_maa = yes
			}
			change_maa_regiment_size = $SIZE$
		}
	}
	else = {
		create_maa_regiment = {
			type = $TYPE$
			check_can_recruit = no
			size = $SIZE$
		}
	}
}

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 create_maa_or_upgrade_regiment_effect.

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?