Scripted effect
remove_guardian_effect
remove_guardian_effect = { GUARDIAN = … HIDE_OPINION = … RETURN_WARD = … WARD = … }game/common/scripted_effects/00_education_effects.txt, line 3473 (30 lines). Parameters: $GUARDIAN$, $HIDE_OPINION$, $RETURN_WARD$, $WARD$.
remove_guardian_effect is a scripted effect in Crusader Kings III, written at line 3473 of its file. A call passes 4 parameters: GUARDIAN, HIDE_OPINION, RETURN_WARD and WARD. The game's script calls it in 20 places, among them … Imprison (interaction), Dismiss (interaction) and Imprison (interaction). Patch 1.20.1.2, from game/common/scripted_effects/00_education_effects.txt.
What it does
$GUARDIAN$ = { … }- If never:
$WARD$ = { return_ward_travel_effect = yes }
- Otherwise:
guardian_remove_opinion_effect = { GUARDIAN = $GUARDIAN$ WARD = $WARD$ WARD_LIEGE = $WARD$.liege }
• 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 (30 lines of game script)
remove_guardian_effect = {
$GUARDIAN$ = {
remove_relation_ward = $WARD$
return_guardian_travel_effect = {
GUARDIAN = $GUARDIAN$
WARD = $WARD$
}
}
if = {
limit = { always = $RETURN_WARD$ }
$WARD$ = { return_ward_travel_effect = yes }
}
if = {
limit = { always = $HIDE_OPINION$ }
hidden_effect = {
guardian_remove_opinion_effect = {
GUARDIAN = $GUARDIAN$
WARD = $WARD$
WARD_LIEGE = $WARD$.liege
}
}
}
else = {
guardian_remove_opinion_effect = {
GUARDIAN = $GUARDIAN$
WARD = $WARD$
WARD_LIEGE = $WARD$.liege
}
}
}As written in game/common/scripted_effects/00_education_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls remove_guardian_effect.
Character interactions (5)
Events (6)
- A Better Guardian
bp1_yearly.4010 - Budding Ally
hold_court.6070 - char_interaction.0090
- Renegade!
char_interaction.0230 - Transport Contract: Escort Emissary
ep3_contract_event.0011 - Under My Wing
parent.3001
Scripted effects inside an event file (1)
- ep2_locale_events_5000_guardian_effect
Source: game/common/scripted_effects/00_education_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.