Scripted effect · All Under Heaven files
tgp_treasury_enact_hegemon_budget_effect
tgp_treasury_enact_hegemon_budget_effect = yesgame/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 3422 (25 lines). No parameters.
tgp_treasury_enact_hegemon_budget_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 3422 of its file. It takes no parameters: tgp_treasury_enact_hegemon_budget_effect = yes. The game's script calls it in 3 places, among them A Minister's Budget (event tgp_china_ministry.0200), The … Treasury (event tgp_china_ministry.0100) and The … Treasury (event tgp_china_ministry.0101). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.
What it does
- Enact a Treasury Budget with the following: Salary Budget is set to 30% · Ministry Budget is set to 25% · Military Budget is set to 25%
• 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 (25 lines of game script)
tgp_treasury_enact_hegemon_budget_effect = {
custom_tooltip = {
text = tgp_treasury_enact_hegemon_budget_desc
if = {
limit = {
NOT = { has_realm_law = budget_allocation_salary_30 }
}
add_realm_law = budget_allocation_salary_30
}
if = {
limit = {
NOT = { has_realm_law = budget_allocation_ministry_25 }
}
add_realm_law = budget_allocation_ministry_25
}
if = {
limit = {
NOT = { has_realm_law = budget_allocation_military_25 }
}
add_realm_law = budget_allocation_military_25
}
enact_treasury_budgets_no_costs = yes
}
}As written in game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls tgp_treasury_enact_hegemon_budget_effect.
Events (3)
- A Minister's Budget
tgp_china_ministry.0200 - The … Treasury
tgp_china_ministry.0100 - The … Treasury
tgp_china_ministry.0101
Source: game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.