namespace = magebl

character_event = {
	id = magebl.1
	title = "pure_mage_bloodline_title"
	#desc=EVTDESCmagebl.1
	desc = "pure_mage_bloodline_desc"
	sound = bloodline_added
	is_triggered_only = yes
	
	trigger = { 
		learning > 35
		OR = {
			trait = advoffmage
			trait = advdefmage
			trait = advinfmage
			trait = advintmage
		}
		not = { trait = legendarymageblood }
		has_ambition = obj_forge_bloodline
		NOT = { has_character_modifier = usedmagepower }
	}
	
	
	option = { #Gain Renowned Mage bloodline.
		name = "   ."
		if = { 
			limit = { 
				this_has_super_cool_nickname_trigger = no 
			}
			ROOT = { give_nickname = nick_the_archon_magic }
		}
		if = { 
			limit = { is_female = no }
			create_bloodline = {
				type = pure_mage_bloodline_01
			}		
		}
		if = { 
			limit = { is_female = yes }
			create_bloodline = {
				type = pure_mage_bloodline_01
				inheritance = matrilineal
			}		
		}
		
		ai_chance = { 
			factor = 100
		}
		
		add_trait = legendarymageblood
		
	}
	
}
