Scripted effect · By God Alone files
scholasticism_scholar_gain_effect
scholasticism_scholar_gain_effect = yesgame/common/scripted_effects/pam_effects.txt, line 1769 (18 lines). No parameters.
scholasticism_scholar_gain_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 1769 of its file. It takes no parameters: scholasticism_scholar_gain_effect = yes. The game's script calls it in 1 place, among them on_personal_tenet_gain (on action). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
What it does
If
- The Personal Tenets unlock tenet scholasticism scholar trait
- Does not have the Trait: Religious Scholar
Then
- Gains the Trait Religious Scholar
- Else, if the Personal Tenets unlock tenet scholasticism scholar trait: Religious Scholar experience +50
• 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 (18 lines of game script)
scholasticism_scholar_gain_effect = {
if = {
limit = {
has_personal_tenet_flag = tenet_scholasticism_scholar_trait
NOT = { has_trait = lifestyle_scholar }
}
add_trait = lifestyle_scholar
}
else_if = {
limit = {
has_personal_tenet_flag = tenet_scholasticism_scholar_trait
}
add_trait_xp = {
trait = lifestyle_scholar
value = pam_scholasticism_scholar_xp_value
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls scholasticism_scholar_gain_effect.
On actions (the game's own hooks) (1)
- on_personal_tenet_gain
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.