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_create_sighting_effect

hunt_create_sighting_effect = { ANIMAL = … OWNER = … TYPE = … }

game/common/scripted_effects/00_hunt_effects.txt, line 4113 (29 lines). Parameters: $ANIMAL$, $OWNER$, $TYPE$.

hunt_create_sighting_effect is a scripted effect in Crusader Kings III, written at line 4113 of its file. A call passes 3 parameters: ANIMAL, OWNER and TYPE. The game's script calls it in 20 places, among them … in … (event bp3_roaming.0110), … in the Zud (event nomad_events_oltner.0004) and A … of … (event nomad_events_oltner.0003). Patch 1.20.1.2, from game/common/scripted_effects/00_hunt_effects.txt.

The comment above it in the file

Unified effect for adding sightings to counties

What it does

  • The county gains the modifier “hunt sighting $TYPE$ modifier” for 3 years

• 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 (29 lines of game script)
hunt_create_sighting_effect = {
	if = {
        limit = { NOT = { exists = scope:sighting_county } }
        save_scope_as = sighting_county
    }
	# Track who can use the sighting
	set_variable = {
		name = animal_type
		years = 3
		value = $ANIMAL$
	}
	# Track who can use the sighting
	set_variable = {
		name = sighting_owner
		years = 3
		value = $OWNER$
	}
	# Stop sightings in the same place too regularly
	set_variable = {
		name = recent_sighting
		years = 10
	}
	# Add sighting modifier
	add_county_modifier = {
		modifier = hunt_sighting_$TYPE$_modifier
		years = 3
		desc = hunt_sighting_$TYPE$_modifier_custom_desc
	}
}

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_create_sighting_effect.

Events (19)

13 more

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?