decisions = {

	form_kingdom_of_the_isles = {
		is_high_prio = yes
		potential = {
			NOT = {
				k_the_isles = {
					any_previous_holder = {
						count = 1
					}
				}
			}
			is_playable = yes
			tier = DUKE
			NOT = { tier = KING }
			OR = {
				ai = no
				AND = {
					trait = proud
					prestige = 1000
				}
				AND = {
					trait = ambitious
					prestige = 1000
				}
				prestige = 5000
			}
			OR = {
				culture = irish
				culture = norse
				culture = welsh
			}
			OR = {
				34 = { # Shetland
					owner = {
						OR = {
							is_liege_or_above = ROOT
							character = ROOT
						}
					}
				}
				36 = { # Orkney
					owner = {
						OR = {
							is_liege_or_above = ROOT
							character = ROOT
						}
					}
				}
				35 = { # Innse Gall
					owner = {
						OR = {
							is_liege_or_above = ROOT
							character = ROOT
						}
					}
				}
				45 = { # Argyll
					owner = {
						OR = {
							is_liege_or_above = ROOT
							character = ROOT
						}
					}
				}
				54 = { # Isle of Man
					owner = {
						OR = {
							is_liege_or_above = ROOT
							character = ROOT
						}
					}
				}
			}
		}
		allow = {
			is_adult = yes
			prisoner = no
			NOT = { trait = incapable }
			independent = yes
			prestige = 1000
			wealth = 300
			custom_tooltip = {
				text = controls_mann_and_the_isles
				hidden_tooltip = {
					34 = { # Shetland
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					36 = { # Orkney
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					35 = { # Innse Gall
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					45 = { # Argyll
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
					54 = { # Isle of Man
						owner = {
							OR = {
								is_liege_or_above = ROOT
								character = ROOT
							}
						}
					}
				}
			}
		}
		effect = {
			wealth = -300
			custom_tooltip = {
				text = form_kingdom_of_the_isles_tooltip
				hidden_tooltip = {
					primary_title = {
						k_the_isles = {
							copy_title_laws = PREV
							gain_title = ROOT
						}
					}
				}
			}
			chronicle = {
				entry = CHRONICLE_FOUNDED_NEW_KINGDOM_OR_EMPIRE
				portrait = [Root.GetID]
			}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 1
		}
	}
}