CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect

hunt_animal_from_death_effect

hunt_animal_from_death_effect = { DEAD = … TARGET = … }

game/common/scripted_effects/00_hunt_effects.txt, line 3414 (55 lines). Parameters: $DEAD$, $TARGET$.

hunt_animal_from_death_effect is a scripted effect in Crusader Kings III, written at line 3414 of its file. A call passes 2 parameters: DEAD and TARGET. The game's script calls it in 1 place, among them Victim of the Wild (event hunt.0080). Patch 1.20.1.2, from game/common/scripted_effects/00_hunt_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (55 lines of game script)
hunt_animal_from_death_effect = {
	$DEAD$ = {
		switch = {
			trigger = death_reason
			death_deer = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:stag } }
			}
			death_moose = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:elk } }
			}
			death_bear = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:bear } }
			}
			death_boar = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:boar } }
			}
			death_antelope = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:antelope } }
			}
			death_gazelle = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:gazelle } }
			}
			death_bison = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:bison } }
			}
			death_aurochs = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:aurochs } }
			}
			death_wolf = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:wolf } }
			}
			death_hyena = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:hyena } }
			}
			death_lion = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:lion } }
			}
			death_tiger = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:tiger } }
			}
			death_leopard = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:leopard } }
			}
			death_lynx = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:lynx } }
			}
			death_roe = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:roe } }
			}
			death_hart = {
				$TARGET$ = { set_variable = { name = animal_type value = flag:hart } }
			}
		}
	}
}

As written in game/common/scripted_effects/00_hunt_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls hunt_animal_from_death_effect.

Events (1)

Source: game/common/scripted_effects/00_hunt_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?