namespace = hafa

##BRITISH ISLES
character_event = { # Curtana
	id = hafa.006
	desc = "EVTDESChafa.006"
	prisoner = no
	min_age = 16
	only_playable = yes
	only_independent = yes
	capable_only = yes
	culture_group = celtic
	
	trigger = { # sword not found yet?
		NOT = { has_global_flag = found_curtana }
		has_landed_title = k_england
	}
	
	mean_time_to_happen = {
		months = 600
		
		modifier = { # player gets more fun
			factor = 1.75
			ai = yes
		}
		modifier = {
			factor = 0.5
			trait = ambitious
		}
		modifier = {
			factor = 0.5
			prestige = 2500
		}
	}
		
	immediate = {
		hidden_tooltip = {
			set_global_flag = found_curtana
		}
	}
	
	option = {
		name = "EVTOPTAhafa.006"
		prestige = 150
		add_artifact = curtana
	}
}

character_event = { # Drynwyn
	id = hafa.101
	desc = "EVTDESChafa.101"
	picture = GFX_evt_pagan
	prisoner = no
	min_age = 16
	ai = no
	trigger = { # sword not found yet?
		NOT = { has_global_flag = found_drynwyn }
		OR = {
			AND = {
				trait = kind
				trait = just
				NOT = { trait = wroth }
				NOT = { trait = greedy }
			}
			prestige = 5000
			piety = 2500
		}
		has_focus = focus_hunting
	}
	
	mean_time_to_happen = {
		months = 120
	}
		
	immediate = {
		hidden_tooltip = {
			set_global_flag = found_drynwyn
		}
	}
	
	option = { #What is that sword
		name = "EVTOPTAhafa.101"
		character_event = { id = hafa.102 }
	}
	option = { #Just passing through the area
		name = "EVTOPTBhafa.101"
		break = yes
	}
	option = { #Kill him and take what he owns
		name = "EVTOPTChafa.101"
		gold = 13
		add_trait = wroth
		add_artifact = drynwyn
	}
}
character_event = { 
	id = hafa.102
	desc = "EVTDESChafa.102"
	is_triggered_only = yes
	picture = GFX_evt_pagan
	option = { #May I have it
		name = "EVTOPTAhafa.102"
		character_event = { id = hafa.103 }
	}
	option = { #buy it
		name = "EVTOPTBhafa.102"
		add_artifact = drynwyn
		scaled_wealth = -1
		}
	option = { #very cool, we must be off
		name = "EVTOPTChafa.102"
		break = yes
		}
}
character_event = { 
	id = hafa.103
	desc = "EVTDESChafa.103"
	is_triggered_only = yes
	picture = GFX_evt_pagan	
	option = {
		name = "EVTOPTAhafa.103"
		add_artifact = drynwyn
		character_event = { id = hafa.104 }
		}
}
character_event = {
	id = hafa.104
	desc = "EVTDESChafa.104"
	is_triggered_only = yes
	picture = GFX_evt_pagan
	option = {
		name = "EVTOPTAhafa.104"
		break = yes
	}
}

character_event = { # Magic Wand
	id = hafa.105
	desc = "EVTDESChafa.105"
	picture = GFX_evt_fishing
	prisoner = no
	min_age = 16
	focus = hunting
	ai = no
	religion_group = pagan_group
	trigger = {
		trait = changeling
		OR = { 
			religion = celtic_pagan
			religion = celtic_pagan_reformed
		}
	}
	
	mean_time_to_happen = {
		months = 100
	}
			
	option = { #A memory comes before me
		name = "EVTOPTAhafa.105"
		add_artifact = magic_wand
	}
}

##OTHER
character_event = { # Sword of Attila
	id = hafa.001
	desc = "EVTDESChafa.001"
	prisoner = no
	min_age = 16
	religion_group = pagan_group
	
	trigger = { # sword not found yet?
		num_of_emperor_titles = 1
		NOT = { has_global_flag = found_sword_of_attila }
		OR = { # tengri?
			religion = tengri_pagan
			religion = tengri_pagan_reformed
		}
	}
	
	mean_time_to_happen = {
		months = 1200
		
		modifier = { # player gets more fun
			factor = 1.2
			ai = yes
		}
		modifier = {
			factor = 0.9
			trait = ambitious
		}
		modifier = {
			factor = 0.8
			piety = 1250
		}
		modifier = {
			factor = 0.8
			prestige = 2500
		}
		modifier = {
			factor = 0.9
			trait = zealous
		}
	}
		
	immediate = {
		hidden_tooltip = {
			set_global_flag = found_sword_of_attila
		}
	}
	
	option = {
		name = "EVTOPTAhafa.001"
		prestige = 100
		piety = 100
		add_artifact = sword_of_attila
		new_artifact = {
			set_creation_date = 1.1.1
		}
	}
}

character_event = { # Gramr
	id = hafa.002
	desc = "EVTDESChafa.002"
	prisoner = no
	min_age = 16
	ai = no
	religion_group = pagan_group
	
	trigger = { # sword not found yet?
		
		OR = { # norse?
			religion = norse_pagan
			religion = norse_pagan_reformed
			religion = german_pagan
			religion = german_pagan_reformed
		}
		has_character_flag = dragon
	}
	
	mean_time_to_happen = {
		months = 550
		
		modifier = {
			factor = 0.75
			piety = 1000
		}
		modifier = {
			factor = 0.50
			prestige = 2000
		}
		modifier = {
			factor = 0.8
			trait = brave
		}
	}
	
	option = {
		name = "EVTOPTAhafa.002"
		prestige = 250
		add_artifact = gramr
		new_artifact = {
			set_creation_date = 1.1.1
		}
	}
}

character_event = { # Eckesachs, giant fight
	id = hafa.003
	desc = "EVTDESChafa.003"
	prisoner = no
	picture = GFX_evt_pagan1
	min_age = 16
	religion_group = pagan_group
	
	trigger = { # sword not found yet?
		
		OR = { # fantasy?
			has_game_rule = {
				name = supernatural_events
				value = unrestricted
			}
			has_game_rule = {
				name = supernatural_events
				value = on
			}
		}
		OR = { # german?
			religion = german_pagan
			religion = german_pagan_reformed
		}
		num_of_king_titles = 1
		NOT = { has_global_flag = found_eckesachs }
	}
	
	mean_time_to_happen = {
		months = 800
		
		modifier = { # player gets more fun
			factor = 1.25
			ai = yes
		}
		modifier = {
			factor = 0.8
			trait = ambitious
		}
		modifier = {
			factor = 0.50
			prestige = 2000
		}
		modifier = {
			factor = 0.8
			trait = brave
		}
	}
	
	option = { # fight the giant
		name = "EVTOPTBhafa.003"
		prestige = 200
		add_trait = brave
		random_list = {
				50 = {
				}
				30 = {
					add_trait = wounded
					opinion = {
						modifier = opinion_unhappy
						who = ROOT
						years = 8
					}
				}
				5 = {
					death = {
						death_reason = death_accident
					}
				}
			}
		add_artifact = eckesachs
		new_artifact = {
			set_creation_date = 1.1.1
		}
		hidden_tooltip = {
			set_global_flag = found_eckesachs
		}
	}
	option = { # run away
		name = "EVTOPTAhafa.003"
		prestige = -10
		remove_trait = brave
	}
}

character_event = { # Szczerbiec
	id = hafa.007
	desc = "EVTDESChafa.007"
	prisoner = no
	min_age = 16
	only_playable = yes
	only_independent = yes
	capable_only = yes
	culture_group = west_slavic
	trigger = { # sword not found yet?
		NOT = { has_global_flag = found_szczerbiec }
		has_landed_title = k_poland
	}
	
	mean_time_to_happen = {
		months = 600
		
		modifier = { # player gets more fun
			factor = 1.75
			ai = yes
		}
		modifier = {
			factor = 0.5
			trait = ambitious
		}
		modifier = {
			factor = 0.5
			prestige = 2500
		}
	}
		
	immediate = {
		hidden_tooltip = {
			set_global_flag = found_szczerbiec
		}
	}
	
	option = {
		name = "EVTOPTAhafa.007"
		prestige = 150
		add_artifact = szczerbiec
	}
}

character_event = { # Holy Crown Hungary
	id = hafa.008
	desc = "EVTDESChafa.008"
	prisoner = no
	min_age = 16
	only_playable = yes
	only_independent = yes
	capable_only = yes
	culture_group = magyar
	trigger = { # crown made yet?
		NOT = { has_global_flag = found_holy_crown_of_hungary }
		has_landed_title = k_hungary
	}
	
	mean_time_to_happen = {
		months = 600
		
		modifier = { # player gets more fun
			factor = 1.75
			ai = yes
		}
		modifier = {
			factor = 0.5
			trait = ambitious
		}
		modifier = {
			factor = 0.5hah
			prestige = 2500
		}
	}
		
	immediate = {
		hidden_tooltip = {
			set_global_flag = found_holy_crown_of_hungary
		}
	}
	
	option = {
		name = "EVTOPTAhafa.008"
		prestige = 150
		add_artifact = holy_crown_of_hungary
	}
}

