CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect

remove_all_perk_lifestyle_traits_effect

remove_all_perk_lifestyle_traits_effect = yes

game/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

• 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.

Spotted a mistake on this page?