Scripted effect
hunt_activity_random_interest_participant_effect
hunt_activity_random_interest_participant_effect = { ARCHETYPE = … COMBATANT = … SCOPE = … }game/common/scripted_effects/00_hunt_effects.txt, line 1381 (45 lines). Parameters: $ARCHETYPE$, $COMBATANT$, $SCOPE$.
hunt_activity_random_interest_participant_effect is a scripted effect in Crusader Kings III, written at line 1381 of its file. A call passes 3 parameters: ARCHETYPE, COMBATANT and SCOPE. The game's script calls it in 8 places, among them A Spear for … (event hunt.1005), An Arrow for … (event hunt.1013) and An Arrow for … (event hunt.1015). 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 (45 lines of game script)
hunt_activity_random_interest_participant_effect = {
save_scope_value_as = {
name = hunt_participant_archetype
value = flag:$ARCHETYPE$
}
save_scope_value_as = {
name = hunt_participant_martial_gender
value = flag:$COMBATANT$
}
scope:activity = {
random_attending_character = {
# Major
limit = {
is_adult = yes
is_of_major_interest_trigger = { CHARACTER = root }
trigger_if = {
limit = { scope:hunt_participant_martial_gender = flag:yes }
can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host }
}
NAND = {
exists = scope:murder_target
this = scope:murder_target
}
}
# Minor
alternative_limit = {
is_adult = yes
is_of_minor_interest_trigger = { CHARACTER = root }
trigger_if = {
limit = { scope:hunt_participant_martial_gender = flag:yes }
can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host }
}
NAND = {
exists = scope:murder_target
this = scope:murder_target
}
}
weight = {
base = 10
hunt_relevant_participant_modifiers = yes
}
save_scope_as = $SCOPE$
}
}
}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_activity_random_interest_participant_effect.
Events (8)
- A Spear for …
hunt.1005 - An Arrow for …
hunt.1013 - An Arrow for …
hunt.1015 - Hare for the Taking
tgp_hunt.0007 - hunt.4910
- The … …
hunt.4019
2 more
- Under My Wing
hunt.5060 - Wildflowers
hunt.5001
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.