Scripted effect
petition_liege_0101_petitioner_contract_increase_effect
petition_liege_0101_petitioner_contract_increase_effect = yesgame/common/scripted_effects/00_petition_liege_effects.txt, line 1156 (24 lines). No parameters.
petition_liege_0101_petitioner_contract_increase_effect is a scripted effect in Crusader Kings III, written at line 1156 of its file. It takes no parameters: petition_liege_0101_petitioner_contract_increase_effect = yes. The game's script calls it in 2 places, among them Petition: Gold (event petition_liege.0101) and petition_liege_0205_carry_out_effects_effect (local effect). Patch 1.20.1.2, from game/common/scripted_effects/00_petition_liege_effects.txt.
The comment above it in the file
Increase contractual obligations
What it does
If
vassal_contract_obligation_level:feudal_government_levies < vassal_contract_obligation_level:feudal_government_taxesvassal_contract_obligation_level_can_be_increased = feudal_government_levies
Then
vassal_contract_increase_obligation_level = feudal_government_levies
Else if
vassal_contract_obligation_level:feudal_government_taxes < vassal_contract_obligation_level:feudal_government_leviesvassal_contract_obligation_level_can_be_increased = feudal_government_taxes
Then
vassal_contract_increase_obligation_level = feudal_government_taxes
Otherwise
If
vassal_contract_obligation_level_can_be_increased = feudal_government_taxes
Then
vassal_contract_increase_obligation_level = feudal_government_levies
Otherwise
vassal_contract_increase_obligation_level = feudal_government_taxes
• 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 (24 lines of game script)
petition_liege_0101_petitioner_contract_increase_effect = {
if = {
limit = {
vassal_contract_obligation_level:feudal_government_levies < vassal_contract_obligation_level:feudal_government_taxes
vassal_contract_obligation_level_can_be_increased = feudal_government_levies
}
vassal_contract_increase_obligation_level = feudal_government_levies
}
else_if = {
limit = {
vassal_contract_obligation_level:feudal_government_taxes < vassal_contract_obligation_level:feudal_government_levies
vassal_contract_obligation_level_can_be_increased = feudal_government_taxes
}
vassal_contract_increase_obligation_level = feudal_government_taxes
}
else = {
if = {
limit = { vassal_contract_obligation_level_can_be_increased = feudal_government_taxes }
vassal_contract_increase_obligation_level = feudal_government_levies
}
else = { vassal_contract_increase_obligation_level = feudal_government_taxes }
}
hidden_effect = { set_subject_contract_modification_blocked = yes }
}As written in game/common/scripted_effects/00_petition_liege_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls petition_liege_0101_petitioner_contract_increase_effect.
Events (1)
- Petition: Gold
petition_liege.0101
Scripted effects inside an event file (1)
- petition_liege_0205_carry_out_effects_effect
Source: game/common/scripted_effects/00_petition_liege_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.