Scripted effect
gain_appropriate_lifestyle_medium_xp_effect
gain_appropriate_lifestyle_medium_xp_effect = yesgame/common/scripted_effects/00_experience_effects.txt, line 14 (26 lines). No parameters.
gain_appropriate_lifestyle_medium_xp_effect is a scripted effect in Crusader Kings III, written at line 14 of its file. It takes no parameters: gain_appropriate_lifestyle_medium_xp_effect = yes. The game's script calls it in 3 places, among them tgp_movement_events.0110 (event), The Most Important Lesson (event pam_decision_events.0003) and Under Pressure (event tgp_dynastic_cycle_events.0010). Patch 1.20.1.2, from game/common/scripted_effects/00_experience_effects.txt.
What it does
If
Then
- Depending on has lifestyle:
- When has lifestyle is diplomacy lifestyle:
add_diplomacy_lifestyle_xp = medium_lifestyle_xp
- When has lifestyle is martial lifestyle:
add_martial_lifestyle_xp = medium_lifestyle_xp
- When has lifestyle is stewardship lifestyle:
add_stewardship_lifestyle_xp = medium_lifestyle_xp
- When has lifestyle is intrigue lifestyle:
add_intrigue_lifestyle_xp = medium_lifestyle_xp
- When has lifestyle is learning lifestyle:
add_learning_lifestyle_xp = medium_lifestyle_xp
- When has lifestyle is diplomacy lifestyle:
Otherwise
add_diplomacy_lifestyle_xp = medium_lifestyle_xp
- Depending on has lifestyle:
• 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 (26 lines of game script)
gain_appropriate_lifestyle_medium_xp_effect = {
if = {
limit = { has_any_lifestyle_focus_trigger = yes }
switch = {
trigger = has_lifestyle
diplomacy_lifestyle = {
add_diplomacy_lifestyle_xp = medium_lifestyle_xp
}
martial_lifestyle = {
add_martial_lifestyle_xp = medium_lifestyle_xp
}
stewardship_lifestyle = {
add_stewardship_lifestyle_xp = medium_lifestyle_xp
}
intrigue_lifestyle = {
add_intrigue_lifestyle_xp = medium_lifestyle_xp
}
learning_lifestyle = {
add_learning_lifestyle_xp = medium_lifestyle_xp
}
}
}
else = { # Fallback
add_diplomacy_lifestyle_xp = medium_lifestyle_xp
}
}As written in game/common/scripted_effects/00_experience_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls gain_appropriate_lifestyle_medium_xp_effect.
Events (3)
- tgp_movement_events.0110
- The Most Important Lesson
pam_decision_events.0003 - Under Pressure
tgp_dynastic_cycle_events.0010
Source: game/common/scripted_effects/00_experience_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.