Scripted effect
hunt_all_attendee_xp_effect
hunt_all_attendee_xp_effect = { CHANGE = … RANDOM = … }game/common/scripted_effects/00_hunt_effects.txt, line 3202 (37 lines). Parameters: $CHANGE$, $RANDOM$.
hunt_all_attendee_xp_effect is a scripted effect in Crusader Kings III, written at line 3202 of its file. A call passes 2 parameters: CHANGE and RANDOM. The game's script calls it in 12 places, among them A Hare in the Hand (event hunt.1062), Bounty of the Wild (event hunt.9001) and Cornering the … (event hunt.1003). Patch 1.20.1.2, from game/common/scripted_effects/00_hunt_effects.txt.
The comment above it in the file
Give hunt xp to every attending character
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (37 lines of game script)
hunt_all_attendee_xp_effect = {
hidden_effect = {
scope:activity = {
every_attending_character = {
limit = {
is_alive = yes
NOT = { has_character_flag = not_slaying }
trigger_if = {
limit = {
NOT = {
scope:activity = {
has_activity_option = { category = special_type option = hunt_type_falconry }
}
}
}
can_be_combatant_based_on_gender_trigger = { ARMY_OWNER = scope:host }
}
}
add_to_list = animal_slayers
}
activity_host = { add_to_list = animal_slayers }
}
every_in_list = {
list = animal_slayers
if = {
limit = { has_trait = lifestyle_hunter }
send_interface_toast = {
title = hunter_xp_gain_message
hunter_progress_point_gain_effect = { CHANGE = $CHANGE$ RANDOM_CHANGE = $RANDOM$ } #Gives points towards ranking up the Hunter Lifestyle
}
}
else = {
hunter_progress_point_gain_effect = { CHANGE = $CHANGE$ RANDOM_CHANGE = $RANDOM$ } #Gives points towards ranking up the Hunter Lifestyle
}
}
}
}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_all_attendee_xp_effect.
Events (12)
- A Hare in the Hand
hunt.1062 - Bounty of the Wild
hunt.9001 - Cornering the …
hunt.1003 - Cornering the …
hunt.1004 - Empty-Handed
hunt.9002 - Felling a Beast
hunt.4004
6 more
- Laying in Wait
hunt.1032 - Laying in Wait
hunt.1033 - Softly, Softly
hunt.1040 - Softly, Softly
hunt.1043 - The … …
hunt.1090 - The Shot
hunt.4001
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.