Scripted effect · Roads to Power files
admin_government_reset_effect
admin_government_reset_effect = yesgame/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 9977 (44 lines). No parameters.
admin_government_reset_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 9977 of its file. It takes no parameters: admin_government_reset_effect = yes. The game's script calls it in 2 places, among them destroy_laamp_effect (scripted effect) and hasan_sabbah_end_war (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
What it does
- If landed:
If
One of these
- Government is Nomadic
or
Their capital province:One of these
has_holding_type = nomad_holdingor
has_holding_type = herder_holding
Then
- Adopts Nomadic Government
If
None of these
- Any held title:
- If title tier at most County › Their province:
NOT = { has_holding_type = tribal_holding }
- Otherwise:
title_capital_county.title_province ?= { … }
- If title tier at most County › Their province:
- Any held title:
Then
Otherwise
• 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 (44 lines of game script)
admin_government_reset_effect = {
if = {
limit = { is_landed = yes } # error suppression
### NOMADIC
if = {
limit = {
OR = {
government_has_flag = government_is_nomadic
capital_province = {
OR = {
has_holding_type = nomad_holding
has_holding_type = herder_holding
}
}
}
}
change_government = nomad_government
}
### TRIBAL - are all of your holdings Tribal?
if = {
limit = {
NOT = {
any_held_title = {
trigger_if = {
limit = { tier <= tier_county }
title_province ?= {
NOT = { has_holding_type = tribal_holding }
}
}
trigger_else = {
title_capital_county.title_province ?= {
NOT = { has_holding_type = tribal_holding }
}
}
}
}
}
assign_tribal_governments_effect = yes
}
else = {
assign_feudal_governments_effect = yes
}
}
}As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls admin_government_reset_effect.
Scripted effects (2)
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.