Scripted effect
progress_towards_intent_effect
progress_towards_intent_effect = { CHARACTER = … FRIEND_FALLBACK = … REASON = … }game/common/scripted_effects/00_relation_effects.txt, line 1301 (36 lines). Parameters: $CHARACTER$, $FRIEND_FALLBACK$, $REASON$.
progress_towards_intent_effect is a scripted effect in Crusader Kings III, written at line 1301 of its file. A call passes 3 parameters: CHARACTER, FRIEND_FALLBACK and REASON. The game's script calls it in 2 places, among them Mourning Star (event funeral.1060) and One of the Greats (event funeral.1100). Patch 1.20.1.2, from game/common/scripted_effects/00_relation_effects.txt.
What it does
If
intent_target ?= $CHARACTER$has_activity_intent = woo_attendee_intent
Then
progress_towards_lover_effect = { REASON = $REASON$ CHARACTER = $CHARACTER$ OPINION = default_lover_opinion }
Else if
One of these
All of these
intent_target ?= $CHARACTER$has_activity_intent = befriend_attendee_intent
or
$FRIEND_FALLBACK$ = yes
Then
progress_towards_friend_effect = { REASON = $REASON$ CHARACTER = $CHARACTER$ OPINION = default_friend_opinion }
Otherwise
reverse_add_opinion = { modifier = kindness_opinion target = $CHARACTER$ opinion = default_friend_opinion }
• 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 (36 lines of game script)
progress_towards_intent_effect = {
if = {
limit = {
intent_target ?= $CHARACTER$
has_activity_intent = woo_attendee_intent
}
progress_towards_lover_effect = {
REASON = $REASON$
CHARACTER = $CHARACTER$
OPINION = default_lover_opinion
}
}
else_if = {
limit = {
OR = {
AND = {
intent_target ?= $CHARACTER$
has_activity_intent = befriend_attendee_intent
}
$FRIEND_FALLBACK$ = yes
}
}
progress_towards_friend_effect = {
REASON = $REASON$
CHARACTER = $CHARACTER$
OPINION = default_friend_opinion
}
}
else = {
reverse_add_opinion = {
modifier = kindness_opinion
target = $CHARACTER$
opinion = default_friend_opinion
}
}
}As written in game/common/scripted_effects/00_relation_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls progress_towards_intent_effect.
Events (2)
- Mourning Star
funeral.1060 - One of the Greats
funeral.1100
Source: game/common/scripted_effects/00_relation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.