Scripted effect
give_pilgrim_xp_effect
give_pilgrim_xp_effect = yesgame/common/scripted_effects/00_pilgrimage_effects.txt, line 488 (26 lines). No parameters.
give_pilgrim_xp_effect is a scripted effect in Crusader Kings III, written at line 488 of its file. It takes no parameters: give_pilgrim_xp_effect = yes. The game's script calls it in 4 places, among them … A Matter of Safety (event pilgrimage.2003), … Tears of … (event pilgrimage.3001) and The More the Merrier (event pilgrimage.6002). Patch 1.20.1.2, from game/common/scripted_effects/00_pilgrimage_effects.txt.
The comment above it in the file
If you already have the trait, determine what kind of xp or other reward to get
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 (26 lines of game script)
give_pilgrim_xp_effect = {
if = {
limit = {
has_trait = pilgrim
has_trait_xp = {
trait = pilgrim
value < 100
}
}
add_trait_xp = {
trait = pilgrim
value = 5
}
}
else_if = {
limit = { has_lifestyle = learning_lifestyle }
add_learning_lifestyle_xp = medium_lifestyle_xp
}
else_if = {
limit = { has_trait = zealous }
stress_and_fulfillment_impact = { base = medium_stress_loss }
}
else = {
stress_and_fulfillment_impact = { base = minor_stress_loss }
}
}As written in game/common/scripted_effects/00_pilgrimage_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls give_pilgrim_xp_effect.
Events (3)
- … A Matter of Safety
pilgrimage.2003 - … Tears of …
pilgrimage.3001 - The More the Merrier
pilgrimage.6002
Scripted effects inside an event file (1)
- 6531_positive_outcome
Source: game/common/scripted_effects/00_pilgrimage_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.