Scripted effect
hunt_friendly_intent_effect
hunt_friendly_intent_effect = { REASON = … TARGET = … }game/common/scripted_effects/00_hunt_effects.txt, line 3168 (32 lines). Parameters: $REASON$, $TARGET$.
hunt_friendly_intent_effect is a scripted effect in Crusader Kings III, written at line 3168 of its file. A call passes 2 parameters: REASON and TARGET. The game's script calls it in 2 places, among them Rampaging … (event hunt.4007) and Rampaging … (event hunt.4900). Patch 1.20.1.2, from game/common/scripted_effects/00_hunt_effects.txt.
What it does
If
has_activity_intent = woo_attendee_intentintent_target ?= $TARGET$
Then
progress_towards_lover_effect = { REASON = $REASON$ CHARACTER = $TARGET$ OPINION = default_lover_opinion }
Else if
has_activity_intent = befriend_attendee_intentintent_target ?= $TARGET$
Then
progress_towards_friend_effect = { REASON = $REASON$ CHARACTER = $TARGET$ OPINION = default_friend_opinion }
Otherwise
If
can_add_hook = { target = $TARGET$ type = favor_hook }
Then
add_hook = { type = favor_hook target = $TARGET$ }
• 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 (32 lines of game script)
hunt_friendly_intent_effect = {
if = {
limit = {
has_activity_intent = woo_attendee_intent
intent_target ?= $TARGET$
}
progress_towards_lover_effect = {
REASON = $REASON$
CHARACTER = $TARGET$
OPINION = default_lover_opinion
}
}
else_if = {
limit = {
has_activity_intent = befriend_attendee_intent
intent_target ?= $TARGET$
}
progress_towards_friend_effect = {
REASON = $REASON$
CHARACTER = $TARGET$
OPINION = default_friend_opinion
}
}
else = {
if = {
limit = {
can_add_hook = { target = $TARGET$ type = favor_hook }
}
add_hook = { type = favor_hook target = $TARGET$ }
}
}
}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_friendly_intent_effect.
Events (2)
- Rampaging …
hunt.4007 - Rampaging …
hunt.4900
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.