Scripted effect
progress_towards_friend_ai_effect
progress_towards_friend_ai_effect = { CHARACTER = … OPINION = … REASON = … }game/common/scripted_effects/00_relation_effects.txt, line 1262 (12 lines). Parameters: $CHARACTER$, $OPINION$, $REASON$.
progress_towards_friend_ai_effect is a scripted effect in Crusader Kings III, written at line 1262 of its file. A call passes 3 parameters: CHARACTER, OPINION and REASON. The game's script calls it in 3 places, among them …'s Finest (event tour_grounds_events.3060), A Roughing Up (event tour_grounds_events.3050) and Disloyal Subjects (event tour_grounds_events.3040). Patch 1.20.1.2, from game/common/scripted_effects/00_relation_effects.txt.
What it does
If
$CHARACTER$ = { is_ai = yes }
Then
progress_towards_friend_effect = { CHARACTER = $CHARACTER$ OPINION = $OPINION$ REASON = $REASON$ }
• 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 (12 lines of game script)
progress_towards_friend_ai_effect = {
if = {
limit = {
$CHARACTER$ = { is_ai = yes }
}
progress_towards_friend_effect = {
CHARACTER = $CHARACTER$
OPINION = $OPINION$
REASON = $REASON$
}
}
}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_friend_ai_effect.
Events (3)
- …'s Finest
tour_grounds_events.3060 - A Roughing Up
tour_grounds_events.3050 - Disloyal Subjects
tour_grounds_events.3040
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.