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
- If does not have the Trait: Religious Scholar: Gains the Trait Religious Scholar
- Otherwise: Religious Scholar experience changes
• 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)
- 'Celestial Hierarchy'
pam_secular_faith_events.0049 - A Besieged Soul
pam_secular_faith_events.0026 - A Light in the Dark
pam_generic_events.0004 - A Sign in the Heavens
pam_secular_faith_events.0021 - A Sparrow in the Hall
pam_secular_faith_events.0056 - A Spot of Sin
pam_generic_events.0011
38 more
- A Toast to Conviction
pam_spread_tenet_events.0301 - A Vision in the Night
pam_secular_faith_events.0003 - A Wandering Scribe
pam_secular_faith_events.0023 - An Argument of Scholars
pam_secular_faith_events.0031 - Around the Fire
pam_spread_tenet_events.0101 - Between the Bouts
pam_spread_tenet_events.0201 - Bones of a Saint
pam_secular_faith_events.0006 - By Candlelight
pam_secular_faith_events.0005 - Demonic Dreams
pam_secular_faith_events.0048 - Epiphany
pam_secular_faith_events.0045 - Flesh of the Faithful
pam_secular_faith_events.0040 - My Soul, At Peace
pam_secular_faith_events.0028 - Pillow Sermons
pam_secular_faith_events.0033 - Quid Mus Sumit?
pam_secular_faith_events.0058 - Religious Study: … of the Rule
study_scripture_outcome.1060 - Religious Study: Doctrinal Clarity
study_scripture_outcome.102 - Religious Study: Pastoral Letter
study_scripture_outcome.172 - Religious Study: Physician, Heal Thyself
study_scripture_outcome.400 - Religious Study: Strange Commentaries
study_scripture_outcome.410 - Religious Study: The … Gate
study_scripture_outcome.123 - Religious Study: The Dark Night of the Soul
study_scripture_outcome.1050 - Religious Study: The Renowned Exegete
study_scripture_outcome.101 - Religious Study: The Teacher
study_scripture_outcome.121 - Religious Study: The Tenet and the Heart
study_scripture_outcome.430 - Stage Fright
ecumenical_council_summons_events.0040 - Study Rite: A Breakthrough
study_faith_outcome.1000 - Table Talk
pam_spread_tenet_events.0001 - The … of …
pam_secular_faith_events.0020 - The Fires of Hell
pam_generic_events.0009 - The Hour of Temptation
pam_secular_faith_events.0032 - The Mortification
pam_secular_faith_events.0035 - The Naked Truth
pam_secular_faith_events.0041 - The Penitents
pam_secular_faith_events.0011 - The Secret
ecumenical_council_summons_events.0010 - The Voice of Bronze
pam_secular_faith_events.0055 - The Weeping Icon
pam_secular_faith_events.0015 - Wisdom of the Anchorite
pam_secular_faith_events.0036 - Words at the Wake
pam_spread_tenet_events.0401
Scripted effects (1)
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.