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

Scripted effect · Khans of the Steppe files

mpo_paiza_improve_maa_effect

mpo_paiza_improve_maa_effect = yes

game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 2098 (33 lines). No parameters.

mpo_paiza_improve_maa_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 2098 of its file. It takes no parameters: mpo_paiza_improve_maa_effect = yes. The game's script calls it in 2 places, among them Foreigner Returns (event mpo_decisions_events.0101) and Summon Wealthy Visitors: Paiza (event mpo_decisions_events.0100). Patch 1.20.1.2, from game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.

What it does

  • Gains the modifier “Foreign Armor”
  • Their domicile:
    • Depending on has domicile building:
      • When has domicile building is paiza metal trade yurt 01:
        • add_domicile_building = paiza_metal_trade_yurt_02
      • When has domicile building is paiza metal trade yurt 02:
        • add_domicile_building = paiza_metal_trade_yurt_03
      • When has domicile building is paiza metal trade yurt 03:
        • add_domicile_building = paiza_metal_trade_yurt_04
      • When has domicile building is paiza metal trade yurt 04:
        • add_domicile_building = paiza_metal_trade_yurt_05
      • When has domicile building is paiza metal trade yurt 05:
        • add_domicile_building = paiza_metal_trade_yurt_06
    • If

      • NOT = { has_domicile_building_or_higher = paiza_metal_trade_yurt_01 }

      Then

      • add_domicile_building = paiza_metal_trade_yurt_01

• 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 (33 lines of game script)
mpo_paiza_improve_maa_effect = {
	add_character_modifier = mpo_paiza_improve_maa_modifier
	add_character_flag = paiza_metal_trade_yurt_flag
	domicile ?= {
		switch = {
			trigger = has_domicile_building
			paiza_metal_trade_yurt_01 = {
				add_domicile_building = paiza_metal_trade_yurt_02
			}
			paiza_metal_trade_yurt_02 = {
				add_domicile_building = paiza_metal_trade_yurt_03
			}
			paiza_metal_trade_yurt_03 = {
				add_domicile_building = paiza_metal_trade_yurt_04
			}
			paiza_metal_trade_yurt_04 = {
				add_domicile_building = paiza_metal_trade_yurt_05
			}
			paiza_metal_trade_yurt_05 = {
				add_domicile_building = paiza_metal_trade_yurt_06
			}
		}
		if = {
			limit = {
				NOT = {
					has_domicile_building_or_higher = paiza_metal_trade_yurt_01
				}
			}
			add_domicile_building = paiza_metal_trade_yurt_01
		}
	}
	remove_character_flag = paiza_metal_trade_yurt_flag
}

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

Events (2)

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.

Spotted a mistake on this page?