Scripted effect · The Royal Court files
petition_liege_variable_cleanup_effect
petition_liege_variable_cleanup_effect = yesgame/common/scripted_effects/00_ep1_hold_court_effects.txt, line 1627 (22 lines). No parameters.
petition_liege_variable_cleanup_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 1627 of its file. It takes no parameters: petition_liege_variable_cleanup_effect = yes. The game's script calls it in 3 places, among them petition_liege.9100 (event), on_travel_plan_abort (on action) and on_travel_plan_cancel (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_hold_court_effects.txt.
The comment above it in the file
Petition Liege Variable Cleanup
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (22 lines of game script)
petition_liege_variable_cleanup_effect = {
if = {
limit = { has_variable = petition_liege_scope }
remove_variable = petition_liege_scope
}
if = {
limit = { has_variable = petition_type }
remove_variable = petition_type
}
if = {
limit = { has_character_flag = petition_liege_character_flag }
remove_character_flag = petition_liege_character_flag
}
if = {
limit = { has_variable_list = available_petitions }
clear_variable_list = available_petitions
}
if = {
limit = { has_variable_list = petitions_to_show }
clear_variable_list = petitions_to_show
}
}As written in game/common/scripted_effects/00_ep1_hold_court_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls petition_liege_variable_cleanup_effect.
Events (1)
On actions (the game's own hooks) (2)
- on_travel_plan_abort
- on_travel_plan_cancel
Source: game/common/scripted_effects/00_ep1_hold_court_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.