﻿### ACTIVITY INVITE RULES ###

#Try to get more good men to attend
activity_invite_rule_zgc_married = {
	effect = {
		# Family
		every_close_or_extended_family_member = {
			limit = {
				has_character_flag = zgc_just_married
				is_married = yes
				is_adult = yes
			}
			add_to_list = characters
			every_spouse = {
				limit = {
					has_character_flag = zgc_just_married
					is_married = yes
					is_adult = yes
				}
				add_to_list = characters	
			}
		}
		# Courtiers
		every_courtier_or_guest = {
			limit = {
				has_character_flag = zgc_just_married
				is_married = yes
				is_lowborn = no
				is_adult = yes
			}
			add_to_list = characters
			every_spouse = {
				limit = {
					has_character_flag = zgc_just_married
					is_married = yes
					is_lowborn = no
					is_adult = yes
				}
				add_to_list = characters	
			}
		}
		# Vassals Courtiers
		every_vassal_or_below = {
			limit = {
				has_character_flag = zgc_just_married
				is_married = yes
				is_adult = yes
			}
			add_to_list = characters
			every_spouse = {
				limit = {
					has_character_flag = zgc_just_married
					is_married = yes
					is_adult = yes
				}
				add_to_list = characters	
			}
		}

		#Neighboring Rulers
		every_neighboring_and_across_water_top_liege_realm_owner = {
			limit = {
				has_character_flag = zgc_just_married
				is_married = yes
				is_adult = yes
			}
			add_to_list = characters
			every_spouse = {
				limit = {
					has_character_flag = zgc_just_married
					is_married = yes
					is_adult = yes
				}
				add_to_list = characters	
			}
		}
		# Liege 
		liege ?= {
			if = {
				limit = {
					has_character_flag = zgc_just_married
					is_married = yes
					is_adult = yes
				}
				add_to_list = characters
				every_spouse = {
					limit = {
						has_character_flag = zgc_just_married
						is_married = yes
						is_adult = yes
					}
					add_to_list = characters	
				}
			}
		}
		
		# Fellow Vassals
		if = {
			limit = {
				is_independent_ruler = no
			}
			liege = {
				every_vassal = {
					limit = {
						has_character_flag = zgc_just_married
						is_married = yes
						is_lowborn = no
						is_adult = yes
					}
					add_to_list = characters
				}
				every_spouse = {
					limit = {
						has_character_flag = zgc_just_married
						is_married = yes
						is_lowborn = no
						is_adult = yes
					}
					add_to_list = characters	
				}
			}
		}
	}
}