Scripted effect
hand_out_nerge_rewards
hand_out_nerge_rewards = { OUTCOME = … }game/common/scripted_effects/00_hunt_effects.txt, line 4270 (20 lines). Parameters: $OUTCOME$.
hand_out_nerge_rewards is a scripted effect in Crusader Kings III, written at line 4270 of its file. A call passes 1 parameter: OUTCOME. The game's script calls it in 5 places, among them Excellent Nerge (event mpo_nerge.0130), Failed Nerge (event mpo_nerge.0110) and Great Nerge (event mpo_nerge.0125). Patch 1.20.1.2, from game/common/scripted_effects/00_hunt_effects.txt.
What it does
If a check the game hides passes: the same again (1 line)
- scope:activity › Activity log entry › scope:host:
nerge_rewards_effect = yes
Otherwise
nerge_rewards_effect = yes
- scope:activity › Activity log entry › scope:host:
• 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 (20 lines of game script)
hand_out_nerge_rewards = {
if = {
limit = {
this = scope:host
}
scope:activity = {
add_activity_log_entry = {
key = finished_nerge_$OUTCOME$
character = scope:host
show_in_conclusion = yes
scope:host = { nerge_rewards_effect = yes }
}
}
}
else = {
show_as_tooltip = {
nerge_rewards_effect = yes
}
}
}As written in game/common/scripted_effects/00_hunt_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls hand_out_nerge_rewards.
Events (5)
- Excellent Nerge
mpo_nerge.0130 - Failed Nerge
mpo_nerge.0110 - Great Nerge
mpo_nerge.0125 - Successful Nerge
mpo_nerge.0115 - Worthy Nerge
mpo_nerge.0120
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.