Scripted trigger
can_set_relation_victim_trigger
can_set_relation_victim_trigger = { CHARACTER = … }game/common/scripted_triggers/00_relation_triggers.txt, line 129 (11 lines). Parameters: $CHARACTER$.
can_set_relation_victim_trigger is a scripted trigger in Crusader Kings III, written at line 129 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 7 places, among them Blossoming Friendship (event childhood.0003), For Amity, Too Young (event bp2_yearly.6140) and Heart-wrenching Rejection (event child_personality.0006). Patch 1.20.1.2, from game/common/scripted_triggers/00_relation_triggers.txt.
What it checks
- Is a child
$CHARACTER$ = { is_adult = no }NOT = { has_relation_friend = $CHARACTER$ }NOT = { has_relation_best_friend = $CHARACTER$ }NOT = { has_relation_bully = $CHARACTER$ }NOT = { has_relation_victim = $CHARACTER$ }
• 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 (11 lines of game script)
can_set_relation_victim_trigger = {
is_adult = no
$CHARACTER$ = { is_adult = no }
NOR = {
this = $CHARACTER$
has_relation_friend = $CHARACTER$
has_relation_best_friend = $CHARACTER$
has_relation_bully = $CHARACTER$
has_relation_victim = $CHARACTER$
}
}As written in game/common/scripted_triggers/00_relation_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls can_set_relation_victim_trigger.
Character interactions (1)
- Set Relationship
Events (6)
- Blossoming Friendship
childhood.0003 - For Amity, Too Young
bp2_yearly.6140 - Heart-wrenching Rejection
child_personality.0006 - The Game
bp2_yearly.8021 - The Great Wall
playdate.5005 - Set Relationship
debug.350
Source: game/common/scripted_triggers/00_relation_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.