decisions = {

    reveal_ritz_crackers = {
	    is_playable = yes
		ai = no

		potential = {
        has_character_flag = hide_ritz_crackers
		}

		allow = {
			always = yes
		}
		effect = {
		clr_character_flag = hide_ritz_crackers

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	hide_ritz_crackers = {
	    is_playable = yes
		ai = no

		potential = {
        NOT = { has_character_flag = hide_ritz_crackers }
		}

		allow = {
			always = yes
		}
		effect = {
		set_character_flag = hide_ritz_crackers

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}

	reset_ritz_crackers = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		}
		allow = {
		}
		effect = {
		remove_special_character_title = yes

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_become_crusader_kings_two = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		trait = crusader_king
		trait = crusader_queen
		AND = {
		higher_tier_than = DUKE
		trait = crusader
		}
		}
		trait = lunatic
		}
		allow = {
		}
		effect = {
		set_special_character_title = ritz_crusader_kings_two

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
    ritz_crackers_become_crusader_king = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		trait = crusader_king
		trait = crusader_queen
		AND = {
		higher_tier_than = DUKE
		trait = crusader
		}
		}
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_crusader_king
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_crusader_queen
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	
	ritz_crackers_four = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		higher_tier_than = COUNT
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_queen
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_king
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_six = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		higher_tier_than = KING
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_empress
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_emperor
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	
	ritz_crackers_zero = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_baron
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_baroness
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_one = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_count
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_countess
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_two = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		higher_tier_than = COUNT
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_duke
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_duchess
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_three = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		higher_tier_than = COUNT
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_king
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_queen
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_five = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		higher_tier_than = KING
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_emperor
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_empress
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_twentynine = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		higher_tier_than = KING
		any_demesne_title = {
		OR = {
		has_law = succ_feudal_elective
		has_law = succ_hre_elective
		}
		}
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_prince_emperor
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_princess_empress
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_seven = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		higher_tier_than = COUNT
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_prince
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_princess
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_eight = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = latin
		culture_group = iberian
		religion_group = christian
		}
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_comes
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_comes
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_nine = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = latin
		culture_group = iberian
		religion_group = christian
		}
		higher_tier_than = COUNT
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_dux
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_duxissa
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_ten = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = latin
		culture_group = iberian
		religion_group = christian
		}
		higher_tier_than = DUKE
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_rex
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_regina
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_eleven = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = latin
		culture_group = iberian
		religion_group = christian
		}
		higher_tier_than = DUKE
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_imperator
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_imperatrix
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}

    ritz_crackers_twelve = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = latin
		culture_group = iberian
		religion_group = christian
		}
		higher_tier_than = DUKE
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_caesar
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_caesarissa
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_thirteen = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = latin
		culture_group = iberian
		religion_group = christian
		}
		higher_tier_than = DUKE
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_princeps
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_principessa
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_fourteen = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = latin
		culture_group = iberian
		religion_group = christian
		}
		higher_tier_than = DUKE
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_domine
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_domina
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_fifteen = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		is_republic = yes
		higher_tier_than = COUNT
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_dictator
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_dictatress
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_sixteen = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		is_republic = yes
		higher_tier_than = COUNT
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_consul
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_consuless
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_seventeen = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		is_republic = yes
		higher_tier_than = COUNT
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_general
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_general
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_eighteen = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		trait = lunatic
		trait = possessed
		}
		}
		allow = {
		}
		effect = {
		set_special_character_title = ritz_one_who_grips

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_nineteen = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		trait = lunatic
		trait = possessed
		}
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_arch_godbaron
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_arch_godbaroness
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	
	ritz_crackers_twenty = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		trait = lunatic
		trait = possessed
		}
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_dude
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_dude
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_twentyone = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		trait = immortal
		trait = lunatic
		trait = possessed
		}
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_arch_godemperor
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_arch_godempress
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_twentytwo = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = altaic
		culture_group = magyar
		culture_group = finno_ugric
		government = nomadic_government
		}
		higher_tier_than = COUNT
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_khan
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_khatun
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_twentythree = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = altaic
		culture_group = magyar
		culture_group = finno_ugric
		government = nomadic_government
		}
		higher_tier_than = COUNT
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_khagan
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_khatun
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_twentyfour = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = altaic
		culture_group = finno_ugric
		government = nomadic_government
		}
		higher_tier_than = KING
		}
		allow = {
		}
		effect = {
		set_special_character_title = ritz_chinggis

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_twentyfive = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = altaic
		culture_group = finno_ugric
		government = nomadic_government
		}
		higher_tier_than = KING
		}
		allow = {
		}
		effect = {
		set_special_character_title = ritz_chinggis_khagan

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_twentysix = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		trait = sayyid
		trait = mirza
		}
		higher_tier_than = COUNT
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_caliph
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_calipha
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_twentyseven = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = iberian
		culture_group = latin
		culture_group = west_germanic
		culture_group = central_germanic
		culture_group = north_germanic
		}
		OR = {
		trait = sympathy_islam
		religion_group = muslim
		}
		higher_tier_than = DUKE
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_sultanus
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_sultana
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_twentyeight = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture = coptic
		culture = egyptian_arabic
		has_landed_title = k_egypt
		has_landed_title = k_nubia
		}
		higher_tier_than = DUKE
		}
		allow = {
		}
		effect = {
		set_special_character_title = ritz_pharaoh

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_thirty = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture = norman
		culture_group = west_germanic
		culture_group = central_germanic
		culture_group = north_germanic
		}
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_earl
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_earlesse
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_thirtyone = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = west_germanic
		culture_group = central_germanic
		culture_group = north_germanic
		}
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_margrave
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_margravine
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_thirtytwo = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = latin
		culture_group = iberian
		culture_group = celtic
		}
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_marquess
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_marchioness
		}

		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_thirtythree = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		OR = {
		culture_group = byzantine
		culture_group = south_slavic
		}
		}
		allow = {
		}
		effect = {
		set_special_character_title = ritz_hegemon
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	ritz_crackers_thirtyfour = {
	    is_playable = yes
		ai = no

		potential = {
		NOT = { has_character_flag = hide_ritz_crackers }
		}
		allow = {
		}
		effect = {
		if = {
		limit = {
		is_female = no
		}
		set_special_character_title = ritz_lord
		}
		if = {
		limit = {
		is_female = yes
		}
		set_special_character_title = ritz_lady
		}
		}
		revoke_allowed = {
			always = no
		}
		ai_will_do = {
			factor = 0
		}
	}
	
	

}

