########################################################
# MINOR TITLES
# Characters can have any number of these
########################################################
#	grant_limit: Max number of holders.
#	realm_in_name: Append the name of the country after the title (Queen [of Sweden])
#	allowed_to_hold: conditions for the character to hold the title
#	allowed_to_grant: conditions for a ruler to grant the title
#	regent: This is the title for regents (not really "minor")
#	gain_effect: fires when the title is granted
#	lose_effect: fires when a title is lost if dismissal_trigger evaluates to false
#	message: should fire a message to the its owner when set
#	The other fields are all character modifiers.

title_representativeofthirdestate = {
	dignity = 5.0
	grant_limit = 5
	opinion_effect = 20
	monthly_salary = 0.05
	monthly_prestige = 0.50
	is_voter = yes
        realm_in_name = yes
	
	allowed_to_grant = {
		higher_tier_than = DUKE
                has_landed_title = k_france
		primary_title = { has_law = law_voting_power_1 }
	}
	
	allowed_to_hold = {
                is_republic = yes
		OR = {
			primary_title = { temporary = no }
			NOT = {
				primary_title = {
					always = yes
				}
			}
		}
		can_be_councilmember_king_trigger = yes
	}
	revoke_trigger = {
		FROM = {
			primary_title = {
				NOT = { 
					AND = {
						has_law = succession_voting_power_1
						ROOT = { is_powerful_vassal = yes }
					}
				}
			}
		}
	}
	gain_effect = {
	}
	lose_effect = {
		opinion = { who = FROM modifier = opinion_fired_from_council }
		opinion = { who = FROM modifier = opinion_recently_fired }
	}
	retire_effect = {
	}

	message = yes
}

title_representativeofsecondestate = {
	dignity = 5.0
	grant_limit = 10
	opinion_effect = 20
	monthly_salary = 0.05
	monthly_prestige = 0.50
	is_voter = yes
        realm_in_name = yes
	
	allowed_to_grant = {
		higher_tier_than = DUKE
                has_landed_title = k_france
		primary_title = { has_law = law_voting_power_1 }
	}
	
	allowed_to_hold = {
                higher_tier_than = BARON
		OR = {
			primary_title = { temporary = no }
			NOT = {
				primary_title = {
					always = yes
				}
			}
		}
		can_be_councilmember_king_trigger = yes
	}
	revoke_trigger = {
		FROM = {
			primary_title = {
				NOT = { 
					AND = {
						has_law = succession_voting_power_1
						ROOT = { is_powerful_vassal = yes }
					}
				}
			}
		}
	}
	gain_effect = {
	}
	lose_effect = {
		opinion = { who = FROM modifier = opinion_fired_from_council }
		opinion = { who = FROM modifier = opinion_recently_fired }
	}
	retire_effect = {
	}

	message = yes
}

title_representativeoffirstestate = {
	dignity = 5.0
	grant_limit = 5
	opinion_effect = 20
	monthly_salary = 0.5
	monthly_prestige = 0.25
	is_voter = yes
        realm_in_name = yes
	
	allowed_to_grant = {
		higher_tier_than = DUKE
                has_landed_title = k_france
		primary_title = { has_law = law_voting_power_1 }
	}
	
	allowed_to_hold = {
                is_theocracy = yes
		OR = {
			primary_title = { temporary = no }
			NOT = {
				primary_title = {
					always = yes
				}
			}
		}
		can_be_councilmember_king_trigger = yes
	}
	revoke_trigger = {
		FROM = {
			primary_title = {
				NOT = { 
					AND = {
						has_law = succession_voting_power_1
						ROOT = { is_powerful_vassal = yes }
					}
				}
			}
		}
	}
	gain_effect = {
	}
	lose_effect = {
		opinion = { who = FROM modifier = opinion_fired_from_council }
		opinion = { who = FROM modifier = opinion_recently_fired }
	}
	retire_effect = {
	}

	message = yes
}
