Scripted trigger · Roads to Power files
has_same_chariot_team_as
has_same_chariot_team_as = { TARGET = … }game/common/scripted_triggers/07_ep3_triggers.txt, line 500 (19 lines). Parameters: $TARGET$.
has_same_chariot_team_as is a scripted trigger in Crusader Kings III, in the Roads to Power files, written at line 500 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 1 place, among them chariot_race_on_action (on action). Patch 1.20.1.2, from game/common/scripted_triggers/07_ep3_triggers.txt.
What it checks
- If has the Trait: Charioteer of the Venetoi:
$TARGET$ = { has_trait = charioteer_blue }
- Else, if has the Trait: Charioteer of the Prasinoi:
$TARGET$ = { has_trait = charioteer_green }
- Else, if has the Trait: Charioteer of the Leukoi:
$TARGET$ = { has_trait = charioteer_white }
- Else, if has the Trait: Charioteer of the Rhousioi:
$TARGET$ = { has_trait = charioteer_red }
- Otherwise: Never
• 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 (19 lines of game script)
has_same_chariot_team_as = {
trigger_if = {
limit = { has_trait = charioteer_blue }
$TARGET$ = { has_trait = charioteer_blue }
}
trigger_else_if = {
limit = { has_trait = charioteer_green }
$TARGET$ = { has_trait = charioteer_green }
}
trigger_else_if = {
limit = { has_trait = charioteer_white }
$TARGET$ = { has_trait = charioteer_white }
}
trigger_else_if = {
limit = { has_trait = charioteer_red }
$TARGET$ = { has_trait = charioteer_red }
}
trigger_else = { always = no }
}As written in game/common/scripted_triggers/07_ep3_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls has_same_chariot_team_as.
On actions (the game's own hooks) (1)
- chariot_race_on_action
Source: game/common/scripted_triggers/07_ep3_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.