CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · Roads to Power files

admin_government_reset_effect

admin_government_reset_effect = yes

game/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

• 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.

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.

Spotted a mistake on this page?