Scripted trigger · All Under Heaven files
has_pilgrimage_trait_level_trigger
has_pilgrimage_trait_level_trigger = { TIER = … }game/common/scripted_triggers/tgp_mandala_triggers.txt, line 285 (48 lines). Parameters: $TIER$.
has_pilgrimage_trait_level_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 285 of its file. A call passes 1 parameter: TIER. The game's script calls it in 20 places, among them creation_fifth_tier_trigger (scripted trigger), creation_first_tier_trigger (scripted trigger) and creation_fourth_tier_trigger (scripted trigger). Its body carries 5 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/tgp_mandala_triggers.txt.
What it checks
Otherwise
- You have the Pilgrim Trait
• 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 (48 lines of game script)
has_pilgrimage_trait_level_trigger = {
trigger_if = {
limit = { $TIER$ = 05 }
custom_tooltip = {
text = rite_of_worthiness_tier_5_pilgrim
has_trait_xp = {
trait = pilgrim
value >= mandala_pilgrim_xp_last_tier_value
}
}
}
trigger_else_if = {
limit = { $TIER$ = 04 }
custom_tooltip = {
text = rite_of_worthiness_tier_4_pilgrim
has_trait_xp = {
trait = pilgrim
value >= mandala_pilgrim_xp_third_tier_value
}
}
}
trigger_else_if = {
limit = { $TIER$ = 03 }
custom_tooltip = {
text = rite_of_worthiness_tier_3_pilgrim
has_trait_xp = {
trait = pilgrim
value >= mandala_pilgrim_xp_second_tier_value
}
}
}
trigger_else_if = {
limit = { $TIER$ = 02 }
custom_tooltip = {
text = rite_of_worthiness_tier_2_pilgrim
has_trait_xp = {
trait = pilgrim
value >= mandala_pilgrim_xp_first_tier_value
}
}
}
trigger_else = {
custom_tooltip = {
text = rite_of_worthiness_tier_1_pilgrim
has_trait = pilgrim
}
}
}As written in game/common/scripted_triggers/tgp_mandala_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls has_pilgrimage_trait_level_trigger.
Scripted triggers (20)
- creation_fifth_tier_trigger
- creation_first_tier_trigger
- creation_fourth_tier_trigger
- creation_second_tier_trigger
- creation_third_tier_trigger
- destruction_fifth_tier_trigger
14 more
- destruction_first_tier_trigger
- destruction_fourth_tier_trigger
- destruction_second_tier_trigger
- destruction_third_tier_trigger
- serenity_fifth_tier_trigger
- serenity_first_tier_trigger
- serenity_fourth_tier_trigger
- serenity_second_tier_trigger
- serenity_third_tier_trigger
- trickery_fifth_tier_trigger
- trickery_first_tier_trigger
- trickery_fourth_tier_trigger
- trickery_second_tier_trigger
- trickery_third_tier_trigger
Source: game/common/scripted_triggers/tgp_mandala_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.