Scripted effect
invalidation_imprisoned_effect
invalidation_imprisoned_effect = yesgame/common/scripted_effects/00_activity_effects.txt, line 4771 (14 lines). No parameters.
invalidation_imprisoned_effect is a scripted effect in Crusader Kings III, written at line 4771 of its file. It takes no parameters: invalidation_imprisoned_effect = yes. The game's script calls it in 16 places, among them Camp Revelry (activity), Capital Examination (activity) and Chariot Race (activity). Patch 1.20.1.2, from game/common/scripted_effects/00_activity_effects.txt.
What it does
If
- scope:host: Is imprisoned
- scope:activity: Does not have “invalidation effect set” (a variable the game's script sets)
Then
- scope:host: Event activity_system.0550
- Every attending character: Event activity_system.0551
• 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 (14 lines of game script)
invalidation_imprisoned_effect = {
if = {
limit = {
scope:host = { is_imprisoned = yes }
scope:activity = { NOT = { has_variable = invalidation_effect_set } }
}
scope:activity = {
set_variable = { name = invalidation_effect_set }
activity_type = { save_scope_as = activity_type }
}
scope:host = { trigger_event = activity_system.0550 }
every_attending_character = { trigger_event = activity_system.0551 }
}
}As written in game/common/scripted_effects/00_activity_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls invalidation_imprisoned_effect.
Source: game/common/scripted_effects/00_activity_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.