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_heir_lifestyle_xp_gain_effect

mpo_heir_lifestyle_xp_gain_effect = yes

game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 2519 (206 lines). No parameters.

mpo_heir_lifestyle_xp_gain_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 2519 of its file. It takes no parameters: mpo_heir_lifestyle_xp_gain_effect = yes. The game's script calls it in 2 places, among them Beyond the Customs (event mpo_decisions_events.0023) and The Custom of Greeting (event mpo_decisions_events.0021). Patch 1.20.1.2, from game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.

What it does

• 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 (120 lines of game script)
mpo_heir_lifestyle_xp_gain_effect = {
	if = {
		limit = {
			scope:lifestyle_trait = {
				OR = {
					this = trait:lifestyle_physician
					this = trait:lifestyle_mystic
					this = trait:lifestyle_blademaster
					this = trait:lifestyle_reveler
				}
			}
		}
		scope:heir = {
			add_trait_xp = {
				trait = scope:lifestyle_trait
				value = 30
			}
		}
	}
	else_if = {
		limit = {
			scope:lifestyle_trait = {
				this = trait:lifestyle_hunter
			}
		}
		scope:heir = {
			add_trait_xp = {
				trait = lifestyle_hunter
				track = hunter
				value = 15
			}
		}
		scope:heir = {
			add_trait_xp = {
				trait = lifestyle_hunter
				track = falconer
				value = 15
			}
		}
	}
	else_if = {
		limit = {
			scope:lifestyle_trait = {
				this = trait:lifestyle_traveler
			}
		}
		scope:heir = {
			add_trait_xp = {
				trait = lifestyle_traveler
				track = travel
				value = 15
			}
		}
		scope:heir = {
			add_trait_xp = {
				trait = lifestyle_traveler
				track = danger
				value = 15
			}
		}
	}
	else_if = {
		limit = {
			scope:lifestyle_trait = {
				this = trait:lifestyle_herbalist
			}
			scope:heir = {
				NOT = {
					has_trait = lifestyle_physician
				}
			}
		}
		scope:heir = {
			add_trait = lifestyle_physician
		}
	}
	else_if = {
		limit = {
			scope:lifestyle_trait = {
				this = trait:lifestyle_herbalist
			}
			scope:heir = {
				has_trait = lifestyle_physician
			}
		}
		scope:heir = {
			add_trait_xp = {
				trait = lifestyle_physician
				value = 30
			}
		}
	}
	else_if = {
		limit = {
			scope:lifestyle_trait = {
				this = trait:lifestyle_poet
			}
		}
		scope:heir = {
			add_diplomacy_skill = 1
			add_diplomacy_lifestyle_xp = medium_lifestyle_xp
		}
	}
	else_if = {
		limit = {
			scope:lifestyle_trait = {
				this = trait:lifestyle_gardener
			}
			scope:heir = {
				NOT = {
					has_trait = lifestyle_herbalist
				}
			}
		}
		scope:heir = {
			add_trait = lifestyle_herbalist
		}
	}
	else_if = {
		limit = {

As written in game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.

The first 120 of its 206 lines; the rest is in game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt from line 2519.

Where it is used

Every place in common/, events/ and history/ that calls mpo_heir_lifestyle_xp_gain_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?