faction_pattern_for = {
	icon = 9
	pattern_type = for
	
	declare_war_interaction = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = { in_faction = faction_glory }
		}
	}
	
	enforce_peace = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = { in_faction = faction_prosperity }
		}
	}
	
	grant_landed_title_interaction = {
		custom_tooltip = {
			text = pattern_interaction_faction_member_custom_tooltip
			hidden_tooltip = {
				OR = {
					AND = {
						in_faction = faction_court
						FROMFROM = { in_faction = faction_court }
					}
					AND = {
						in_faction = faction_prosperity
						FROMFROM = { in_faction = faction_prosperity }
					}
					AND = {
						in_faction = faction_glory
						FROMFROM = { in_faction = faction_glory }
					}
					AND = {
						in_faction = faction_tradition
						FROMFROM = { in_faction = faction_tradition }
					}
				}
			}
		}
	}
	
	tribal_organization_0 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = { in_faction = faction_court }
		}
	}
	tribal_organization_1 = { 
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				OR = {
					AND = {
						FROMFROM = { has_law = tribal_organization_2 }
						in_faction = faction_court
					}
					AND = {
						FROMFROM = { has_law = tribal_organization_0 }
						in_faction = faction_prosperity
					}
				}
			}
		}
	}
	tribal_organization_2 = { 
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				OR = {
					AND = {
						FROMFROM = { has_law = tribal_organization_3 }
						OR = {
							in_faction = faction_court
							in_faction = faction_tradition
						}
					}
					AND = {
						FROMFROM = { has_law = tribal_organization_1 }
						in_faction = faction_prosperity
					}
				}
			}
		}
	}
	tribal_organization_3 = { 
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				OR = {
					AND = {
						FROMFROM = { has_law = tribal_organization_4 }
						OR = {
							in_faction = faction_court
							in_faction = faction_tradition
						}
					}
					AND = {
						FROMFROM = { has_law = tribal_organization_2 }
						in_faction = faction_prosperity
					}
				}
			}
		}
	}
	tribal_organization_4 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = { in_faction = faction_prosperity }
		}
	}
	
	council_privileges_1 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = { in_faction = faction_tradition }
		}
	}
	
	feudal_obligations_0 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	feudal_obligations_1 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = feudal_obligations_2 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	feudal_obligations_2 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = feudal_obligations_3 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	feudal_obligations_3 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = feudal_obligations_4 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
					in_faction = faction_prosperity
				}
			}
		}
	}
	temple_obligations_0 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = { in_faction = faction_tradition }
		}
	}
	temple_obligations_1 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = temple_obligations_2 }
				in_faction = faction_tradition
			}
		}
	}
	temple_obligations_2 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = temple_obligations_3 }
				in_faction = faction_tradition
			}
		}
	}
	temple_obligations_3 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = temple_obligations_4 }
				OR = {
					in_faction = faction_tradition
					in_faction = faction_prosperity
				}
			}
		}
	}
	city_obligations_0 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = { in_faction = faction_prosperity }
		}
	}
	city_obligations_1 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = city_obligations_2 }
				in_faction = faction_prosperity
			}
		}
	}
	city_obligations_2 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = city_obligations_3 }
				in_faction = faction_prosperity
			}
		}
	}
	city_obligations_3 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = city_obligations_4 }
				in_faction = faction_prosperity
			}
		}
	}
	iqta_obligations_0 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	iqta_obligations_1 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = iqta_obligations_2 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	iqta_obligations_2 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = iqta_obligations_3 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	iqta_obligations_3 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = iqta_obligations_4 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
					in_faction = faction_prosperity
				}
			}
		}
	}
	tribal_obligations_0 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	tribal_obligations_1 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = tribal_obligations_2 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	tribal_obligations_2 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = tribal_obligations_3 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	tribal_obligations_3 = {
		custom_tooltip = {
			text = pattern_interaction_in_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = tribal_obligations_4 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
					in_faction = faction_prosperity
				}
			}
		}
	}
}

faction_pattern_against = {
	icon = 10
	pattern_type = against
	
	enforce_peace = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = { in_faction = faction_glory }
		}
	}
	
	revoke_title_interaction = {
		custom_tooltip = {
			text = pattern_interaction_faction_member_custom_tooltip
			hidden_tooltip = {
				OR = {
					AND = {
						in_faction = faction_court
						FROMFROM = { in_faction = faction_court }
					}
					AND = {
						in_faction = faction_prosperity
						FROMFROM = { in_faction = faction_prosperity }
					}
					AND = {
						in_faction = faction_glory
						FROMFROM = { in_faction = faction_glory }
					}
					AND = {
						in_faction = faction_tradition
						FROMFROM = { in_faction = faction_tradition }
					}
				}
			}
		}
	}

	tribal_organization_0 = { 
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = { in_faction = faction_prosperity }
		}
	}	
	tribal_organization_1 = { 
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				OR = {
					AND = {
						FROMFROM = { has_law = tribal_organization_0 }
						in_faction = faction_court
					}
					AND = {
						FROMFROM = { has_law = tribal_organization_2 }
						in_faction = faction_prosperity
					}
				}
			}
		}
	}
	tribal_organization_2 = { 
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				OR = {
					AND = {
						FROMFROM = { has_law = tribal_organization_1 }
						in_faction = faction_court
					}
					AND = {
						FROMFROM = { has_law = tribal_organization_3 }
						in_faction = faction_prosperity
					}
				}
			}
		}
	}
	tribal_organization_3 = { 
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				OR = {
					AND = {
						FROMFROM = { has_law = tribal_organization_2 }
						OR = {
							in_faction = faction_court
							in_faction = faction_tradition
						}
					}
					AND = {
						FROMFROM = { has_law = tribal_organization_4 }
						in_faction = faction_prosperity
					}
				}
			}
		}
	}
	tribal_organization_4 = { 
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				OR = {
					in_faction = faction_court
					in_faction = faction_tradition
				}
			}
		}
	}
	
	council_privileges_0 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = { in_faction = faction_tradition }
		}
	}
	
	feudal_obligations_1 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = feudal_obligations_0 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	feudal_obligations_2 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = feudal_obligations_1 }
				in_faction = faction_court
			}
		}
	}
	feudal_obligations_3 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = feudal_obligations_2 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	feudal_obligations_4 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
					in_faction = faction_prosperity
				}
			}
		}
	}
	temple_obligations_1 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = temple_obligations_0 }
				in_faction = faction_tradition
			}
		}
	}
	temple_obligations_2 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = temple_obligations_1 }
				in_faction = faction_tradition
			}
		}
	}
	temple_obligations_3 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = temple_obligations_2 }
				in_faction = faction_tradition
			}
		}
	}
	temple_obligations_4 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				OR = {
					in_faction = faction_tradition
					in_faction = faction_prosperity
				}
			}
		}
	}
	city_obligations_1 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = city_obligations_0 }
				in_faction = faction_prosperity
			}
		}
	}
	city_obligations_2 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = city_obligations_1 }
				in_faction = faction_prosperity
			}
		}
	}
	city_obligations_3 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = city_obligations_2 }
				in_faction = faction_prosperity
			}
		}
	}
	city_obligations_4 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = { in_faction = faction_prosperity }
		}
	}
	iqta_obligations_1 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = iqta_obligations_0 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	iqta_obligations_2 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = iqta_obligations_1 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	iqta_obligations_3 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = iqta_obligations_2 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	iqta_obligations_4 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
					in_faction = faction_prosperity
				}
			}
		}
	}
	tribal_obligations_1 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = tribal_obligations_0 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	tribal_obligations_2 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = tribal_obligations_1 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	tribal_obligations_3 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				FROMFROM = { has_law = tribal_obligations_2 }
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
				}
			}
		}
	}
	tribal_obligations_4 = {
		custom_tooltip = {
			text = pattern_interaction_not_faction_interest_custom_tooltip
			hidden_tooltip = {
				OR = {
					in_faction = faction_court
					in_faction = faction_glory
					in_faction = faction_prosperity
				}
			}
		}
	}
}