Scripted effect · By God Alone files
pam_clerical_court_instruct_effect
pam_clerical_court_instruct_effect = yesgame/common/scripted_effects/pam_effects.txt, line 8986 (42 lines). No parameters.
pam_clerical_court_instruct_effect is a scripted effect in Crusader Kings III, in the By God Alone files, written at line 8986 of its file. It takes no parameters: pam_clerical_court_instruct_effect = yes. The game's script calls it in 1 place, among them Tending the Flock (event pam_decision_events.0032). Patch 1.20.1.2, from game/common/scripted_effects/pam_effects.txt.
The comment above it in the file
scope:pam_clerical_patron is required here, and we run this on the courtier
What it does
- scope:pam_clerical_patron › scope:pam_clerical_instructed:
If
learning < scope:pam_clerical_patron.pam_clerical_court_learning_cap_value
Then
add_learning_skill = pam_clerical_court_learning_gain_value
- If does not have the Trait: Religious Scholar: Gains the Trait Religious Scholar
- Else, if religious Scholar experience less than 100 — Divine Interpreter: Religious Scholar experience +20
- Else, if does not have the Trait: Wise Man: Gains the Trait Wise Man
- Else, if wise Man experience less than 100 — Miracle Worker: Wise Man experience +25
• 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 (42 lines of game script)
pam_clerical_court_instruct_effect = {
save_scope_as = pam_clerical_instructed
scope:pam_clerical_patron = {
send_interface_toast = {
type = event_toast_effect_good
title = pam_clerical_court_instruct_toast
left_icon = scope:pam_clerical_instructed
scope:pam_clerical_instructed = {
if = {
limit = { learning < scope:pam_clerical_patron.pam_clerical_court_learning_cap_value }
add_learning_skill = pam_clerical_court_learning_gain_value
}
if = {
limit = { NOT = { has_trait = lifestyle_scholar } }
add_trait = lifestyle_scholar
}
else_if = {
limit = {
has_trait_xp = { trait = lifestyle_scholar value < 100 }
}
add_trait_xp = {
trait = lifestyle_scholar
value = 20
}
}
else_if = {
limit = { NOT = { has_trait = lifestyle_mystic } }
add_trait = lifestyle_mystic
}
else_if = {
limit = {
has_trait_xp = { trait = lifestyle_mystic value < 100 }
}
add_trait_xp = {
trait = lifestyle_mystic
value = 25
}
}
}
}
}
}As written in game/common/scripted_effects/pam_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls pam_clerical_court_instruct_effect.
Events (1)
- Tending the Flock
pam_decision_events.0032
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.