﻿###| Harthgate Character Story Events, [Dyre Oskyldr = ID:6811], for Estates and Adventurers |###

###| Credits |###

#: Developed by Edgar Harthgate

###| End of Credits |###

###| Table of Contents |###							###| Status |###    ###| Quick Link |###

#: Character Story = Dyre Oskyldr					#: Complete			character_story_dyre_oskyldr
#: End of Table of Contents

###| Character Story | Dyre Oskyldr |###			###| Status |###	###| character_story_dyre_oskyldr |###

#: character_story_dyre_oskyldr_eaa.0001			#: Complete

###| End of Table of Contents |###

###| Character Story | Dyre Oskyldr |###    ###| character_story_dyre_oskyldr |###

namespace = character_story_dyre_oskyldr_eaa

character_story_dyre_oskyldr_eaa.0001 = {

	scope = none
	hidden = yes

	immediate = {
		if = {
			limit = { 
				current_date = 867.1.1
				character:6811 = { is_ai = no }
			}
			character:6811 = {
				if = {
					limit = { 
						character:6811 = { is_alive = yes }
						character:6871 = { is_alive = yes }
						character:012_malkeinos_charikleia_malkeinos = { is_alive = yes }
					}
					character:6811 = { save_scope_as = character_story_actor }
					character:6871 = { save_scope_as = character_story_son }
					character:012_malkeinos_charikleia_malkeinos = { save_scope_as = character_story_spouse }
					trigger_event = { id = character_story_dyre_oskyldr_eaa.0002 }
				}
			}
		}
		if = {
			limit = {
				current_date = 867.1.1
				character:6811 = { is_ai = yes }
			}
			character:6811 = {
				if = {
					limit = { 
						character:6811 = { is_alive = yes }
						character:6871 = { is_alive = yes }
						character:012_malkeinos_charikleia_malkeinos = { is_alive = yes }
					}
					character:6811 = { save_scope_as = character_story_actor }
					character:6871 = { save_scope_as = character_story_son }
					character:012_malkeinos_charikleia_malkeinos = { save_scope_as = character_story_spouse }
					trigger_event = { id = character_story_dyre_oskyldr_eaa.0003 }
				}
			}
		}
	}

}

character_story_dyre_oskyldr_eaa.0002 = {												###|: Diplays a character event for the [character_story_actor] which gives several options for culture and faith conversion.

	title = character_story_dyre_oskyldr_eaa.0002.t
	desc = character_story_dyre_oskyldr_eaa.0002.desc
	type = character_event
	
	left_portrait = {
		character = scope:character_story_actor
		animation = thinking
	}

	right_portrait = {
		character = scope:character_story_spouse
		animation = personality_content
	}
	
	theme = realm
	
	option = {	###| character_story_dyre_oskyldr_eaa_option_become_slavic_russian |###    ###|: Changes the [character_story_actor] and their close family to [Slavic] faith and [Russian] culture.
	
		name = character_story_dyre_oskyldr_eaa.0002.a
		custom_tooltip = character_story_dyre_oskyldr_eaa.0002.tt.a
		
		scope:character_story_actor = {
			set_character_faith_with_conversion = faith:slavic_pagan
			set_culture = culture:russian
		}
			
		scope:character_story_son = {
			set_culture = culture:russian
		}
	
	}
	
	option = {	###| character_story_dyre_oskyldr_eaa_option_become_orthodox_russian |###    ###|: Changes the [character_story_actor] and their close family to [Orthodox] faith and [Russian] culture.
	
		name = character_story_dyre_oskyldr_eaa.0002.b
		custom_tooltip = character_story_dyre_oskyldr_eaa.0002.tt.b
		
		scope:character_story_actor = {
			set_character_faith_with_conversion = faith:orthodox
			capital_county = { set_county_faith = faith:orthodox }
			set_culture = culture:russian
		}
			
		scope:character_story_son = {
			set_culture = culture:russian
		}
	
	}
	
	option = {	###| character_story_dyre_oskyldr_eaa_option_become_russian |###    ###|: Changes the [character_story_actor] and their close family to [Russian] culture.
	
		name = character_story_dyre_oskyldr_eaa.0002.c
		custom_tooltip = character_story_dyre_oskyldr_eaa.0002.tt.c
		
		scope:character_story_actor = {
			set_culture = culture:russian
			capital_county = { set_county_faith = faith:norse_pagan }
		}
			
		scope:character_story_son = {
			set_culture = culture:russian
		}
	
	}
	
	option = {	###| character_story_dyre_oskyldr_eaa_option_remain_the_same |###    ###|: Changes the [character_story_spouse] to [Asatru] faith.
	
		name = character_story_dyre_oskyldr_eaa.0002.d
		custom_tooltip = character_story_dyre_oskyldr_eaa.0002.tt.d
		
		scope:character_story_actor = {
			capital_county = {
				set_county_culture = culture:norse
				set_county_faith = faith:norse_pagan
			}
		}
	
	}
	
}

character_story_dyre_oskyldr_eaa.0003 = {

	scope = none
	hidden = yes
	
	immediate = {
		random_list = {
			50 = {
				scope:character_story_actor = {
					set_character_faith_with_conversion = faith:slavic_pagan
					set_culture = culture:russian
				}
				scope:character_story_son = {
					set_culture = culture:russian
				}
			}
			50 = {
				scope:character_story_actor = {
					set_character_faith_with_conversion = faith:orthodox
					capital_county = { set_county_faith = faith:orthodox }
					set_culture = culture:russian
				}
				scope:character_story_son = {
					set_culture = culture:russian
				}
			}
		}
	}
}
