Scripted effect · Khans of the Steppe files
mpo_paiza_improve_maa_smol_effect
mpo_paiza_improve_maa_smol_effect = yesgame/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 2070 (27 lines). No parameters.
mpo_paiza_improve_maa_smol_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 2070 of its file. It takes no parameters: mpo_paiza_improve_maa_smol_effect = yes. The game's script calls it in 2 places, among them Foreigner Returns (event mpo_decisions_events.0101) and Summon Wealthy Visitors: Local Offers (event mpo_decisions_events.2141). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.
What it does
- Gains the modifier “Foreign Armor”
- Men-at-Arms Toughness +10%
- Nomadic Horde Toughness +10%
- Archer Cavalry Toughness +10%
- 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: Further upgrades of this Domicile Building can be constructed only via the Summon Wealthy Visitors: Paiza Decision, which requires the title of Gurkhan
- When has domicile building is paiza metal trade yurt 01:
If
NOT = { has_domicile_building_or_higher = paiza_metal_trade_yurt_01 }
Then
add_domicile_building = paiza_metal_trade_yurt_01
- Depending on has domicile building:
• 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 (27 lines of game script)
mpo_paiza_improve_maa_smol_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 = {
custom_tooltip = paiza_metal_yurt_smol_block
}
}
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_smol_effect.
Events (2)
- Foreigner Returns
mpo_decisions_events.0101 - Summon Wealthy Visitors: Local Offers
mpo_decisions_events.2141
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.