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_target_lifestyle_xp_gain_effect

mpo_target_lifestyle_xp_gain_effect = yes

game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt, line 2831 (138 lines). No parameters.

mpo_target_lifestyle_xp_gain_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 2831 of its file. It takes no parameters: mpo_target_lifestyle_xp_gain_effect = yes. The game's script calls it in 1 place, among them Visitors from … (event mpo_decisions_events.0022). Patch 1.20.1.2, from game/common/scripted_effects/09_dlc_mpo_scripted_effects.txt.

What it does

  • If

    • scope:lifestyle_trait:
      • One of these

        • this = trait:lifestyle_physician
        • or

          this = trait:lifestyle_mystic
        • or

          this = trait:lifestyle_blademaster
        • or

          this = trait:lifestyle_reveler

    Then

    • scope:friendship_target: scope:lifestyle trait experience +20

    Else if

    a check the game hides

    Then

    • scope:friendship_target: Hunter (hunter) experience +10
    • scope:friendship_target: Hunter (falconer) experience +10

    Else if

    a check the game hides

    Then

    • scope:friendship_target: Traveler (travel) experience +10
    • scope:friendship_target: Traveler (danger) experience +10

    Else if

    Then

    Else if a check the game hides passes: the same again (1 line)
    • scope:friendship_target:
      • add_diplomacy_lifestyle_xp = medium_lifestyle_xp

    Else if

    Then

    • scope:friendship_target:
      • add_diplomacy_lifestyle_xp = medium_lifestyle_xp

    Else if

    Then

    Else if

    Then

    Otherwise

    • scope:friendship_target: Loses 20 Stress

• 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_target_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:friendship_target = {
			add_trait_xp = {
				trait = scope:lifestyle_trait
				value = 20
			}
		}
	}
	else_if = {
		limit = {
			scope:lifestyle_trait = {
				this = trait:lifestyle_hunter
			}
		}
		scope:friendship_target = {
			add_trait_xp = {
				trait = lifestyle_hunter
				track = hunter
				value = 10
			}
		}
		scope:friendship_target = {
			add_trait_xp = {
				trait = lifestyle_hunter
				track = falconer
				value = 10
			}
		}
	}
	else_if = {
		limit = {
			scope:lifestyle_trait = {
				this = trait:lifestyle_traveler
			}
		}
		scope:friendship_target = {
			add_trait_xp = {
				trait = lifestyle_traveler
				track = travel
				value = 10
			}
		}
		scope:friendship_target = {
			add_trait_xp = {
				trait = lifestyle_traveler
				track = danger
				value = 10
			}
		}
	}
	else_if = {
		limit = {
			scope:lifestyle_trait = {
				this = trait:lifestyle_herbalist
			}
			scope:heir = {
				has_trait = lifestyle_physician
			}
		}
		scope:friendship_target = {
			add_trait_xp = {
				trait = lifestyle_physician
				value = 20
			}
		}
	}
	else_if = {
		limit = {
			scope:lifestyle_trait = {
				this = trait:lifestyle_poet
			}
		}
		scope:friendship_target = {
			add_diplomacy_lifestyle_xp = medium_lifestyle_xp
		}
	}
	else_if = {
		limit = {
			scope:lifestyle_trait = {
				this = trait:lifestyle_gardener
			}
			scope:heir = {
				has_trait = lifestyle_herbalist
			}
		}
		scope:friendship_target = {
			add_diplomacy_lifestyle_xp = medium_lifestyle_xp
		}
	}
	else_if = {
		limit = {
			scope:lifestyle_trait = {
				this = trait:drunkard
			}
			scope:heir = {
				has_trait = lifestyle_reveler
			}
		}
		scope:friendship_target = {
			add_trait_xp = {
				trait = lifestyle_reveler
				value = 20
			}
		}
	}
	else_if = {
		limit = {
			scope:lifestyle_trait = {
				this = trait:hashishiyah

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

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

Where it is used

Every place in common/, events/ and history/ that calls mpo_target_lifestyle_xp_gain_effect.

Events (1)

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?