Scripted trigger
prisoners_of_war_trigger
prisoners_of_war_trigger = yesgame/common/scripted_triggers/00_war_and_peace_triggers.txt, line 1087 (31 lines). No parameters.
prisoners_of_war_trigger is a scripted trigger in Crusader Kings III, written at line 1087 of its file. It takes no parameters: prisoners_of_war_trigger = yes (or no). The game's script calls it in 1 place, among them show_pow_release_message_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/00_war_and_peace_triggers.txt.
What it checks
One of these
- scope:defender › Any prisoner:
One of these
this = scope:war.primary_attackeror
scope:war.primary_attacker.primary_title:place_in_line_of_succession = { target = prev value <= 3 }
or
scope:attacker › Any prisoner:One of these
this = scope:war.primary_defenderor
scope:war.primary_defender.primary_title:place_in_line_of_succession = { target = prev value <= 3 }
- scope:defender › Any prisoner:
• 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 (31 lines of game script)
prisoners_of_war_trigger = {
OR = {
scope:defender = {
any_prisoner = {
OR = {
this = scope:war.primary_attacker
scope:war.primary_attacker.primary_title = {
place_in_line_of_succession = {
target = prev
value <= 3
}
}
}
}
}
#Prisoners of attackers
scope:attacker = {
any_prisoner = {
OR = {
this = scope:war.primary_defender
scope:war.primary_defender.primary_title = {
place_in_line_of_succession = {
target = prev
value <= 3
}
}
}
}
}
}
}As written in game/common/scripted_triggers/00_war_and_peace_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls prisoners_of_war_trigger.
Scripted effects (1)
Source: game/common/scripted_triggers/00_war_and_peace_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.