Scripted effect · Khans of the Steppe files
mpo_heir_lifestyle_xp_gain_effect
mpo_heir_lifestyle_xp_gain_effect = yesgame/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
If
scope:lifestyle_trait:One of these
this = trait:lifestyle_physicianor
this = trait:lifestyle_mysticor
this = trait:lifestyle_blademasteror
this = trait:lifestyle_reveler
Then
- scope:heir: scope:lifestyle trait experience +30
Else if
a check the game hides
Then
Else if
a check the game hides
Then
Else if
- scope:heir: Does not have the Trait: Novice Physician
Then
- scope:heir: Gains the Trait Novice Physician
Else if
a check the game hides
Then
scope:heir:add_diplomacy_skill = 1add_diplomacy_lifestyle_xp = medium_lifestyle_xp
Else if
Then
scope:heir:add_stewardship_skill = 1add_diplomacy_lifestyle_xp = medium_lifestyle_xp
• 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)
- Beyond the Customs
mpo_decisions_events.0023 - The Custom of Greeting
mpo_decisions_events.0021
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.