Scripted trigger · Legends of the Dead files
has_legend_chapter_winner_trigger
has_legend_chapter_winner_trigger = { CHAPTER = … }game/common/scripted_triggers/06_ce1_legend_triggers.txt, line 112 (8 lines). Parameters: $CHAPTER$.
has_legend_chapter_winner_trigger is a scripted trigger in Crusader Kings III, in the Legends of the Dead files, written at line 112 of its file. A call passes 1 parameter: CHAPTER. The game's script calls it in 2 places, among them on_war_won_attacker (on action) and on_war_won_defender (on action). Patch 1.20.1.2, from game/common/scripted_triggers/06_ce1_legend_triggers.txt.
What it checks
Every line of it is script with no tooltip text: the script is below.
The script as written (8 lines of game script)
has_legend_chapter_winner_trigger = {
has_dlc_feature = legends
exists = promoted_legend
promoted_legend.legend_owner = scope:winner
promoted_legend = {
has_legend_chapter = $CHAPTER$
}
}As written in game/common/scripted_triggers/06_ce1_legend_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls has_legend_chapter_winner_trigger.
On actions (the game's own hooks) (2)
- on_war_won_attacker
- on_war_won_defender
Source: game/common/scripted_triggers/06_ce1_legend_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.