namespace = STK

narrative_event = {
	id = STK.900
	title = STK900T
	desc = STK900
	picture = GFX_evt_viking_battle_oldgods
	border = GFX_event_narrative_frame_diplomacy
	
	only_playable = yes
	culture = norse
	
	trigger = {
		year = 950
		NOT = {year = 1000}
		has_landed_title = d_uppland
		num_of_count_titles = 2
		NOT = { has_global_flag = skogla }
	}
	
	mean_time_to_happen = {
		months = 24
	}
	
	immediate = {
		set_global_flag = skogla
	}
	
	option = {
		ai_chance = {
			factor = 100
		}
		name = STK900A
		
		create_character = {
			name = "Toste"
			religion = norse_pagan
			culture = ROOT
			dynasty = 500
			female = no
			age = 25
			trait = seaking
			trait = brave
			trait = immortal_warlord
			trait = duelist
			trait = strong
			trait = robust
			trait = prestigious
			trait = kind
			health = 7
			attributes = {
				martial = 12
			}
			fertility = 2.0
		}
		custom_tooltip = {
			text = GIVE_SKOL
			hidden_tooltip = {
				new_character = {
					add_trait = combat_exp
					add_trait = spear4
					set_character_flag = wpn
					ROOT = {
						random_demesne_title = {
							limit = {
								tier = COUNT
								is_capital = no
							}
							grant_title = PREVPREV 
						}
					}
					
					spawn_unit = {
						province = 290
						owner = THIS
						leader = THIS
						troops = {
							light_infantry = { 500 500 }
							heavy_infantry = { 450 450 }
						}
					}
					spawn_unit = {
						province = 290
						owner = THIS
						#leader = THIS
						troops = {
							light_infantry = { 500 500 }
							heavy_infantry = { 450 450 }
						}
					}
					spawn_unit = {
						province = 290
						owner = THIS
						#leader = THIS
						troops = {
							light_infantry = { 500 500 }
							heavy_infantry = { 450 450 }
						}
					}
					
				}
			}
		}
		
		new_character = {
			add_friend = ROOT
		}
	}
	
	option = {
		ai_chance = {
			factor = 0
		}
		name = STK900B
	}
}