Scripted effect
remove_single_combat_info_effect
remove_single_combat_info_effect = yesgame/common/scripted_effects/00_single_combat_effects.txt, line 357 (20 lines). No parameters.
remove_single_combat_info_effect is a scripted effect in Crusader Kings III, written at line 357 of its file. It takes no parameters: remove_single_combat_info_effect = yes. The game's script calls it in 3 places, among them Single Combat: … (event single_combat.0001), finalise_combat_results_effect (local effect) and configure_start_single_combat_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_single_combat_effects.txt.
The comment above it in the file
Clean all consequences of a single combat.
What it does
scope:sc_attacker:If
a check the game hides
Then
scope:sc_defender:If
a check the game hides
Then
• 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 (20 lines of game script)
remove_single_combat_info_effect = {
scope:sc_attacker = {
# Only remove variables if they're alive, as otherwise we get errors.
if = {
limit = { is_alive = yes }
remove_single_combat_character_local_variables_effect = yes
remove_single_combat_variables_effect = yes
remove_temporary_modifiers_combat_effect = yes
}
}
scope:sc_defender = {
# Only remove variables if they're alive, as otherwise we get errors.
if = {
limit = { is_alive = yes }
remove_single_combat_character_local_variables_effect = yes
remove_single_combat_variables_effect = yes
remove_temporary_modifiers_combat_effect = yes
}
}
}As written in game/common/scripted_effects/00_single_combat_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls remove_single_combat_info_effect.
Events (1)
- Single Combat: …
single_combat.0001
Scripted effects inside an event file (1)
- finalise_combat_results_effect
Scripted effects (1)
Source: game/common/scripted_effects/00_single_combat_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.