law_groups = {
	appointment = {
		law_type = realm
		allowed_for_councillors = yes
	}
}

de_jure_laws = {
	appointment_0 = {
		group = appointment
		default = yes
		
		potential = {
			holder_scope = {
				is_tribal = no
				is_nomadic = no
				is_republic = no
				NOT = {
					government = order_government
				}
			}
		}
		
		allow = {
			has_law = appointment_1
		}
		
		revoke_allowed = {
			always = no
		}
		
		ai_will_do = {
			factor = 0
		}
		
		ai_will_revoke = {
			factor = 0
		}
		
		effect = {
			hidden_tooltip = {
				revoke_law = appointment_1
				any_realm_character = {
					if = {
						limit = {
							has_character_modifier = appointed_noble
						}
						remove_character_modifier = appointed_noble
					}
				}
			}
		}
	}
	appointment_1 = {
		group = appointment
		default = yes
		
		potential = {
			holder_scope = {
				is_tribal = no
				is_nomadic = no
				is_republic = no
				NOT = {
					government = order_government
				}
			}
		}
		
		allow = {
			has_law = appointment_0
		}
		
		revoke_allowed = {
			always = no
		}
		
		ai_will_do = {
			factor = 1
			modifier = {
				factor = 0.05
				always = yes
			}
		}
		
		ai_will_revoke = {
			factor = 0
		}
		
		effect = {
			hidden_tooltip = {
				revoke_law = appointment_0
			}
		}
	}
}