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

Scripted effect · By God Alone files

add_scholar_trait_or_xp_effect

add_scholar_trait_or_xp_effect = { VALUE = … }

game/common/scripted_effects/pam_effects.txt, line 783 (14 lines). Parameters: $VALUE$.

add_scholar_trait_or_xp_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 783 of its file. A call passes 1 parameter: VALUE. The game's script calls it in 47 places, among them poi_special_buildings_religious (travel), poi_standalone_holy_site (travel) and 'Celestial Hierarchy' (event pam_secular_faith_events.0049). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.

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 (14 lines of game script)
add_scholar_trait_or_xp_effect = {
	if = {
		limit = {
			NOT = { has_trait = lifestyle_scholar }
		}
		add_trait = lifestyle_scholar
	}
	else = {
		add_trait_xp = {
			trait = lifestyle_scholar
			value = $VALUE$
		}
	}
}

As written in game/common/scripted_effects/pam_effects.txt.

Where it is used

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

Travel (2)

  • poi_special_buildings_religious
  • poi_standalone_holy_site

Events (44)

38 more

Source: game/common/scripted_effects/pam_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?