namespace = moarek

character_event = {
	id = moarek.1
	desc = EVTDESCmoarek.1
	picture = GFX_evt_mage
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmoarek.1
		add_character_modifier = {
			name = modifier_lichdom_became_horde
			duration = -1
		}		
		set_government_type = undead_government
		capital_scope = {
			culture = ROOT
			#province_convert_to_owner_culture = yes
		}	
		hidden_tooltip = { #cant see the event		
			ROOT = {
				any_courtier = {
					limit = {
						is_immortal = no #liches, undead, and summoned daedra probably wouldn't be affected
					}
					random_list = {
						75 = { #same chance as becoming a lich
							remove_racial_trait = yes
							set_graphical_culture = ROOT #they are thralls right?
							culture = ROOT #draugr is supposed to be like liches right?
							add_trait = undead
						}
						25 = {
							death = {
								death_reason = death_sacrificed
								killer = ROOT
							}
						}
					}
				}
			}
		}
		wealth = -250
		piety = -250
		custom_tooltip = { text = MAGICKA_COST_40
			hidden_tooltip = {
				spell_cost_40 = yes
			}
		}
	}
	option = {
		name = EVTOPTBmoarek.1
	}	
}

##Potion restock events##
character_event = {
	id = moarek.100
	desc = EVTDESCmoarek.100
	picture = GFX_evt_mage
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmoarek.100
		trigger = {
			prisoner = no
			NOT = { chugged_it_down_innit_bruv = yes }
			OR = {
				AND = {
					has_in_house_alchemy = yes
					wealth = 40
				}
				wealth = 60
			}
		}
		if = {
			limit = {
				has_in_house_alchemy = yes
			}
			wealth = -40
		}
		if = {
			limit = {
				NOT = { has_in_house_alchemy = yes }
			}
			wealth = -60
		}
		add_character_modifier = { name = modifier_potion_of_chameleon years = 5 }		

		character_event = { id = moarek.100 days = 1830 } #they have to be in days since they can only drink another potion AFTER the first wears off	
		ai_chance = {
			factor = 0 #ai wont do it?
		}
	}
	option = {
		name = EVTOPTBmoarek.100
	}	
}
character_event = {
	id = moarek.101
	desc = EVTDESCmoarek.101
	picture = GFX_evt_mage
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmoarek.101
		trigger = {
			prisoner = no
			NOT = { chugged_it_down_innit_bruv = yes }
			OR = {
				AND = {
					has_in_house_alchemy = yes
					wealth = 80
				}
				wealth = 150
			}
		}
		if = {
			limit = {
				has_in_house_alchemy = yes
			}
			wealth = -80
		}
		if = {
			limit = {
				NOT = { has_in_house_alchemy = yes }
			}
			wealth = -150
		}
		add_character_modifier = { name = modifier_potion_of_longevity years = 2 }
		health = 0.25

		character_event = { id = moarek.101 days = 735 }		
		ai_chance = {
			factor = 0 #ai wont do it?
		}
	}
	option = {
		name = EVTOPTBmoarek.101
	}	
}
character_event = {
	id = moarek.102
	desc = EVTDESCmoarek.102
	picture = GFX_evt_mage
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmoarek.102
		trigger = {
			prisoner = no
			NOT = { chugged_it_down_innit_bruv = yes }
			OR = {
				AND = {
					has_in_house_alchemy = yes
					wealth = 250
				}
				wealth = 400
			}
		}
		if = {
			limit = {
				has_in_house_alchemy = yes
			}
			wealth = -250
		}
		if = {
			limit = {
				NOT = { has_in_house_alchemy = yes }
			}
			wealth = -400
		}
		add_character_modifier = { name = modifier_potion_of_fortify_health years = 5 }
	
		character_event = { id = moarek.102 days = 1830 }
		ai_chance = {
			factor = 0 #ai wont do it?
		}
	}
	option = {
		name = EVTOPTBmoarek.102
	}	
}
character_event = {
	id = moarek.103
	desc = EVTDESCmoarek.103
	picture = GFX_evt_mage
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmoarek.103
		trigger = {
			prisoner = no
			NOT = { chugged_it_down_innit_bruv = yes }
			OR = {
				AND = {
					has_in_house_alchemy = yes
					wealth = 80
				}
				wealth = 150
			}
		}
		if = {
			limit = {
				has_in_house_alchemy = yes
			}
			wealth = -80
		}
		if = {
			limit = {
				NOT = { has_in_house_alchemy = yes }
			}
			wealth = -150
		}
		add_character_modifier = { name = modifier_potion_of_virility years = 3 }
		
		character_event = { id = moarek.103 days = 1100 }
		ai_chance = {
			factor = 0 #ai wont do it?
		}
	}
	option = {
		name = EVTOPTBmoarek.103
	}	
}
character_event = {
	id = moarek.104
	desc = EVTDESCmoarek.104
	picture = GFX_evt_mage
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmoarek.104
		trigger = {
			prisoner = no
			NOT = { chugged_it_down_innit_bruv = yes }
			OR = {
				AND = {
					has_in_house_alchemy = yes
					wealth = 125
				}
				wealth = 250
			}
		}
		if = {
			limit = {
				has_in_house_alchemy = yes
			}
			wealth = -125
		}
		if = {
			limit = {
				NOT = { has_in_house_alchemy = yes }
			}
			wealth = -250
		}
		add_character_modifier = { name = modifier_potion_of_fortify_strength years = 3 }
	
		character_event = { id = moarek.104 days = 1100 }
		ai_chance = {
			factor = 0 #ai wont do it?
		}
	}
	option = {
		name = EVTOPTBmoarek.104
	}	
}
character_event = {
	id = moarek.105
	desc = EVTDESCmoarek.105
	picture = GFX_evt_mage
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmoarek.105
		trigger = {
			prisoner = no
			NOT = { chugged_it_down_innit_bruv = yes }
			OR = {
				AND = {
					has_in_house_alchemy = yes
					wealth = 125
				}
				wealth = 250
			}
		}
		if = {
			limit = {
				has_in_house_alchemy = yes
			}
			wealth = -125
		}
		if = {
			limit = {
				NOT = { has_in_house_alchemy = yes }
			}
			wealth = -250
		}
		add_character_modifier = { name = modifier_potion_of_fortify_personality years = 3 }
	
		character_event = { id = moarek.105 days = 1100 }
		ai_chance = {
			factor = 0 #ai wont do it?
		}
	}
	option = {
		name = EVTOPTBmoarek.105
	}	
}
character_event = {
	id = moarek.106
	desc = EVTDESCmoarek.106
	picture = GFX_evt_mage
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmoarek.106
		trigger = {
			prisoner = no
			NOT = { chugged_it_down_innit_bruv = yes }
			OR = {
				AND = {
					has_in_house_alchemy = yes
					wealth = 100
				}
				wealth = 180
			}
		}
		if = {
			limit = {
				has_in_house_alchemy = yes
			}
			wealth = -100
		}
		if = {
			limit = {
				NOT = { has_in_house_alchemy = yes }
			}
			wealth = -180
		}
		add_character_modifier = { name = modifier_potion_of_fortify_luck years = 3 }
	
		character_event = { id = moarek.106 days = 1100 }
		ai_chance = {
			factor = 0 #ai wont do it?
		}
	}
	option = {
		name = EVTOPTBmoarek.106
	}	
}
character_event = {
	id = moarek.107
	desc = EVTDESCmoarek.107
	picture = GFX_evt_mage
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmoarek.107
		trigger = {
			prisoner = no
			NOT = { chugged_it_down_innit_bruv = yes }
			OR = {
				AND = {
					has_in_house_alchemy = yes
					wealth = 100
				}
				wealth = 180
			}
		}
		if = {
			limit = {
				has_in_house_alchemy = yes
			}
			wealth = -100
		}
		if = {
			limit = {
				NOT = { has_in_house_alchemy = yes }
			}
			wealth = -180
		}
		add_character_modifier = { name = modifier_potion_of_fortify_intelligence years = 3 }
	
		character_event = { id = moarek.107 days = 1100 }
		ai_chance = {
			factor = 0 #ai wont do it?
		}
	}
	option = {
		name = EVTOPTBmoarek.107
	}	
}
character_event = {
	id = moarek.108
	desc = EVTDESCmoarek.108
	picture = GFX_evt_mage
	
	is_triggered_only = yes
	
	option = {
		name = EVTOPTAmoarek.108
		trigger = {
			prisoner = no
			NOT = { chugged_it_down_innit_bruv = yes }
			OR = {
				AND = {
					has_in_house_alchemy = yes
					wealth = 100
				}
				wealth = 180
			}
		}
		if = {
			limit = {
				has_in_house_alchemy = yes
			}
			wealth = -100
		}
		if = {
			limit = {
				NOT = { has_in_house_alchemy = yes }
			}
			wealth = -180
		}
		add_character_modifier = { name = modifier_potion_of_fortify_agility years = 3 }
	
		character_event = { id = moarek.108 days = 1100 }
		ai_chance = {
			factor = 0 #ai wont do it?
		}
	}
	option = {
		name = EVTOPTBmoarek.108
	}	
}