Scripted trigger
hunt_animal_type_dangerous_trigger
hunt_animal_type_dangerous_trigger = { VAR = … }game/common/scripted_triggers/00_hunt_triggers.txt, line 923 (20 lines). Parameters: $VAR$.
hunt_animal_type_dangerous_trigger is a scripted trigger in Crusader Kings III, written at line 923 of its file. A call passes 1 parameter: VAR. The game's script calls it in 7 places, among them Cornering the … (event hunt.1202), The … … (event hunt.4017) and disburse_hunt_activity_rewards (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/00_hunt_triggers.txt.
What it checks
One of these
$VAR$ ?= flag:boaror
$VAR$ ?= flag:bisonor
$VAR$ ?= flag:aurochsor
$VAR$ ?= flag:wolfor
$VAR$ ?= flag:hyenaor
$VAR$ ?= flag:lynxor
$VAR$ ?= flag:bearor
$VAR$ ?= flag:lionor
$VAR$ ?= flag:tigeror
$VAR$ ?= flag:leopardor
$VAR$ ?= flag:stagor
$VAR$ ?= flag:antelopeor
$VAR$ ?= flag:saigaor
$VAR$ ?= flag:reindeeror
$VAR$ ?= flag:hartor
$VAR$ ?= flag:elk
• 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 (20 lines of game script)
hunt_animal_type_dangerous_trigger = {
OR = {
$VAR$ ?= flag:boar
$VAR$ ?= flag:bison
$VAR$ ?= flag:aurochs
$VAR$ ?= flag:wolf
$VAR$ ?= flag:hyena
$VAR$ ?= flag:lynx
$VAR$ ?= flag:bear
$VAR$ ?= flag:lion
$VAR$ ?= flag:tiger
$VAR$ ?= flag:leopard
$VAR$ ?= flag:stag
$VAR$ ?= flag:antelope
$VAR$ ?= flag:saiga
$VAR$ ?= flag:reindeer
$VAR$ ?= flag:hart
$VAR$ ?= flag:elk
}
}As written in game/common/scripted_triggers/00_hunt_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls hunt_animal_type_dangerous_trigger.
Events (2)
- Cornering the …
hunt.1202 - The … …
hunt.4017
Scripted effects (4)
Script values (1)
- hunt_success_chance_value
Source: game/common/scripted_triggers/00_hunt_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.