glory_hound_pattern_for = {
	icon = 7
	pattern_type = for
	
	declare_war_interaction = {
		OR = { # Or gloriously attacking a powerful enemy
			custom_tooltip = {
				text = pattern_glory_hound_glorious_war_custom_tooltip
				hidden_tooltip = {
					FROMFROM = { # Defender
						relative_power_including_allies_defender = {
							who = ROOT_FROM # Attacker
							power = 0.9
						}
					}
				}
			}
			
			custom_tooltip = {
				text = pattern_glory_hound_preferred_war_custom_tooltip
				hidden_tooltip = {
					preferred_war_target = {
						character = FROMFROM # Defender
					}	
				}
			}
			
			custom_tooltip = {
				text = pattern_glory_hound_land_grab_custom_tooltip
				hidden_tooltip = {
					NOT = {
						FROM = { # Attacker
							relative_power_including_allies_attacker = {
								who = ROOT_FROMFROM # Defender
								power = 3
							}
						}
					}
					NOR = {
						AND = {
							stored_token_trigger = other_claim
							NOT = {
								FROMFROMFROM = { # Gainer
									OR = {
										is_landed = yes
										dynasty = ROOT_FROM # Attacker
									}
									is_liege_or_above = ROOT_FROM
									ROOT_FROM = { # Attacker
										primary_title = {
											higher_tier_than = ROOT_FROMFROMFROMFROM # Thirdparty_title
										}
									}
								}
							}
						}
						stored_token_trigger = claim_on_liege_plot
						stored_token_trigger = other_claim_on_liege_plot
						stored_token_trigger = crusade
						stored_token_trigger = excommunicated_ruler
						stored_token_trigger = bid_for_independence
						stored_token_trigger = depose_liege
						stored_token_trigger = overthrow_ruler
						stored_token_trigger = overthrow_ruler_no_calls
						stored_token_trigger = embargo_cb
						stored_token_trigger = depose_antipope
						stored_token_trigger = cb_install_antiking
					}	
				}
			}
		}
	}
	
	law_voting_power_0 = { always = no }
	law_voting_power_1 = { always = yes }
	banish_voting_power_0 = { always = no }
	banish_voting_power_1 = { always = yes }
	execution_voting_power_0 = { always = no }
	execution_voting_power_1 = { always = yes }
	revoke_title_voting_power_0 = { always = no }
	revoke_title_voting_power_1 = { always = yes }
	grant_title_voting_power_0 = { always = no }
	grant_title_voting_power_1 = { always = yes }
	imprison_voting_power_0 = { always = no }
	imprison_voting_power_1 = { always = yes }
	war_voting_power_0 = { always = no }
	war_voting_power_1 = { always = yes }
#	succession_voting_power_0 = { always = no }
#	succession_voting_power_1 = { always = yes }
	kings_peace_0 = { always = yes }
	kings_peace_1 = { always = no }
	kings_peace_2 = { always = no }
	
	culture_conversion_0 = { NOT = { culture = FROM } }
	culture_conversion_1 = { culture = FROM }
	culture_conversion_2 = { culture = FROM }
	
	vice_royalty_0 = {
		is_feudal = yes
		liege = {
			primary_title = {
				OR = {
					has_law = vice_royalty_1
					has_law = vice_royalty_2
				}
			}
		}
	}
	vice_royalty_1 = {
		is_feudal = yes
		liege = {
			primary_title = {
				has_law = vice_royalty_2
			}
		}
	}
	vice_royalty_2 = { always = no }
	feudal_administration = { always = yes }
	late_feudal_administration = { always = yes }
	imperial_administration = { always = no }
	out_of_realm_inheritance_law_0 = { always = yes }
	out_of_realm_inheritance_law_1 = { always = no }
	investiture_law_0 = { always = no }
	investiture_law_1 = { always = yes }
	
	crown_authority_0 = {
		always = yes
	}
	crown_authority_1 = { 
		FROMFROM = { has_law = crown_authority_2 }
		is_feudal = yes 
	}
	crown_authority_2 = { 
		FROMFROM = { has_law = crown_authority_3 }
		is_feudal = yes 
	}
	crown_authority_3 = {
		FROMFROM = { has_law = crown_authority_4 }
		is_feudal = yes
	}
	crown_authority_4 = {
		always = no
	}
	
	feudal_slider_4 = {
		is_feudal = yes
	}
	feudal_slider_3 = {
		FROMFROM = { has_law = feudal_slider_2 }
		is_feudal = yes 
	}		
	feudal_slider_2 = {
		FROMFROM = { has_law = feudal_slider_1 }
		is_feudal = yes 
	}
	feudal_slider_1 = {
		FROMFROM = { has_law = feudal_slider_0 }
		is_feudal = yes 
	}
	feudal_slider_0 = {
		always = no
	}
	temple_slider_4 = {
		is_republic = yes
	}
	temple_slider_3 = {
		FROMFROM = { has_law = temple_slider_4 }
		is_theocracy = yes 
	}
	temple_slider_2 = {
		is_theocracy = yes 
	}
	temple_slider_1 = {
		FROMFROM = { has_law = temple_slider_0 }
		is_theocracy = yes 
	}
	temple_slider_0 = {
		is_feudal = yes
	}
	city_slider_0 = {
		is_republic = yes 
	}
	city_slider_1 = {
		FROMFROM = { has_law = city_slider_2 }
		is_republic = yes 
	}
	city_slider_2 = {
		FROMFROM = { has_law = city_slider_3 }
		is_republic = yes 
	}
	city_slider_3 = {
		FROMFROM = { has_law = city_slider_4 }
		is_republic = yes 
	}
	city_slider_4 = {
		always = no
	}
	iqta_slider_4 = {
		is_feudal = yes
	}
	iqta_slider_3 = {
		FROMFROM = { has_law = iqta_slider_2 }
		is_feudal = yes 
	}
	iqta_slider_2 = {
		FROMFROM = { has_law = iqta_slider_1 }
		is_feudal = yes 
	}
	iqta_slider_1 = {
		FROMFROM = { has_law = iqta_slider_0 }
		is_feudal = yes 
	}
	iqta_slider_0 = {
		always = no
	}
	tribal_slider_0 = {
		is_tribal = yes
	}
	tribal_slider_1 = {
		FROMFROM = { has_law = tribal_slider_2 }
		is_tribal = yes 
	}
	tribal_slider_2 = {
		FROMFROM = { has_law = tribal_slider_3 }
		is_tribal = yes 
	}
	tribal_slider_3 = {
		FROMFROM = { has_law = tribal_slider_4 }
		is_tribal = yes 
	}
	tribal_slider_4 = {
		always = no
	}

	feudal_obligations_0 = {
		is_feudal = yes
	}
	feudal_obligations_1 = {
		FROMFROM = { has_law = feudal_obligations_2 }
		is_feudal = yes 
	}		
	feudal_obligations_2 = {
		FROMFROM = { has_law = feudal_obligations_3 }
		is_feudal = yes 
	}
	feudal_obligations_3 = {
		FROMFROM = { has_law = feudal_obligations_4 }
		is_feudal = yes 
	}
	feudal_obligations_4 = {
		always = no
	}
	temple_obligations_0 = {
		is_theocracy = yes
	}
	temple_obligations_1 = {
		FROMFROM = { has_law = temple_obligations_2 }
		is_theocracy = yes 
	}
	temple_obligations_2 = {
		FROMFROM = { has_law = temple_obligations_3 }
		is_theocracy = yes 
	}
	temple_obligations_3 = {
		FROMFROM = { has_law = temple_obligations_4 }
		is_theocracy = yes 
	}
	temple_obligations_4 = {
		always = no
	}
	city_obligations_0 = {
		is_republic = yes 
	}
	city_obligations_1 = {
		FROMFROM = { has_law = city_obligations_2 }
		is_republic = yes 
	}
	city_obligations_2 = {
		FROMFROM = { has_law = city_obligations_3 }
		is_republic = yes 
	}
	city_obligations_3 = {
		FROMFROM = { has_law = city_obligations_4 }
		is_republic = yes 
	}
	city_obligations_4 = {
		always = no
	}
	iqta_obligations_0 = {
		is_feudal = yes
	}
	iqta_obligations_1 = {
		FROMFROM = { has_law = iqta_obligations_2 }
		is_feudal = yes 
	}
	iqta_obligations_2 = {
		FROMFROM = { has_law = iqta_obligations_3 }
		is_feudal = yes 
	}
	iqta_obligations_3 = {
		FROMFROM = { has_law = iqta_obligations_4 }
		is_feudal = yes 
	}
	iqta_obligations_4 = {
		always = no
	}
	tribal_obligations_0 = {
		is_tribal = yes
	}
	tribal_obligations_1 = {
		FROMFROM = { has_law = tribal_obligations_2 }
		is_tribal = yes 
	}
	tribal_obligations_2 = {
		FROMFROM = { has_law = tribal_obligations_3 }
		is_tribal = yes 
	}
	tribal_obligations_3 = {
		FROMFROM = { has_law = tribal_obligations_4 }
		is_tribal = yes 
	}
	tribal_obligations_4 = {
		always = no
	}
	
	tribal_organization_0 = {
		OR = {
			is_reformed_pagan_religion = no
			is_tribal = yes
		}
	}
	tribal_organization_1 = { 
		OR = { 
			FROMFROM = { has_law = tribal_organization_2 } 
			OR = {
				is_reformed_pagan_religion = yes
				is_pagan_religion = no
			}
			is_tribal = no
		}
	}
	tribal_organization_2 = { 
		OR = { 
			FROMFROM = { has_law = tribal_organization_3 } 
			OR = {
				is_reformed_pagan_religion = yes
				is_pagan_religion = no
			}
			is_tribal = no
		}
	}
	tribal_organization_3 = { 
		OR = { 
			FROMFROM = { has_law = tribal_organization_4 } 
			OR = {
				is_reformed_pagan_religion = yes
				is_pagan_religion = no
			}
			is_tribal = no
		}
	}
	tribal_organization_4 = {
		OR = {
			OR = {
				is_reformed_pagan_religion = yes
				is_pagan_religion = no
			}
			is_tribal = no
		}
	}
	
	female_council_law_0 = { 
		is_female = yes
		NOT = { has_law = female_council_law_1 }
	}
	female_council_law_1 = { 
		is_female = yes
		NOT = { has_law = female_council_law_2 }
	}
	female_council_law_2 = { 
		is_female = yes
		NOT = { has_law = female_council_law_3 }
	}
	female_council_law_3 = { 
		is_female = yes
		NOT = { has_law = female_council_law_4 }
	}
	female_council_law_4 = { 
		is_female = yes
	}
}

glory_hound_pattern_against = {
	icon = 7
	pattern_type = against
	
	declare_war_interaction = {
		custom_tooltip = {
			text = pattern_glory_hound_opponent_too_weak_custom_tooltip
			hidden_tooltip = {
				NOT = { # Attacking a weak enemy
					FROMFROM = { # Defender
						relative_power_including_allies_defender = {
							who = ROOT_FROM # Attacker
							power = 0.3
						}
					}
				}
			}
		}
	}
	
	law_voting_power_0 = { always = yes }
	law_voting_power_1 = { always = no }
	banish_voting_power_0 = { always = yes }
	banish_voting_power_1 = { always = no }
	execution_voting_power_0 = { always = yes }
	execution_voting_power_1 = { always = no }
	revoke_title_voting_power_0 = {	always = yes }
	revoke_title_voting_power_1 = {	always = no	}
	grant_title_voting_power_0 = { always = yes	}
	grant_title_voting_power_1 = { always = no }
	imprison_voting_power_0 = {	always = yes }
	imprison_voting_power_1 = {	always = no	}
	war_voting_power_0 = { always = yes }
	war_voting_power_1 = { always = no }
#	succession_voting_power_0 = { always = yes }
#	succession_voting_power_1 = { always = no }
	kings_peace_0 = { always = no }
	kings_peace_1 = { always = yes }
	kings_peace_2 = { always = yes }
	
	culture_conversion_0 = { culture = FROM }
	culture_conversion_1 = { NOT = { culture = FROM } }
	culture_conversion_2 = { NOT = { culture = FROM } }
	
	vice_royalty_0 = { always = no }
	vice_royalty_1 = {
		is_feudal = yes
		liege = {
			primary_title = {
				has_law = vice_royalty_0
			}
		}
	}
	vice_royalty_2 = {
		is_feudal = yes
		liege = {
			primary_title = {
				has_law = vice_royalty_1
			}
		}
	}
	feudal_administration = { always = no }
	late_feudal_administration = { always = no }
	imperial_administration = { always = yes }
	out_of_realm_inheritance_law_0 = { always = no }
	out_of_realm_inheritance_law_1 = { always = yes }
	investiture_law_0 = { always = yes }
	investiture_law_1 = { always = no }
	
	crown_authority_0 = {
		always = no
	}
	crown_authority_1 = { 
		FROMFROM = { has_law = crown_authority_0 }
		is_feudal = yes 
	}
	crown_authority_2 = { 
		FROMFROM = { has_law = crown_authority_1 }
		is_feudal = yes 
	}
	crown_authority_3 = {
		FROMFROM = { has_law = crown_authority_2 }
		is_feudal = yes
	}
	crown_authority_4 = {
		always = yes
	}
	
	feudal_slider_4 = {
		always = no
	}
	feudal_slider_3 = {
		FROMFROM = { has_law = feudal_slider_2 }
		is_feudal = yes 
	}		
	feudal_slider_2 = {
		FROMFROM = { has_law = feudal_slider_1 }
		is_feudal = yes 
	}
	feudal_slider_1 = {
		FROMFROM = { has_law = feudal_slider_0 }
		is_feudal = yes 
	}
	feudal_slider_0 = {
		always = yes
	}
	temple_slider_0 = {
		always = yes
	}
	temple_slider_3 = {
		FROMFROM = { has_law = temple_slider_2 }
		is_theocracy = yes 
	}
	temple_slider_2 = {
		always = no
	}
	temple_slider_1 = {
		FROMFROM = { has_law = temple_slider_2 }
		is_theocracy = yes 
	}
	temple_slider_4 = {
		always = yes
	}
	city_slider_0 = {
		always = no
	}
	city_slider_1 = {
		FROMFROM = { has_law = city_slider_0 }
		is_republic = yes 
	}
	city_slider_2 = {
		FROMFROM = { has_law = city_slider_1 }
		is_republic = yes 
	}
	city_slider_3 = {
		FROMFROM = { has_law = city_slider_2 }
		is_republic = yes 
	}
	city_slider_4 = {
		always = yes
	}
	iqta_slider_4 = {
		always = no
	}
	iqta_slider_3 = {
		FROMFROM = { has_law = iqta_slider_4 }
		is_feudal = yes 
	}
	iqta_slider_2 = {
		FROMFROM = { has_law = iqta_slider_3 }
		is_feudal = yes 
	}
	iqta_slider_1 = {
		FROMFROM = { has_law = iqta_slider_2 }
		is_feudal = yes 
	}
	iqta_slider_0 = {
		always = yes
	}
	tribal_slider_0 = {
		always = no
	}
	tribal_slider_1 = {
		FROMFROM = { has_law = tribal_slider_0 }
		is_tribal = yes 
	}
	tribal_slider_2 = {
		FROMFROM = { has_law = tribal_slider_1 }
		is_tribal = yes 
	}
	tribal_slider_3 = {
		FROMFROM = { has_law = tribal_slider_2 }
		is_tribal = yes 
	}
	tribal_slider_4 = {
		always = yes
	}
	
	feudal_obligations_0 = {
		always = no
	}
	feudal_obligations_1 = {
		FROMFROM = { has_law = feudal_obligations_0 } 
		is_feudal = yes 
	}
	feudal_obligations_2 = {
		FROMFROM = { has_law = feudal_obligations_1 } 
		is_feudal = yes 
	}
	feudal_obligations_3 = {
		FROMFROM = { has_law = feudal_obligations_2 } 
		is_feudal = yes 
	}
	feudal_obligations_4 = {
		always = yes
	}
	temple_obligations_0 = {
		always = no
	}
	temple_obligations_1 = {
		FROMFROM = { has_law = temple_obligations_0 } 
		is_theocracy = yes 
	}
	temple_obligations_2 = {
		FROMFROM = { has_law = temple_obligations_1 } 
		is_theocracy = yes 
	}
	temple_obligations_3 = {
		FROMFROM = { has_law = temple_obligations_2 } 
		is_theocracy = yes 
	}
	temple_obligations_4 = {
		always = yes
	}
	city_obligations_0 = {
		always = no
	}
	city_obligations_1 = {
		FROMFROM = { has_law = city_obligations_0 } 
		is_republic = yes 
	}
	city_obligations_2 = {
		FROMFROM = { has_law = city_obligations_1 } 
		is_republic = yes 
	}
	city_obligations_3 = {
		FROMFROM = { has_law = city_obligations_2 } 
		is_republic = yes 
	}
	city_obligations_4 = {
		always = yes
	}
	iqta_obligations_0 = {
		always = no
	}
	iqta_obligations_1 = {
		FROMFROM = { has_law = iqta_obligations_0 } 
		is_feudal = yes 
	}
	iqta_obligations_2 = {
		FROMFROM = { has_law = iqta_obligations_1 } 
		is_feudal = yes 
	}
	iqta_obligations_3 = {
		FROMFROM = { has_law = iqta_obligations_2 } 
		is_feudal = yes 
	}
	iqta_obligations_4 = {
		always = yes
	}
	tribal_obligations_0 = {
		always = no
	}
	tribal_obligations_1 = {
		FROMFROM = { has_law = tribal_obligations_0 } 
		is_tribal = yes 
	}
	tribal_obligations_2 = {
		FROMFROM = { has_law = tribal_obligations_1 } 
		is_tribal = yes 
	}
	tribal_obligations_3 = {
		FROMFROM = { has_law = tribal_obligations_2 } 
		is_tribal = yes 
	}
	tribal_obligations_4 = {
		always = yes
	}
	
	
	tribal_organization_0 = {
		NOR = {
			is_reformed_pagan_religion = no
			is_tribal = yes
		}
	}
	tribal_organization_1 = { 
		NOR = { 
			FROMFROM = { has_law = tribal_organization_2 } 
			OR = {
				is_reformed_pagan_religion = yes
				is_pagan_religion = no
			}
			is_tribal = no
		}
	}
	tribal_organization_2 = { 
		NOR = { 
			FROMFROM = { has_law = tribal_organization_3 } 
			OR = {
				is_reformed_pagan_religion = yes
				is_pagan_religion = no
			}
			is_tribal = no
		}
	}
	tribal_organization_3 = { 
		NOR = { 
			FROMFROM = { has_law = tribal_organization_4 } 
			OR = {
				is_reformed_pagan_religion = yes
				is_pagan_religion = no
			}
			is_tribal = no
		}
	}
	tribal_organization_4 = { 
		NOR = {
			OR = {
				is_reformed_pagan_religion = yes
				is_pagan_religion = no
			}
			is_tribal = no
		}
	}
	
	revoke_title_law_0 = {
		NOT = {
			opinion = {
				who = liege
				value = 59
			}
		}
	}
	revoke_title_law_1 = {
		NOT = {
			opinion = {
				who = liege
				value = 59
			}
		}
	}
	revoke_title_law_2 = {
		NOT = {
			opinion = {
				who = liege
				value = 59
			}
		}
	}
	
	female_council_law_0 = { 
		always = no
	}
	female_council_law_1 = { 
		NOT = { has_law = female_council_law_2 }
	}
	female_council_law_2 = { 
		NOT = { has_law = female_council_law_3 }
	}
	female_council_law_3 = { 
		NOT = { has_law = female_council_law_4 }
	}
	female_council_law_4 = { 
		always = yes
	}	
	
	imprison_character_interaction = {
		OR = {
			custom_tooltip = {
				text = pattern_glory_hound_weakening_ruling_dynasty_tooltip
				hidden_tooltip = {
					liege = {
						FROMFROM = {
							dynasty = PREV
						}
					}	
				}
			}
			custom_tooltip = {
				text = pattern_glory_hound_defenseless_child_tooltip
				hidden_tooltip = {
					FROMFROM = {
						is_adult = no
					}
				}
			}
			custom_tooltip = {
				text = pattern_glory_hound_weakening_powerful_vassal_tooltip
				hidden_tooltip = {
					liege = {
						OR = {
							AND = {
								primary_title = {
									tier = emperor
								}
								FROMFROM = {
									among_most_powerful_vassals = 6
								}
							}
							AND = {
								primary_title = {
									tier = king
								}
								FROMFROM = {
									among_most_powerful_vassals = 5
								}
							}
							AND = {
								primary_title = {
									lower_tier_than = king
								}
								FROMFROM = {
									among_most_powerful_vassals = 4
								}
							}
						}
					}
				}
			}
		}
	}
	exile_imprisoned_interaction = {
		OR = {
			custom_tooltip = {
				text = pattern_glory_hound_weakening_ruling_dynasty_tooltip
				hidden_tooltip = {
					liege = {
						FROMFROM = {
							dynasty = PREV
						}
					}	
				}
			}
			custom_tooltip = {
				text = pattern_glory_hound_defenseless_child_tooltip
				hidden_tooltip = {
					FROMFROM = {
						is_adult = no
					}
				}
			}
			custom_tooltip = {
				text = pattern_glory_hound_weakening_powerful_vassal_tooltip
				hidden_tooltip = {
					liege = {
						OR = {
							AND = {
								primary_title = {
									tier = emperor
								}
								FROMFROM = {
									among_most_powerful_vassals = 6
								}
							}
							AND = {
								primary_title = {
									tier = king
								}
								FROMFROM = {
									among_most_powerful_vassals = 5
								}
							}
							AND = {
								primary_title = {
									lower_tier_than = king
								}
								FROMFROM = {
									among_most_powerful_vassals = 4
								}
							}
						}
					}
				}
			}
		}
	}
	execute_imprisoned_interaction = {
		OR = {
			custom_tooltip = {
				text = pattern_glory_hound_weakening_ruling_dynasty_tooltip
				hidden_tooltip = {
					liege = {
						FROMFROM = {
							dynasty = PREV
						}
					}	
				}
			}
			custom_tooltip = {
				text = pattern_glory_hound_defenseless_child_tooltip
				hidden_tooltip = {
					FROMFROM = {
						is_adult = no
					}
				}
			}
			custom_tooltip = {
				text = pattern_glory_hound_weakening_powerful_vassal_tooltip
				hidden_tooltip = {
					same_liege = FROMFROM
					liege = {
						OR = {
							AND = {
								primary_title = {
									tier = emperor
								}
								FROMFROM = {
									among_most_powerful_vassals = 6
								}
							}
							AND = {
								primary_title = {
									tier = king
								}
								FROMFROM = {
									among_most_powerful_vassals = 5
								}
							}
							AND = {
								primary_title = {
									lower_tier_than = king
								}
								FROMFROM = {
									among_most_powerful_vassals = 4
								}
							}
						}
					}
				}
			}
		}
	}
	revoke_title_interaction = {
		custom_tooltip = {
			text = pattern_glory_hound_weakening_powerful_vassal_tooltip
			hidden_tooltip = {
				liege = {
					OR = {
						AND = {
							primary_title = {
								tier = emperor
							}
							FROMFROM = {
								among_most_powerful_vassals = 6
							}
						}
						AND = {
							primary_title = {
								tier = king
							}
							FROMFROM = {
								among_most_powerful_vassals = 5
							}
						}
						AND = {
							primary_title = {
								lower_tier_than = king
							}
							FROMFROM = {
								among_most_powerful_vassals = 4
							}
						}
					}
				}
			}
		}
	}
}