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)
- … in …
bp3_roaming.0110 - … in the Zud
nomad_events_oltner.0004 - A … of …
nomad_events_oltner.0003 - A … of Legends
bp3_roaming.0120 - Bear Sighting
culture_tradition_events.3000 - Being the Best
legend_spread_events.5205
13 more
- Feathered Trails
nomad_events_oltner.0002 - Fresh Tracks
nomad_events_oltner.0001 - From Here to There
hunt.2540 - mpo_nerge.1031
- Nest Sighting
mpo_events_ariana.0001 - New Trails to Follow
nomad_events_oltner.0005 - The … …
hunt.2510 - The … …
hunt.4013 - The … …
hunt_mystical_animal.1004 - The … … of …
hunt.2520 - The … of …
hunt.2500 - The … of …
hunt.2530 - The Lord's Day
pam_secular_faith_events.0059
Scripted effects (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.