Scripted effect
set_as_oaf_effect
set_as_oaf_effect = { CHARACTER = … }game/common/scripted_effects/00_relation_effects.txt, line 817 (8 lines). Parameters: $CHARACTER$.
set_as_oaf_effect is a scripted effect in Crusader Kings III, written at line 817 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 1 place, among them All Over My New … (event feast_default.2005). Patch 1.20.1.2, from game/common/scripted_effects/00_relation_effects.txt.
What it does
If
NOT = { has_relation_oaf = $CHARACTER$ }
Then
set_relation_oaf = $CHARACTER$
• 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 (8 lines of game script)
set_as_oaf_effect = {
if = {
limit = {
NOT = { has_relation_oaf = $CHARACTER$ }
}
set_relation_oaf = $CHARACTER$
}
}As written in game/common/scripted_effects/00_relation_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls set_as_oaf_effect.
Events (1)
- All Over My New …
feast_default.2005
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.