Scripted effect
remove_all_perk_lifestyle_traits_effect
remove_all_perk_lifestyle_traits_effect = yesgame/common/scripted_effects/00_lifestyle_focus_effects.txt, line 783 (113 lines). No parameters.
remove_all_perk_lifestyle_traits_effect is a scripted effect in Crusader Kings III, written at line 783 of its file. It takes no parameters: remove_all_perk_lifestyle_traits_effect = yes. The game's script calls it in 6 places, among them on_perks_refunded (on action), 1128 (history) and 3924 (history). Patch 1.20.1.2, from game/common/scripted_effects/00_lifestyle_focus_effects.txt.
The comment above it in the file
Remove all perk-unlocked traits when resetting
What it does
- If has the Trait: Diplomat: Loses the Trait Diplomat
- If has the Trait: Family Hierarch: Loses the Trait Family Hierarch
- If has the Trait: August: Loses the Trait August
- If has the Trait: Strategist: Loses the Trait Strategist
- If has the Trait: Overseer: Loses the Trait Overseer
- If has the Trait: Gallant: Loses the Trait Gallant
- If has the Trait: Architect: Loses the Trait Architect
- If has the Trait: Administrator: Loses the Trait Administrator
- If has the Trait: Avaricious: Loses the Trait Avaricious
- If has the Trait: Schemer: Loses the Trait Schemer
- If has the Trait: Seducer: Loses the Trait Seducer
- If has the Trait: Torturer: Loses the Trait Torturer
- If has the Trait: Whole of Body: Loses the Trait Whole of Body
- If has the Trait: Erudite: Loses the Trait Erudite
- If has the Trait: Theologian: Loses the Trait Theologian
- If has the Trait: Inspector: Loses the Trait Inspector
- If has the Trait: Wayfarer: Loses the Trait Wayfarer
- If has the Trait: Voyager: Loses the Trait Voyager
• 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 (113 lines of game script)
remove_all_perk_lifestyle_traits_effect = {
if = {
limit = {
has_trait = diplomat
}
remove_trait = diplomat
}
if = {
limit = {
has_trait = family_first
}
remove_trait = family_first
}
if = {
limit = {
has_trait = august
}
remove_trait = august
}
if = {
limit = {
has_trait = strategist
}
remove_trait = strategist
}
if = {
limit = {
has_trait = overseer
}
remove_trait = overseer
}
if = {
limit = {
has_trait = gallant
}
remove_trait = gallant
}
if = {
limit = {
has_trait = architect
}
remove_trait = architect
}
if = {
limit = {
has_trait = administrator
}
remove_trait = administrator
}
if = {
limit = {
has_trait = avaricious
}
remove_trait = avaricious
}
if = {
limit = {
has_trait = schemer
}
remove_trait = schemer
}
if = {
limit = {
has_trait = seducer
}
remove_trait = seducer
}
if = {
limit = {
has_trait = torturer
}
remove_trait = torturer
}
if = {
limit = {
has_trait = whole_of_body
}
remove_trait = whole_of_body
}
if = {
limit = {
has_trait = erudite
}
remove_trait = erudite
}
if = {
limit = {
has_trait = theologian
}
remove_trait = theologian
}
if = {
limit = {
has_trait = lifestyle_surveyor
}
remove_trait = lifestyle_surveyor
}
if = {
limit = {
has_trait = lifestyle_wayfarer
}
remove_trait = lifestyle_wayfarer
}
if = {
limit = {
has_trait = lifestyle_voyager
}
remove_trait = lifestyle_voyager
}
hidden_effect = {
set_absolute_country_control = no
}
}As written in game/common/scripted_effects/00_lifestyle_focus_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls remove_all_perk_lifestyle_traits_effect.
On actions (the game's own hooks) (1)
- on_perks_refunded
History files (the start of the game) (5)
- 1128 (characters)
- 3924 (characters)
- 522 (characters)
- 7757 (characters)
- 83355 (characters)
Source: game/common/scripted_effects/00_lifestyle_focus_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.