Scriptname CCO_MCMScript extends SKI_ConfigBase

int OIDAllOn
int OIDAllOff
int OIDArmorAll
int OIDArmorLight
int OIDArmorHeavy
int OIDArmorClothing
int OIDArmorBoots
int OIDArmorCuirass
int OIDArmorGauntlets
int OIDArmorHelmets
int OIDArmorShields
int OIDWeapAll
int OIDWeapOneHand
int OIDWeapTwoHand
int OIDWeapDaggers
int OIDWeapSwords
int OIDWeapGreatswords
int OIDWeapWarAxe
int OIDWeapBattleaxe
int OIDWeapMace
int OIDWeapWarhammer
int OIDWeapBow
int OIDWeapAmmo
int OIDMiscJewelryAll
int OIDMiscRing
int OIDMiscNecklace
int OIDMiscCirclet
int OIDMiscPouches
int OIDMiscTools
int OIDMiscCloaks
int OIDMiscAccessories
int OIDBreakdownSmelt
int OIDBreakdownAdv
int OIDUnenchant
int OIDDaedricAtNight
int OIDCCORecipes
int OIDInventoryConditions
int OIDReplicas
int OIDMSCirclets
int OIDLearning
int OIDLearningReq
int OIDForswornLearning
int OIDFalmerLearning
int OIDFalmerHeavyLearning
int OIDDraugrLearning
int OIDMiningStrikes
int OIDMiningAttackStrikes
int OIDMiningOresDrop
int OIDMiningOresTotal
int OIDGemChance
int OIDGemListMenu
int OIDFirewoodPerUse
int OIDFirewoodMax
int OIDNonLore
int OIDOriental
int OIDCorundumRename
int OIDMalachiteRename1
int OIDMalachiteRename2
int OIDQuicksilverRename
int OIDUninstallMod
int OIDLevelUp
int OIDLevelUpSpell
int OIDLevelUpAuto
int OIDFurRecipes
int OIDMaleOnly
int OIDFemaleOnly
int OIDExperienceMining
int OIDEnchantTweaks
int OIDEnchClothing 
int	OIDEnchBody
int OIDEnchMinor
int	OIDEnchJewelry
int	OIDEnchJewelryEx
int	OIDEnchJewelryEq
int OIDEnchDaggers
int	OIDEnchBows
int	OIDEnch1Hand
int	OIDEnch2Hand
int OIDTemperTweaks
int	OIDTemperBase
int	OIDTemperDagger
int	OIDTemperBow
int	OIDTemper2Hand
int	OIDTemperLArmor
int	OIDTemperHide
int	OIDTemperShields
int	OIDTemperCuirass
int	OIDTemperGauntlets
int OIDMiningPresetsMenu
int OIDStalhrimEnch
int OIDSilverWeap
int OIDSilverArmor
int OIDGoldArmor
int OIDDawnguardWorkbench
int OIDDawnguardOnlyCrossbow

int OIDDawnguard
int OIDHearthfire
int OIDDragonborn
int OIDDawnguardInst
int OIDHearthfireInst
int OIDDragonbornInst
int OIDJaysusCraft
int OIDJaysusDist
int OIDJaysusInst
int OIDBandoliersCraft
int OIDBandoliersDist
int OIDBandoliersInst
int OIDBandoliersDGInst
int OIDImmersiveArmorsInst
int OIDJewelCraft
int OIDJewelCraftDist
int OIDImmersiveArmorsCraft
int OIDBandoliersOptions
int OIDBandoliersEnchantSmall
int OIDBandoliersEnchantMed
int OIDBandoliersEnchantLarge
int OIDBandoliersEnchantXLarge
int OIDBandoliersWorkbench
int OIDBandoliersDistChance 
int OIDBookofSilenceRace
int OIDBookofSilenceCraft
int OIDHeavyArmoryCraft
int	OIDWinterIsComingCraft
int	OIDCloaksCraft
int OIDWinterIsComingRequireKit
int	OIDCloaksRequireBook
int OIDTanningRackXP
int OIDSmelterXP

float MiningStrikesVal = 1.0
float MiningAttackStrikesVal = 3.0
float MiningOresDropVal = 1.0
float MiningOresTotalVal = 3.0
float GemChanceVal = 10.0
float FirewoodPerUseVal = 2.0
float FirewoodMaxVal = 6.0
float LearningReqVal = 100.0
float ExpMiningVal = 0.0
float BandolierChanceVal = 10.0
float EnchClothingVal =  50.0
float EnchBodyVal = 25.0
float EnchMinorVal = -25.0
float EnchJewelryVal = 10.0
float EnchJewelryExVal = 10.0
float EnchJewelryEqVal = 10.0
float EnchDaggersVal = 0.0
float EnchBowsVal = 0.0
float Ench1HandVal = 0.0
float Ench2HandVal = 0.0
float TempBaseVal = 0.0
float TempDaggerVal = -15.0
float TempBowVal = -10.0
float Temp2HandVal = 15.0
float TempLArmorVal = -10.0
float TempHideVal = -15.0
float TempShieldVal = 30.0
float TempCuirassVal = 20.0
float TempGauntletVal = -20.0
float BandolierSmallVal = 5.0
float BandolierMedVal = 10.0
float BandolierLargeVal = 15.0
float BandolierXLargeVal = 20.0
float SilverWeapVal = 20.0
float SilverArmorVal = 5.0
float GoldArmorVal = 5.0
float StalhrimEnchVal = 10.0

GlobalVariable property CCO_ArmorLightRecipes auto
GlobalVariable property CCO_ArmorHeavyRecipes auto
GlobalVariable property CCO_ArmorClothingRecipes auto
GlobalVariable property CCO_ArmorBootRecipes auto
GlobalVariable property CCO_ArmorCuirassRecipes auto
GlobalVariable property CCO_ArmorGauntletRecipes auto
GlobalVariable property CCO_ArmorHelmetRecipes auto
GlobalVariable property CCO_ArmorShieldRecipes auto
GlobalVariable property CCO_WeapAmmoRecipes auto
GlobalVariable property CCO_WeapBowRecipes auto
GlobalVariable property CCO_WeapDaggerRecipes auto
GlobalVariable property CCO_WeapSwordRecipes auto
GlobalVariable property CCO_WeapGreatswordRecipes auto
GlobalVariable property CCO_WeapBattleaxeRecipes auto
GlobalVariable property CCO_WeapMaceRecipes auto
GlobalVariable property CCO_WeapWarAxeRecipes auto
GlobalVariable property CCO_WeapWarhammerRecipes auto
GlobalVariable property CCO_MiscCircletRecipes auto
GlobalVariable property CCO_MiscNecklaceRecipes auto
GlobalVariable property CCO_MiscRingRecipes auto
GlobalVariable property CCO_MiscPouchRecipes auto
GlobalVariable property CCO_MiscToolRecipes auto
GlobalVariable property CCO_ClothingRobeRecipes auto
GlobalVariable property CCO_ClothingBootRecipes auto
GlobalVariable property CCO_ClothingHoodRecipes auto
GlobalVariable property CCO_ClothingGlovesRecipes auto
GlobalVariable property CCO_ClothingCloakRecipes auto
GlobalVariable property CCO_MiscAccessories auto
GlobalVariable property CCO_OptionArtifactReplicas auto
GlobalVariable property CCO_OptionArmoredCirclets auto
GlobalVariable property CCO_OptionUnenchantedUniques auto
GlobalVariable property CCO_FantasyNonLoreRecipes auto
GlobalVariable property CCO_OrientalStyleRecipes auto
GlobalVariable property CCO_MODJaysusSwords auto
GlobalVariable property CCO_MODBandoliers auto
GlobalVariable property CCO_MODImmersiveArmors auto
GlobalVariable property CCO_LearningEnabled auto
GlobalVariable property CCO_LearningRequiredtoSmith auto
GlobalVariable property CCO_LearningForsworn auto
GlobalVariable property CCO_LearningFalmer auto
GlobalVariable property CCO_LearningFalmerHeavy auto
GlobalVariable property CCO_LearningDraugr auto
GlobalVariable property CCO_OptionBreakdownEquipmentatSmelter auto
GlobalVariable property CCO_OptionCraftDaedricOnlyAtNight auto
GlobalVariable property CCO_OptionDeclutterCraftingMenu auto
GlobalVariable property CCO_CCOAddedRecipes auto
GlobalVariable property CCO_DLCDawnguard auto
GlobalVariable property CCO_DLCHearthfire auto
GlobalVariable property CCO_DLCDragonborn auto
GlobalVariable property CCO_MODJewelCraft auto
GlobalVariable property CCO_ArmorOnlyMALE auto
GlobalVariable property CCO_ArmorOnlyFEMALE auto
GlobalVariable property CCO_OptionUseGenericFurPlate auto
GlobalVariable property CCO_OptionRacialRestrictions auto

GlobalVariable property MiningGemChanceGV_CCO auto 
GlobalVariable property MiningGemLeveledGV_CCO auto
GlobalVariable property MiningGemSpecialGV_CCO auto
GlobalVariable property MiningGemUnleveledGV_CCO auto
GlobalVariable property AttackStrikesBeforeCollectionGV_CCO auto
GlobalVariable property StrikesBeforeCollectionGV_CCO auto
GlobalVariable property ResourceCountTotalGV_CCO auto
GlobalVariable property ResourceCountGV_CCO auto
GlobalVariable property FirewoodResourceMaxGV_CCO auto
GlobalVariable property FirewoodResourcePerUseGV_CCO auto
GlobalVariable property CorundumRename_CCO auto
GlobalVariable property MalachiteRenameGlass_CCO auto
GlobalVariable property MalachiteRenameMoldavite_CCO auto
GlobalVariable property QuicksilverRename_CCO auto
GlobalVariable property PlayerHasLevelUpSpell_CCO auto
GlobalVariable property LevelUpSpellAutoRun_CCO auto
GlobalVariable property MiningSkillIncreaseGV_CCO auto
GlobalVariable property EnchantTweakToggleGV_CCO auto
GlobalVariable property EnchantTweakArmorMinorPiecesGV_CCO auto
GlobalVariable property EnchantTweakBowsGV_CCO auto
GlobalVariable property EnchantTweakClothingGV_CCO auto
GlobalVariable property EnchantTweakCuirassGV_CCO auto
GlobalVariable property EnchantTweakDaggersGV_CCO auto
GlobalVariable property EnchantTweakJewelryGV_CCO auto
GlobalVariable property EnchantTweakJewelryExpensiveGV_CCO auto
GlobalVariable property EnchantTweakJewelryExquisiteGV_CCO auto
GlobalVariable property EnchantTweakOneHandGV_CCO auto
GlobalVariable property EnchantTweakTwoHandGV_CCO auto
GlobalVariable property TemperTweakToggleGV_CCO auto
GlobalVariable property TemperTweakBowsGV_CCO auto
GlobalVariable property TemperTweakCuirassGV_CCO auto
GlobalVariable property TemperTweakDaggersGV_CCO auto
GlobalVariable property TemperTweakGauntletsGV_CCO auto
GlobalVariable property TemperTweakLeatherHideArmorGV_CCO auto
GlobalVariable property TemperTweakLightArmorGV_CCO auto
GlobalVariable property TemperTweakShieldsGV_CCO auto
GlobalVariable property TemperTweakTwoHandGV_CCO auto
GlobalVariable property TemperTweakBaselineGV_CCO auto
GlobalVariable property	MCM_CCOSilverWeaponPerk auto
GlobalVariable property	MCM_CCOSilverArmorPerk auto
GlobalVariable property	MCM_CCOGoldArmorPerk auto
GlobalVariable property	MCM_CCOStalhrimEnchPerk auto
GlobalVariable property SmithingXPTanningRackGV_CCO auto
GlobalVariable property SmithingXPSmelterGV_CCO auto
Perk property CCO_SmithingXPSmelterPerk auto	
Perk property CCO_SmithingXPTanningRackPerk auto
GlobalVariable property MCM_CCOCrossbowsInWorld auto
GlobalVariable property DIST_CCOCrossbows_OFF auto
GlobalVariable property DIST_CCOCrossbows_ON auto
GlobalVariable property DIST_CCOCrossbowBolt_Chance auto

GlobalVariable property MCM_CCOJaysusInst auto
GlobalVariable property MCM_CCOBandoliersInst auto
GlobalVariable property MCM_CCOBandoliersDGInst auto
GlobalVariable property MCM_CCODragonbornInst auto
GlobalVariable property MCM_CCOHearthfireInst auto
GlobalVariable property MCM_CCODawnguardInst auto
GlobalVariable property MCM_CCOJaysusDist auto
GlobalVariable property MCM_CCOBandoliersDist auto
GlobalVariable property MCM_CCOJewelCraftDist auto
GlobalVariable property DIST_CCOJewelCraft_ON auto
GlobalVariable property DIST_CCOJewelCraft_OFF auto
GlobalVariable property DIST_CCOJaysusSwords_ON auto
GlobalVariable property DIST_CCOJaysusSwords_OFF auto
GlobalVariable property DIST_CCOBandoliers_ON auto
GlobalVariable property DIST_CCOBandoliers_OFF auto
GlobalVariable property DIST_CCOBandoliersDG_ON auto
GlobalVariable property DIST_CCOBandoliersDG_OFF auto
GlobalVariable property MCM_BandolierModStatus auto
GlobalVariable property DIST_CCOBandoliersChance auto
GlobalVariable property BANEnchantmentToggleGV_CCO auto
GlobalVariable property MCM_BandolierWorkbench auto
GlobalVariable property MCM_CCOImmersiveArmorsInst auto
GlobalVariable property MCM_CCOBookofSilenceInst auto
GlobalVariable property CCO_MODBookofSilence auto
GlobalVariable property MCM_CCOHeavyArmoryInst auto
GlobalVariable property CCO_MODHeavyArmory auto
GlobalVariable property MCM_DawnguardWorkbench auto
GlobalVariable property MCM_CCOWinterIsComingInst auto
GlobalVariable property CCO_MODWinterIsComing auto
GlobalVariable property CCO_MODWICRequireBasket auto
GlobalVariable property MCM_CCOCloaksInst auto
GlobalVariable property CCO_MODCloaks auto
GlobalVariable property CCO_MODCLoaksRequireBook auto
GlobalVariable property CCO_MODCloaksBookDistChance auto
GlobalVariable property MCM_CCOBandoliersEnchSmall auto
GlobalVariable property MCM_CCOBandoliersEnchMed auto
GlobalVariable property MCM_CCOBandoliersEnchLarge auto
GlobalVariable property MCM_CCOBandoliersEnchXLarge auto


CCO_CompatibilityScript Property CCO_MCMStartupQuest auto
ObjectReference property JaysusSwordsParentMarker auto
Spell Property LevelUpSpell Auto
FormList Property BAN_ItemList_Small Auto
FormList Property BAN_ItemList_Med Auto
FormList Property BAN_ItemList_Large Auto
FormList Property BAN_ItemList_XLarge Auto
int UseCustomMiningSettings = 0

string[] GemListMenu
int GemListSelection = 2
string[] MiningPresetsMenu
int MiningPresetsSelection = 0

int function GetVersion()
	return 2
endFunction

event OnInit()
	parent.OnInit()
	GemListMenu = new string[3]
	GemListMenu[0] = "Vanilla - Leveled"
	GemListMenu[1] = "All Gems - Unleveled"
	GemListMenu[2] = "Specific Gems - Unleveled"
	
	MiningPresetsMenu = new string[8]
	MiningPresetsMenu[0] = "Vanilla"
	MiningPresetsMenu[1] = "More Ore"
	MiningPresetsMenu[2] = "Much More Ore"
	MiningPresetsMenu[3] = "Faster Mining"
	MiningPresetsMenu[4] = "Faster Mining and More Ore"
	MiningPresetsMenu[5] = "Slower Mining"
	MiningPresetsMenu[6] = "Slower Mining and Much More Ore"
	MiningPresetsMenu[7] = "Use Custom Settings"
endEvent


event OnConfigInit()
	Pages = new string[8]
	Pages[0] = "Crafting Menu"
	Pages[1] = "Menu Options"
	Pages[2] = "Learning"
	Pages[3] = "Mining & Materials"
	Pages[4] = "Balance"
	Pages[5] = "Mods"
	Pages[6] = "Mod Options"
	Pages[7] = "Uninstall"
	
	; = "Extras"
	; = "Distribution"
	; = "Items"
	
endEvent

event OnVersionUpdate(int a_version)
	if (a_version > 1)
		OnConfigInit()
	endIf
endEvent

event OnPageReset(string page)
	If (page == "")
		LoadCustomContent("CompleteCraftingOverhaul/CCOTitle.dds", 52, 115)
		Return
	Else
		UnloadCustomContent()
	EndIf
	If (page == "Crafting Menu")
		SetCursorFillMode(TOP_TO_BOTTOM)
		OIDAllOn = AddTextOption("Select All", "")
		OIDAllOff = AddTextOption("Clear All", "")
		OIDArmorAll = AddTextOption("Select all Armor & Clothing", "")
		AddHeaderOption("Armor")
		OIDArmorLight = AddToggleOption("Light Armor", CCO_ArmorLightRecipes.getValueInt())
		OIDArmorHeavy = AddToggleOption("Heavy Armor", CCO_ArmorHeavyRecipes.getValueInt())
		OIDArmorClothing = AddToggleOption("Clothing", CCO_ArmorClothingRecipes.getValueInt())
		AddEmptyOption()
		OIDArmorCuirass = AddToggleOption("Body ", CCO_ArmorCuirassRecipes.getValueInt())
		OIDArmorHelmets = AddToggleOption("Head ", CCO_ArmorHelmetRecipes.getValueInt())
		OIDArmorGauntlets = AddToggleOption("Hands", CCO_ArmorGauntletRecipes.getValueInt())
		OIDArmorBoots = AddToggleOption("Feet", CCO_ArmorBootRecipes.getValueInt())
		OIDArmorShields = AddToggleOption("Shields", CCO_ArmorShieldRecipes.getValueInt())
;		AddEmptyOption()
		AddHeaderOption("Jewelry")
		OIDMiscJewelryAll = AddTextOption("All Jewelry", "")
		OIDMiscCirclet = AddToggleOption("Circlets", CCO_MiscCircletRecipes.getValueInt())
		OIDMiscNecklace = AddToggleOption("Necklaces", CCO_MiscNecklaceRecipes.getValueInt())
		OIDMiscRing = AddToggleOption("Rings", CCO_MiscRingRecipes.getValueInt())

		SetCursorPosition(1)		;start right-hand column
		OIDWeapAll = AddTextOption("Select all Weapons", "")
		OIDWeapOneHand = AddTextOption("Select all One-handed Weapons", "")
		OIDWeapTwoHand = AddTextOption("Select all Two-handed Weapons", "")
		AddHeaderOption("Weapons")
		OIDWeapDaggers = AddToggleOption("Daggers", CCO_WeapDaggerRecipes.getValueInt())
		OIDWeapSwords = AddToggleOption("Swords", CCO_WeapSwordRecipes.getValueInt())
		OIDWeapGreatswords = AddToggleOption("Greatswords", CCO_WeapGreatswordRecipes.getValueInt())
		OIDWeapWarAxe = AddToggleOption("War Axes", CCO_WeapWarAxeRecipes.getValueInt())
		OIDWeapBattleaxe = AddToggleOption("Battleaxes", CCO_WeapBattleaxeRecipes.getValueInt())
		OIDWeapMace = AddToggleOption("Maces", CCO_WeapMaceRecipes.getValueInt())
		OIDWeapWarhammer = AddToggleOption("Warhammers", CCO_WeapWarhammerRecipes.getValueInt())
		OIDWeapBow = AddToggleOption("Ranged", CCO_WeapBowRecipes.getValueInt())
		OIDWeapAmmo = AddToggleOption("Ammo", CCO_WeapAmmoRecipes.getValueInt())
;		AddEmptyOption()
		AddHeaderOption("Accessories")
		OIDMiscCloaks = AddToggleOption("Cloaks", CCO_ClothingCloakRecipes.getValueInt())
		OIDMiscPouches = AddToggleOption("Bags & Pouches", CCO_MiscPouchRecipes.getValueInt())
		OIDMiscAccessories = AddToggleOption("Misc Accessories", CCO_MiscAccessories.getValueInt())
		OIDMiscTools = AddToggleOption("Tools & Utility", CCO_MiscToolRecipes.getValueInt())
	
	elseif (page == "Menu Options")
		SetCursorFillMode(TOP_TO_BOTTOM)
		AddHeaderOption("Additional Crafting Menu Options")
		OIDBreakdownSmelt = AddToggleOption("Breakdown Equipment at Smelter", CCO_OptionBreakdownEquipmentatSmelter.getValueInt())				
		OIDInventoryConditions = AddToggleOption("Inventory Conditions on Crafting Recipes", CCO_OptionDeclutterCraftingMenu.getValueInt())
		if CCO_OptionUseGenericFurPlate.getValue() == 1
			OIDFurRecipes = AddTextOption("Fur and Hide Recipes", "Generic")   
		else
			OIDFurRecipes = AddTextOption("Fur and Hide Recipes", "Specific")
		endif	
		OIDDaedricAtNight = AddToggleOption("Craft Daedric Items Only at Night", CCO_OptionCraftDaedricOnlyAtNight.getValueInt())
		OIDOriental = AddToggleOption("Eastern-style Items", CCO_OrientalStyleRecipes.getValueInt())
		OIDNonLore = AddToggleOption("Non-Lore Fantasy Items", CCO_FantasyNonLoreRecipes.getValueInt())
		AddEmptyOption()
		AddHeaderOption("Additional Items")
		OIDUnenchant = AddToggleOption("Unenchanted Variations", CCO_OptionUnenchantedUniques.getValueInt())					
		OIDReplicas = AddToggleOption("Artifact Replicas", CCO_OptionArtifactReplicas.getValueInt())		
		OIDMSCirclets = AddToggleOption("Matching Set Circlets", CCO_OptionArmoredCirclets.getValueInt())							
	;	OIDMaleOnly = AddToggleOption("Male Only Clothing & Armor", CCO_ArmorOnlyMALE.getValueInt())
	;	OIDFemaleOnly = AddToggleOption("Female Only Clothing & Armor", CCO_ArmorOnlyFEMALE.getValueInt())
	; crafting menu = show pop-up crafting options when activating the forge
		
		SetCursorPosition(1)		;start right-hand column
		AddHeaderOption("Leveled Items")
		OIDLevelUp = AddTextOption("Upgrade Leveled Items", "")  
		OIDLevelUpSpell = AddToggleOption("Level Up Spell", PlayerHasLevelUpSpell_CCO.getValueInt())
		OIDLevelUpAuto = AddToggleOption("Auto Upgrade", LevelUpSpellAutoRun_CCO.getValueInt())
		
	elseif (page == "Learning")
		SetCursorFillMode(TOP_TO_BOTTOM)
		AddHeaderOption("Learning")		
		OIDLearning = AddToggleOption("Enable Learning Recipes", CCO_LearningEnabled.getValueInt())			
		OIDLearningReq = AddSliderOption("Learning Points required to Craft", LearningReqVal, "{1}")
		AddEmptyOption()
		AddHeaderOption("Smithing Experience")
		OIDTanningRackXP = AddToggleOption("Tanning Rack", SmithingXPTanningRackGV_CCO.getValueInt())
		OIDSmelterXP = AddToggleOption("Smelter", SmithingXPSmelterGV_CCO.getValueInt())
		SetCursorPosition(1)		;start right-hand column
		if CCO_LearningEnabled.getValueInt() == 1
			AddHeaderOption("Accumulated Learning Points")
			OIDDraugrLearning = AddTextOption("Ancient Nord Learning", CCO_LearningDraugr.getValueInt())
			OIDFalmerLearning = AddTextOption("Falmer Learning", CCO_LearningFalmer.getValueInt())
			OIDFalmerHeavyLearning = AddTextOption("Falmer Heavy Learning", CCO_LearningFalmerHeavy.getValueInt())
			OIDForswornLearning = AddTextOption("Forsworn Learning", CCO_LearningForsworn.getValueInt())
	;learn to craft guard armor
	;Bonemold?, chitin?, cultist armor, skaal clothing, thalmor armor(cabals), thalmor glass (cabals), 
		endif

	elseif (page == "Mining & Materials")
		SetCursorFillMode(TOP_TO_BOTTOM)
		AddHeaderOption("Mining")	
		OIDMiningPresetsMenu = AddMenuOption("Mining Presets", MiningPresetsMenu[MiningPresetsSelection])
		if UseCustomMiningSettings == 0
			OIDMiningStrikes = AddSliderOption("Animations cycles per drop", MiningStrikesVal, "{1}", OPTION_FLAG_DISABLED)				;mining script still needs to be applied to unused ore activators
			OIDMiningAttackStrikes = AddSliderOption("Attack Strikes per drop", MiningAttackStrikesVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresDrop = AddSliderOption("Ores per drop", MiningOresDropVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresTotal = AddSliderOption("Drops per vein", MiningOresTotalVal, "{1}", OPTION_FLAG_DISABLED)	
		else
			OIDMiningStrikes = AddSliderOption("Animations cycles per drop", MiningStrikesVal, "{1}", OPTION_FLAG_NONE)				
			OIDMiningAttackStrikes = AddSliderOption("Attack Strikes per drop", MiningAttackStrikesVal, "{1}", OPTION_FLAG_NONE)		
			OIDMiningOresDrop = AddSliderOption("Ores per drop", MiningOresDropVal, "{1}", OPTION_FLAG_NONE)		
			OIDMiningOresTotal = AddSliderOption("Drops per vein", MiningOresTotalVal, "{1}", OPTION_FLAG_NONE)	
		endif
		OIDGemListMenu = AddMenuOption("Gem List", GemListMenu[GemListSelection])	
		OIDGemChance = AddSliderOption("Gem Chance", GemChanceVal, "{1}%")
		OIDExperienceMining = AddSliderOption("Smithing Experience Earned", MiningSkillIncreaseGV_CCO.getValueInt())
		SetCursorPosition(1)		;start right-hand column
		AddHeaderOption("Rename Materials")
		OIDCorundumRename = AddToggleOption("Corundum to Copper", CorundumRename_CCO.getValueInt())			
		OIDMalachiteRename1 = AddToggleOption("Malachite to Glass", MalachiteRenameGlass_CCO.getValueInt())			
		OIDMalachiteRename2 = AddToggleOption("Malachite to Moldavite", MalachiteRenameMoldavite_CCO.getValueInt())			
		OIDQuicksilverRename = AddToggleOption("Quicksilver to Mithril", QuicksilverRename_CCO.getValueInt())	
		AddEmptyOption()
		AddHeaderOption("Firewood")			
		OIDFirewoodPerUse = AddSliderOption("Firewood per chop", FirewoodPerUseVal, "{1}")	
		OIDFirewoodMax = AddSliderOption("Max per activation", FirewoodMaxVal, "{1}")																						
	;allow chopping with any axe yes/no
	;require proper tools to use other workstations...tongs and hammer for forge, shovel for smelter, hammer for armor bench		
	

	elseif (page == "Balance")	
		SetCursorFillMode(TOP_TO_BOTTOM)
		OIDSilverWeap = AddSliderOption("Silver Weapon Bonus", SilverWeapVal, "{1}%")
		AddEmptyOption()
		AddHeaderOption("Tempering Tweaks")
		OIDTemperTweaks = AddToggleOption("Variable Tempering Strength", TemperTweakToggleGV_CCO.getValueInt())
		if TemperTweakToggleGV_CCO.getValueInt() == 1
			OIDTemperBase = AddSliderOption("Baseline Adjustment", TempBaseVal, "{1}%")
			OIDTemperDagger = AddSliderOption("Daggers", TempDaggerVal, "{1}%")
			OIDTemperBow = AddSliderOption("Bows", TempBowVal, "{1}%")
			OIDTemper2Hand = AddSliderOption("Two-Hand Weapons", Temp2HandVal, "{1}%")
			OIDTemperLArmor = AddSliderOption("Light Armor", TempLArmorVal, "{1}%")
			OIDTemperHide = AddSliderOption("Non-metallic Armors", TempHideVal, "{1}%")
			OIDTemperShields = AddSliderOption("Shields", TempShieldVal, "{1}%")
			OIDTemperCuirass = AddSliderOption("Cuirasses", TempCuirassVal, "{1}%")
			OIDTemperGauntlets = AddSliderOption("Gauntlets", TempGauntletVal, "{1}%")
		endif
		
		SetCursorPosition(1)		;start right-hand column
		if MCM_CCODragonbornInst.GetValue() == 1
			OIDStalhrimEnch = AddSliderOption("Stalhrim Enchanting Bonus", StalhrimEnchVal, "{1}%")
		endif
		AddEmptyOption()
		AddHeaderOption("Enchanting Tweaks")
		OIDEnchantTweaks = AddToggleOption("Variable Enchantment Strength", EnchantTweakToggleGV_CCO.getValueInt())
		if EnchantTweakToggleGV_CCO.getValueInt() == 1
			OIDEnchClothing = AddSliderOption("Clothing", EnchClothingVal, "{1}%")
			OIDEnchBody = AddSliderOption("Body/Torso", EnchBodyVal, "{1}%")
			OIDEnchMinor = AddSliderOption("Head/Hands/Feet", EnchMinorVal, "{1}%")
			OIDEnchJewelry = AddSliderOption("All Jewelry", EnchJewelryVal, "{1}%")
			OIDEnchJewelryEx = AddSliderOption("Expensive Jewelry", EnchJewelryExVal, "{1}%")
			OIDEnchJewelryEq = AddSliderOption("Exquisite Jewelry", EnchJewelryEqVal, "{1}%")
			OIDEnchDaggers = AddSliderOption("Daggers", EnchDaggersVal, "{1}%")
			OIDEnchBows = AddSliderOption("Bows", EnchBowsVal, "{1}%")
			OIDEnch1Hand = AddSliderOption("One-Hand Weapons", Ench1HandVal, "{1}%")
			OIDEnch2Hand = AddSliderOption("Two-Hand Weapons", Ench2HandVal, "{1}%")
		endif
		

	elseif (page == "Mods")
		SetCursorFillMode(TOP_TO_BOTTOM)
;		AddHeaderOption("Detected Mods")
;		if MCM_CCODawnguardInst.GetValue() == 1
;			OIDDawnguardInst = AddTextOption("Dawnguard", "")
;		endif
		AddHeaderOption("Display Crafting Recipes")
		if MCM_CCODawnguardInst.GetValue() == 1
			OIDDawnguard = AddToggleOption("Dawnguard Items", CCO_DLCDawnguard.getValueInt())
		endif
		if MCM_CCOHearthfireInst.GetValue() == 1
			OIDHearthfire = AddToggleOption("Hearthfire Items", CCO_DLCHearthfire.getValueInt())
		endif
		if MCM_CCODragonbornInst.GetValue() == 1
			OIDDragonborn = AddToggleOption("Dragonborn Items", CCO_DLCDragonborn.getValueInt())
		endif
		OIDCCORecipes = AddToggleOption("Complete Crafting Overhaul", CCO_CCOAddedRecipes.getValueInt())
		if MCM_CCOBandoliersInst.GetValueInt() == 1
			OIDBandoliersCraft = AddToggleOption("Bandoliers, Bags and Pouches", CCO_MODBandoliers.getValueInt())
		endif
		if MCM_CCOBookofSilenceInst.GetValueInt() == 1
			OIDBookofSilenceCraft = AddToggleOption("Book of Silence", CCO_MODBookofSilence.getValueInt())
		endif
		if MCM_CCOCloaksInst.GetValueInt() == 1
			OIDCloaksCraft = AddToggleOption("Cloaks of Skyrim", CCO_MODCloaks.getValueInt())
		endif
		if MCM_CCOHeavyArmoryInst.GetValueInt() == 1
			OIDHeavyArmoryCraft = AddToggleOption("Heavy Armory", CCO_MODHeavyArmory.getValueInt())
		endif
		if MCM_CCOImmersiveArmorsInst.GetValueInt() == 1
			OIDImmersiveArmorsCraft = AddToggleOption("Immersive Armors", CCO_MODImmersiveArmors.getValueInt())
		endif
		if MCM_CCOJaysusInst.GetValueInt() == 1
			OIDJaysusCraft = AddToggleOption("Jaysus Swords", CCO_MODJaysusSwords.getValueInt())
		endif
		OIDJewelCraft = AddToggleOption("JewelCraft", CCO_MODJewelCraft.getValueInt())
		if MCM_CCOWinterIsComingInst.GetValueInt() == 1
			OIDWinterIsComingCraft = AddToggleOption("Winter Is Coming", CCO_MODWinterIsComing.getValueInt())
		endif
		
		SetCursorPosition(1)		;start right-hand column
		AddHeaderOption("Optional Integrated Mods")
		OIDBandoliersInst = AddToggleOption("Bandolier - Bags and Pouches", MCM_CCOBandoliersInst.getValueInt())
		if MCM_CCOBandoliersInst.getValueInt() == 1 && MCM_CCODawnguardInst.GetValue() == 1
			OIDBandoliersDGInst = AddToggleOption("Bandolier - Dawnguard", MCM_CCOBandoliersDGInst.getValueInt())
		endif
		OIDJaysusInst = AddToggleOption("Jaysus Swords", MCM_CCOJaysusInst.getValueInt())
		AddEmptyOption()
		AddHeaderOption("Distribute in Lists")
		if MCM_CCOBandoliersInst.GetValueInt() == 1
			OIDBandoliersDist = AddToggleOption("Bandoliers, Bags and Pouches", MCM_CCOBandoliersDist.getValueInt())
		endif
		if MCM_CCOJaysusInst.GetValueInt() == 1
			OIDJaysusDist = AddToggleOption("Jaysus Swords", MCM_CCOJaysusDist.getValueInt())
		endif
		OIDJewelCraftDist = AddToggleOption("JewelCraft", MCM_CCOJewelCraftDist.getValueInt())
		

	elseif (page == "Mod Options")
		SetCursorFillMode(TOP_TO_BOTTOM)
		if MCM_CCODawnguardInst.GetValue() == 1
			AddHeaderOption("Dawnguard")
			if MCM_DawnguardWorkbench.getValue() == 0
				OIDDawnguardWorkbench = AddTextOption("Craft Dawnguard Items", "At Any Forge")	   
			else			
				OIDDawnguardWorkbench = AddTextOption("Craft Dawnguard Items", "Fort Dawnguard")	
			endif	
			if MCM_CCOCrossbowsInWorld.getValue() == 0
				OIDDawnguardOnlyCrossbow = AddTextOption("Crossbows and Bolts", "Dawnguard Only")	   
			else			
				OIDDawnguardOnlyCrossbow = AddTextOption("Crossbows and Bolts", "Throughout Skyrim")	
			endif	
		AddEmptyOption()
		endif
		if MCM_CCOBandoliersInst.getValueInt() == 1
			AddHeaderOption("Bandolier - Bags and Pouches")
			OIDBandoliersEnchantSmall = AddSliderOption("Small Enchantment Value", BandolierSmallVal, "{1}")
			OIDBandoliersEnchantMed = AddSliderOption("Medium Enchantment Value", BandolierMedVal, "{1}")
			OIDBandoliersEnchantLarge = AddSliderOption("Large Enchantment Value", BandolierLargeVal, "{1}")
			OIDBandoliersEnchantXLarge = AddSliderOption("XLarge Enchantment Value", BandolierXLargeVal, "{1}")
			if MCM_BandolierWorkbench.getValue() == 0
				OIDBandoliersWorkbench = AddTextOption("Crafting Location", "Tanning Rack")	   
			else			
				OIDBandoliersWorkbench = AddTextOption("Crafting Location", "Forge")	
			endif
			OIDBandoliersDistChance = AddSliderOption("Distribution Chance", BandolierChanceVal, "{1}%")
			AddEmptyOption()
		endif
		SetCursorPosition(1)		;start right-hand column
		if MCM_CCOBookofSilenceInst.getValueInt() == 1
			AddHeaderOption("Book of Silence")
			OIDBookofSilenceRace = AddToggleOption("Racial Restrictions", CCO_OptionRacialRestrictions.getValueInt())
			OIDGoldArmor = AddSliderOption("Gilded Ebony Enchanting Bonus", GoldArmorVal, "{1}%")
			OIDSilverArmor = AddSliderOption("Silver Ebony Bonus", SilverArmorVal, "{1}%")
			AddEmptyOption()
		endif
		if MCM_CCOCloaksInst.GetValueInt() == 1
			AddHeaderOption("Cloaks of Skyrim")
			OIDCloaksRequireBook = AddToggleOption("Require Tailoring Book", CCO_MODCloaksRequireBook.getValueInt())
			AddEmptyOption()
		endif
		if MCM_CCOWinterIsComingInst.GetValueInt() == 1
			AddHeaderOption("Winter Is Coming")
			OIDWinterIsComingRequireKit = AddToggleOption("Require Fur Crafting Kit", CCO_MODWICRequireBasket.getValueInt())
			AddEmptyOption()	
		;Winter is Coming... adjust enchantment values... distribution chance?		
		endif
			
	;tweak Dawnguard bonus to apply to all undead, not just vampires?
			
	elseif (page == "Uninstall")
		SetCursorFillMode(TOP_TO_BOTTOM)
		OIDUninstallMod = AddTextOption("Uninstall Mod", "")
	endif
endEvent



event OnOptionMenuOpen(int option)
	if (option == OIDGemListMenu)
		SetMenuDialogOptions(GemListMenu)
		SetMenuDialogStartIndex(GemListSelection)
		SetMenuDialogDefaultIndex(2)
	elseif (option == OIDMiningPresetsMenu)
		SetMenuDialogOptions(MiningPresetsMenu)
		SetMenuDialogStartIndex(MiningPresetsSelection)
		SetMenuDialogDefaultIndex(0)
	endif
endEvent


event OnOptionMenuAccept(int option, int index)
	if (option == OIDGemListMenu)
		GemListSelection = index
		SetMenuOptionValue(OIDGemListMenu, GemListMenu[GemListSelection])
		if GemListSelection == 0
			MiningGemLeveledGV_CCO.Setvalue(0)
			MiningGemUnLeveledGV_CCO.Setvalue(100)
			MiningGemSpecialGV_CCO.Setvalue(100)
		elseif GemListSelection == 1
			MiningGemLeveledGV_CCO.Setvalue(100)
			MiningGemUnLeveledGV_CCO.Setvalue(0)
			MiningGemSpecialGV_CCO.Setvalue(100)
		else
			MiningGemLeveledGV_CCO.Setvalue(100)
			MiningGemUnLeveledGV_CCO.Setvalue(100)
			MiningGemSpecialGV_CCO.Setvalue(0)
		endif
	elseif (option == OIDMiningPresetsMenu)
		MiningPresetsSelection = index
		SetMenuOptionValue(OIDMiningPresetsMenu, MiningPresetsMenu[MiningPresetsSelection])
		if MiningPresetsSelection == 0				;vanilla values = 3 ore in 9 strikes
			MiningStrikesVal = 1
			SetSliderOptionValue(OIDMiningStrikes, MiningStrikesVal, "{1}")
			StrikesBeforeCollectionGV_CCO.Setvalue(MiningStrikesVal)
			MiningAttackStrikesVal = 3
			SetSliderOptionValue(OIDMiningAttackStrikes, MiningAttackStrikesVal, "{1}")
			AttackStrikesBeforeCollectionGV_CCO.Setvalue(MiningAttackStrikesVal)
			MiningOresDropVal = 1
			SetSliderOptionValue(OIDMiningOresDrop, MiningOresDropVal, "{1}")
			ResourceCountGV_CCO.Setvalue(MiningOresDropVal)
			MiningOresTotalVal = 3
			SetSliderOptionValue(OIDMiningOresTotal, MiningOresTotalVal, "{1}")
			ResourceCountTotalGV_CCO.Setvalue(MiningOresTotalVal)
			OIDMiningStrikes = AddSliderOption("Animations cycles per drop", MiningStrikesVal, "{1}", OPTION_FLAG_DISABLED)							
			OIDMiningAttackStrikes = AddSliderOption("Attack Strikes per drop", MiningAttackStrikesVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresDrop = AddSliderOption("Ores per drop", MiningOresDropVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresTotal = AddSliderOption("Drops per vein", MiningOresTotalVal, "{1}", OPTION_FLAG_DISABLED)	
			UseCustomMiningSettings = 0
			ForcePageReset()
		elseif MiningPresetsSelection == 1			;more ore, same rate = 6 ore in 18 strikes
			MiningStrikesVal = 1
			SetSliderOptionValue(OIDMiningStrikes, MiningStrikesVal, "{1}")
			StrikesBeforeCollectionGV_CCO.Setvalue(MiningStrikesVal)
			MiningAttackStrikesVal = 3
			SetSliderOptionValue(OIDMiningAttackStrikes, MiningAttackStrikesVal, "{1}")
			AttackStrikesBeforeCollectionGV_CCO.Setvalue(MiningAttackStrikesVal)
			MiningOresDropVal = 1
			SetSliderOptionValue(OIDMiningOresDrop, MiningOresDropVal, "{1}")
			ResourceCountGV_CCO.Setvalue(MiningOresDropVal)
			MiningOresTotalVal = 6
			SetSliderOptionValue(OIDMiningOresTotal, MiningOresTotalVal, "{1}")
			ResourceCountTotalGV_CCO.Setvalue(MiningOresTotalVal)
			OIDMiningStrikes = AddSliderOption("Animations cycles per drop", MiningStrikesVal, "{1}", OPTION_FLAG_DISABLED)							
			OIDMiningAttackStrikes = AddSliderOption("Attack Strikes per drop", MiningAttackStrikesVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresDrop = AddSliderOption("Ores per drop", MiningOresDropVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresTotal = AddSliderOption("Drops per vein", MiningOresTotalVal, "{1}", OPTION_FLAG_DISABLED)	
			UseCustomMiningSettings = 0
			ForcePageReset()
		elseif MiningPresetsSelection == 2			;much more ore, same rate = 24 ore in 72 strikes
			MiningStrikesVal = 1
			SetSliderOptionValue(OIDMiningStrikes, MiningStrikesVal, "{1}")
			StrikesBeforeCollectionGV_CCO.Setvalue(MiningStrikesVal)
			MiningAttackStrikesVal = 3
			SetSliderOptionValue(OIDMiningAttackStrikes, MiningAttackStrikesVal, "{1}")
			AttackStrikesBeforeCollectionGV_CCO.Setvalue(MiningAttackStrikesVal)
			MiningOresDropVal = 1
			SetSliderOptionValue(OIDMiningOresDrop, MiningOresDropVal, "{1}")
			ResourceCountGV_CCO.Setvalue(MiningOresDropVal)
			MiningOresTotalVal = 24
			SetSliderOptionValue(OIDMiningOresTotal, MiningOresTotalVal, "{1}")
			ResourceCountTotalGV_CCO.Setvalue(MiningOresTotalVal)
			OIDMiningStrikes = AddSliderOption("Animations cycles per drop", MiningStrikesVal, "{1}", OPTION_FLAG_DISABLED)							
			OIDMiningAttackStrikes = AddSliderOption("Attack Strikes per drop", MiningAttackStrikesVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresDrop = AddSliderOption("Ores per drop", MiningOresDropVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresTotal = AddSliderOption("Drops per vein", MiningOresTotalVal, "{1}", OPTION_FLAG_DISABLED)	
			UseCustomMiningSettings = 0
			ForcePageReset()
		elseif MiningPresetsSelection == 3			;faster mining = 3 ores in 3 strikes
			MiningStrikesVal = 1
			SetSliderOptionValue(OIDMiningStrikes, MiningStrikesVal, "{1}")
			StrikesBeforeCollectionGV_CCO.Setvalue(MiningStrikesVal)
			MiningAttackStrikesVal = 3
			SetSliderOptionValue(OIDMiningAttackStrikes, MiningAttackStrikesVal, "{1}")
			AttackStrikesBeforeCollectionGV_CCO.Setvalue(MiningAttackStrikesVal)
			MiningOresDropVal = 3
			SetSliderOptionValue(OIDMiningOresDrop, MiningOresDropVal, "{1}")
			ResourceCountGV_CCO.Setvalue(MiningOresDropVal)
			MiningOresTotalVal = 1
			SetSliderOptionValue(OIDMiningOresTotal, MiningOresTotalVal, "{1}")
			ResourceCountTotalGV_CCO.Setvalue(MiningOresTotalVal)
			OIDMiningStrikes = AddSliderOption("Animations cycles per drop", MiningStrikesVal, "{1}", OPTION_FLAG_DISABLED)							
			OIDMiningAttackStrikes = AddSliderOption("Attack Strikes per drop", MiningAttackStrikesVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresDrop = AddSliderOption("Ores per drop", MiningOresDropVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresTotal = AddSliderOption("Drops per vein", MiningOresTotalVal, "{1}", OPTION_FLAG_DISABLED)	
			UseCustomMiningSettings = 0
			ForcePageReset()
		elseif MiningPresetsSelection == 4			;faster mining and more ore = 6 ores in 3 strikes
			MiningStrikesVal = 1
			SetSliderOptionValue(OIDMiningStrikes, MiningStrikesVal, "{1}")
			StrikesBeforeCollectionGV_CCO.Setvalue(MiningStrikesVal)
			MiningAttackStrikesVal = 3
			SetSliderOptionValue(OIDMiningAttackStrikes, MiningAttackStrikesVal, "{1}")
			AttackStrikesBeforeCollectionGV_CCO.Setvalue(MiningAttackStrikesVal)
			MiningOresDropVal = 6
			SetSliderOptionValue(OIDMiningOresDrop, MiningOresDropVal, "{1}")
			ResourceCountGV_CCO.Setvalue(MiningOresDropVal)
			MiningOresTotalVal = 1
			SetSliderOptionValue(OIDMiningOresTotal, MiningOresTotalVal, "{1}")
			ResourceCountTotalGV_CCO.Setvalue(MiningOresTotalVal)
			OIDMiningStrikes = AddSliderOption("Animations cycles per drop", MiningStrikesVal, "{1}", OPTION_FLAG_DISABLED)							
			OIDMiningAttackStrikes = AddSliderOption("Attack Strikes per drop", MiningAttackStrikesVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresDrop = AddSliderOption("Ores per drop", MiningOresDropVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresTotal = AddSliderOption("Drops per vein", MiningOresTotalVal, "{1}", OPTION_FLAG_DISABLED)	
			UseCustomMiningSettings = 0
			ForcePageReset()
		elseif MiningPresetsSelection == 5			;slower mining = 3 ore in 18 strikes
			MiningStrikesVal = 2
			SetSliderOptionValue(OIDMiningStrikes, MiningStrikesVal, "{1}")
			StrikesBeforeCollectionGV_CCO.Setvalue(MiningStrikesVal)
			MiningAttackStrikesVal = 3
			SetSliderOptionValue(OIDMiningAttackStrikes, MiningAttackStrikesVal, "{1}")
			AttackStrikesBeforeCollectionGV_CCO.Setvalue(MiningAttackStrikesVal)
			MiningOresDropVal = 1
			SetSliderOptionValue(OIDMiningOresDrop, MiningOresDropVal, "{1}")
			ResourceCountGV_CCO.Setvalue(MiningOresDropVal)
			MiningOresTotalVal = 3
			SetSliderOptionValue(OIDMiningOresTotal, MiningOresTotalVal, "{1}")
			ResourceCountTotalGV_CCO.Setvalue(MiningOresTotalVal)
			OIDMiningStrikes = AddSliderOption("Animations cycles per drop", MiningStrikesVal, "{1}", OPTION_FLAG_DISABLED)							
			OIDMiningAttackStrikes = AddSliderOption("Attack Strikes per drop", MiningAttackStrikesVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresDrop = AddSliderOption("Ores per drop", MiningOresDropVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresTotal = AddSliderOption("Drops per vein", MiningOresTotalVal, "{1}", OPTION_FLAG_DISABLED)	
			UseCustomMiningSettings = 0
			ForcePageReset()
		elseif MiningPresetsSelection == 6			;slower mining and much more ore = 24 ore in 144 strikes
			MiningStrikesVal = 2
			SetSliderOptionValue(OIDMiningStrikes, MiningStrikesVal, "{1}")
			StrikesBeforeCollectionGV_CCO.Setvalue(MiningStrikesVal)
			MiningAttackStrikesVal = 3
			SetSliderOptionValue(OIDMiningAttackStrikes, MiningAttackStrikesVal, "{1}")
			AttackStrikesBeforeCollectionGV_CCO.Setvalue(MiningAttackStrikesVal)
			MiningOresDropVal = 1
			SetSliderOptionValue(OIDMiningOresDrop, MiningOresDropVal, "{1}")
			ResourceCountGV_CCO.Setvalue(MiningOresDropVal)
			MiningOresTotalVal = 24
			SetSliderOptionValue(OIDMiningOresTotal, MiningOresTotalVal, "{1}")
			ResourceCountTotalGV_CCO.Setvalue(MiningOresTotalVal)
			OIDMiningStrikes = AddSliderOption("Animations cycles per drop", MiningStrikesVal, "{1}", OPTION_FLAG_DISABLED)							
			OIDMiningAttackStrikes = AddSliderOption("Attack Strikes per drop", MiningAttackStrikesVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresDrop = AddSliderOption("Ores per drop", MiningOresDropVal, "{1}", OPTION_FLAG_DISABLED)		
			OIDMiningOresTotal = AddSliderOption("Drops per vein", MiningOresTotalVal, "{1}", OPTION_FLAG_DISABLED)	
			UseCustomMiningSettings = 0
			ForcePageReset()
		else										;use custom settings
			OIDMiningStrikes = AddSliderOption("Animations cycles per drop", MiningStrikesVal, "{1}", OPTION_FLAG_NONE)							
			OIDMiningAttackStrikes = AddSliderOption("Attack Strikes per drop", MiningAttackStrikesVal, "{1}", OPTION_FLAG_NONE)		
			OIDMiningOresDrop = AddSliderOption("Ores per drop", MiningOresDropVal, "{1}", OPTION_FLAG_NONE)		
			OIDMiningOresTotal = AddSliderOption("Drops per vein", MiningOresTotalVal, "{1}", OPTION_FLAG_NONE)	
			UseCustomMiningSettings = 1
			ForcePageReset()
		endif
	endIf
endEvent


Event OnOptionSelect(int option)
	If (option == OIDAllOn)
		CCO_ArmorLightRecipes.setValue(1)
		CCO_ArmorHeavyRecipes.setValue(1)
		CCO_ArmorClothingRecipes.setValue(1)
		CCO_ArmorBootRecipes.setValue(1)
		CCO_ArmorCuirassRecipes.setValue(1)
		CCO_ArmorGauntletRecipes.setValue(1)
		CCO_ArmorHelmetRecipes.setValue(1)
		CCO_ArmorShieldRecipes.setValue(1)
		CCO_ClothingRobeRecipes.setValue(1)
		CCO_ClothingHoodRecipes.setValue(1)
		CCO_ClothingGlovesRecipes.setValue(1)
		CCO_ClothingBootRecipes.setValue(1)
		CCO_WeapAmmoRecipes.setValue(1)
		CCO_WeapBowRecipes.setValue(1)
		CCO_WeapDaggerRecipes.setValue(1)
		CCO_WeapSwordRecipes.setValue(1)
		CCO_WeapGreatswordRecipes.setValue(1)
		CCO_WeapBattleaxeRecipes.setValue(1)
		CCO_WeapMaceRecipes.setValue(1)
		CCO_WeapWarAxeRecipes.setValue(1)
		CCO_WeapWarhammerRecipes.setValue(1)
		CCO_MiscCircletRecipes.setValue(1)
		CCO_MiscNecklaceRecipes.setValue(1)
		CCO_MiscRingRecipes.setValue(1)
		CCO_MiscPouchRecipes.setValue(1)
		CCO_MiscToolRecipes.setValue(1)
		CCO_ClothingCloakRecipes.setValue(1)
		CCO_MiscAccessories.setValue(1)
		ForcePageReset()
	elseif (option == OIDAllOff)
		CCO_ArmorLightRecipes.setValue(0)
		CCO_ArmorHeavyRecipes.setValue(0)
		CCO_ArmorClothingRecipes.setValue(0)
		CCO_ArmorBootRecipes.setValue(0)
		CCO_ArmorCuirassRecipes.setValue(0)
		CCO_ArmorGauntletRecipes.setValue(0)
		CCO_ArmorHelmetRecipes.setValue(0)
		CCO_ArmorShieldRecipes.setValue(0)
		CCO_ClothingRobeRecipes.setValue(0)
		CCO_ClothingHoodRecipes.setValue(0)
		CCO_ClothingGlovesRecipes.setValue(0)
		CCO_ClothingBootRecipes.setValue(0)
		CCO_WeapAmmoRecipes.setValue(0)
		CCO_WeapBowRecipes.setValue(0)
		CCO_WeapDaggerRecipes.setValue(0)
		CCO_WeapSwordRecipes.setValue(0)
		CCO_WeapGreatswordRecipes.setValue(0)
		CCO_WeapBattleaxeRecipes.setValue(0)
		CCO_WeapMaceRecipes.setValue(0)
		CCO_WeapWarAxeRecipes.setValue(0)
		CCO_WeapWarhammerRecipes.setValue(0)
		CCO_MiscCircletRecipes.setValue(0)
		CCO_MiscNecklaceRecipes.setValue(0)
		CCO_MiscRingRecipes.setValue(0)
		CCO_MiscPouchRecipes.setValue(0)
		CCO_MiscToolRecipes.setValue(0)
		CCO_ClothingCloakRecipes.setValue(0)
		CCO_MiscAccessories.setValue(0)
		ForcePageReset()	
	elseif (option == OIDWeapAll)
		CCO_WeapAmmoRecipes.setValue(1)
		CCO_WeapBowRecipes.setValue(1)
		CCO_WeapDaggerRecipes.setValue(1)
		CCO_WeapSwordRecipes.setValue(1)
		CCO_WeapGreatswordRecipes.setValue(1)
		CCO_WeapBattleaxeRecipes.setValue(1)
		CCO_WeapMaceRecipes.setValue(1)
		CCO_WeapWarAxeRecipes.setValue(1)
		CCO_WeapWarhammerRecipes.setValue(1)
		ForcePageReset()
	elseif (option == OIDWeapOneHand)
		CCO_WeapDaggerRecipes.setValue(1)
		CCO_WeapSwordRecipes.setValue(1)
		CCO_WeapMaceRecipes.setValue(1)
		CCO_WeapWarAxeRecipes.setValue(1)
		ForcePageReset()	
	elseif (option == OIDWeapTwoHand)
		CCO_WeapBowRecipes.setValue(1)
		CCO_WeapGreatswordRecipes.setValue(1)
		CCO_WeapBattleaxeRecipes.setValue(1)
		CCO_WeapWarhammerRecipes.setValue(1)
		ForcePageReset()	
	elseif (option == OIDArmorAll)
		CCO_ArmorLightRecipes.setValue(1)
		CCO_ArmorHeavyRecipes.setValue(1)
		CCO_ArmorClothingRecipes.setValue(1)
		CCO_ArmorBootRecipes.setValue(1)
		CCO_ArmorCuirassRecipes.setValue(1)
		CCO_ArmorGauntletRecipes.setValue(1)
		CCO_ArmorHelmetRecipes.setValue(1)
		CCO_ArmorShieldRecipes.setValue(1)
		CCO_ClothingRobeRecipes.setValue(1)
		CCO_ClothingHoodRecipes.setValue(1)
		CCO_ClothingGlovesRecipes.setValue(1)
		CCO_ClothingBootRecipes.setValue(1)
		CCO_MiscPouchRecipes.setValue(0)
		CCO_ClothingCloakRecipes.setValue(0)
		CCO_MiscAccessories.setValue(0)
		ForcePageReset()		
	elseif (option == OIDMiscJewelryAll)
		CCO_MiscCircletRecipes.setValue(1)
		CCO_MiscNecklaceRecipes.setValue(1)
		CCO_MiscRingRecipes.setValue(1)
		ForcePageReset()
	elseif (option == OIDWeapDaggers)	
		if CCO_WeapDaggerRecipes.GetValueInt() == 0
			CCO_WeapDaggerRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_WeapDaggerRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDWeapSwords)	
		if CCO_WeapSwordRecipes.GetValueInt() == 0
			CCO_WeapSwordRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_WeapSwordRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDWeapGreatswords)	
		if CCO_WeapGreatswordRecipes.GetValueInt() == 0
			CCO_WeapGreatswordRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_WeapGreatswordRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDWeapWarAxe)	
		if CCO_WeapWarAxeRecipes.GetValueInt() == 0
			CCO_WeapWarAxeRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_WeapWarAxeRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDWeapBattleaxe)	
		if CCO_WeapBattleaxeRecipes.GetValueInt() == 0
			CCO_WeapBattleaxeRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_WeapBattleaxeRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDWeapMace)	
		if CCO_WeapMaceRecipes.GetValueInt() == 0
			CCO_WeapMaceRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_WeapMaceRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDWeapWarhammer)	
		if CCO_WeapWarhammerRecipes.GetValueInt() == 0
			CCO_WeapWarhammerRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_WeapWarhammerRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDWeapBow)	
		if CCO_WeapBowRecipes.GetValueInt() == 0
			CCO_WeapBowRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_WeapBowRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDWeapAmmo)	
		if CCO_WeapAmmoRecipes.GetValueInt() == 0
			CCO_WeapAmmoRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_WeapAmmoRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDArmorLight)	
		if CCO_ArmorLightRecipes.GetValueInt() == 0 
			CCO_ArmorLightRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_ArmorLightRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDArmorHeavy)	
		if CCO_ArmorHeavyRecipes.GetValueInt() == 0
			CCO_ArmorHeavyRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_ArmorHeavyRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDArmorClothing)	
		if CCO_ArmorClothingRecipes.GetValueInt() == 0
			CCO_ArmorClothingRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_ArmorClothingRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDArmorCuirass)	
		if CCO_ArmorCuirassRecipes.GetValueInt() == 0 || CCO_ClothingRobeRecipes.GetValueInt() == 0
			CCO_ArmorCuirassRecipes.setValue(1)
			CCO_ClothingRobeRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_ArmorCuirassRecipes.setValue(0)
			CCO_ClothingRobeRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDArmorHelmets)
		if CCO_ArmorHelmetRecipes.GetValueInt() == 0 || CCO_ClothingHoodRecipes.GetValueInt() == 0
			CCO_ArmorHelmetRecipes.setValue(1)
			CCO_ClothingHoodRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_ArmorHelmetRecipes.setValue(0)
			CCO_ClothingHoodRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDArmorGauntlets)	
		if CCO_ArmorGauntletRecipes.GetValueInt() == 0 || CCO_ClothingGlovesRecipes.GetValueInt() == 0
			CCO_ArmorGauntletRecipes.setValue(1)
			CCO_ClothingGlovesRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_ArmorGauntletRecipes.setValue(0)
			CCO_ClothingGlovesRecipes.setValue(0)
			ForcePageReset()
		endif		
	elseif (option == OIDArmorBoots)	
		if CCO_ArmorBootRecipes.GetValueInt() == 0 || CCO_ClothingBootRecipes.GetValueInt() == 0
			CCO_ArmorBootRecipes.setValue(1)
			CCO_ClothingBootRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_ArmorBootRecipes.setValue(0)
			CCO_ClothingBootRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDArmorShields)	
		if CCO_ArmorShieldRecipes.GetValueInt() == 0
			CCO_ArmorShieldRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_ArmorShieldRecipes.setValue(0)
			ForcePageReset()
		endif		
	elseif (option == OIDMiscCirclet)	
		if CCO_MiscCircletRecipes.GetValueInt() == 0
			CCO_MiscCircletRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_MiscCircletRecipes.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDMiscNecklace)	
		if CCO_MiscNecklaceRecipes.GetValueInt() == 0
			CCO_MiscNecklaceRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_MiscNecklaceRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDMiscRing)	
		if CCO_MiscRingRecipes.GetValueInt() == 0
			CCO_MiscRingRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_MiscRingRecipes.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDMiscCloaks)	
		if CCO_ClothingCloakRecipes.GetValueInt() == 0
			CCO_ClothingCloakRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_ClothingCloakRecipes.setValue(0)
			ForcePageReset()
		endif		
	elseif (option == OIDMiscPouches)	
		if CCO_MiscPouchRecipes.GetValueInt() == 0
			CCO_MiscPouchRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_MiscPouchRecipes.setValue(0)
			ForcePageReset()
		endif		
	elseif (option == OIDMiscAccessories)	
		if CCO_MiscAccessories.GetValueInt() == 0
			CCO_MiscAccessories.setValue(1)
			ForcePageReset()
		else
			CCO_MiscAccessories.setValue(0)
			ForcePageReset()
		endif		
	elseif (option == OIDJaysusInst)	
		if MCM_CCOJaysusInst.GetValueInt() == 0
			MCM_CCOJaysusInst.setValue(1)
			CCO_MODJaysusSwords.setValue(1)
			MCM_CCOJaysusDist.setValue(1)
			DIST_CCOJaysusSwords_ON.setValue(0)
			DIST_CCOJaysusSwords_OFF.setValue(100)
			JaysusSwordsParentMarker.enable()
			ForcePageReset()
		else
			MCM_CCOJaysusInst.setValue(0)
			CCO_MODJaysusSwords.setValue(0)
			MCM_CCOJaysusDist.setValue(0)
			DIST_CCOJaysusSwords_ON.setValue(100)
			DIST_CCOJaysusSwords_OFF.setValue(0)
			JaysusSwordsParentMarker.disable()
			ForcePageReset()
		endif	
	elseif (option == OIDJaysusCraft)	
		if CCO_MODJaysusSwords.GetValueInt() == 0
			CCO_MODJaysusSwords.setValue(1)
			ForcePageReset()
		else
			CCO_MODJaysusSwords.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDBandoliersInst)	
		if MCM_CCOBandoliersInst.GetValueInt() == 0
			MCM_CCOBandoliersInst.setValue(1)
			CCO_MODBandoliers.setValue(1)
			MCM_CCOBandoliersDist.setValue(1)
			DIST_CCOBandoliersChance.Setvalue(BandolierChanceVal)
			if MCM_CCOBandoliersDGInst.GetValueInt() == 1
				DIST_CCOBandoliers_ON.setValue(0)
				DIST_CCOBandoliers_OFF.setValue(100)
			else
				DIST_CCOBandoliers_ON.setValue(100)
				DIST_CCOBandoliers_OFF.setValue(0)
			endif
			ForcePageReset()
		else
			MCM_CCOBandoliersInst.setValue(0)
			CCO_MODBandoliers.setValue(0)
			MCM_CCOBandoliersDist.setValue(0)
			DIST_CCOBandoliersChance.Setvalue(0)
			DIST_CCOBandoliers_ON.setValue(100)
			DIST_CCOBandoliers_OFF.setValue(0)
			MCM_CCOBandoliersDGInst.setValue(0)
			DIST_CCOBandoliersDG_ON.setValue(100)
			DIST_CCOBandoliersDG_OFF.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDImmersiveArmorsCraft)	
		if CCO_MODImmersiveArmors.GetValueInt() == 0
			CCO_MODImmersiveArmors.setValue(1)
			ForcePageReset()
		else
			CCO_MODImmersiveArmors.setValue(0)
			ForcePageReset()
		endif		
	elseif (option == OIDBandoliersDGInst)	
		if MCM_CCOBandoliersDGInst.GetValueInt() == 0
			MCM_CCOBandoliersDGInst.setValue(1)
			DIST_CCOBandoliers_ON.setValue(0)
			DIST_CCOBandoliers_OFF.setValue(100)
			ForcePageReset()
		else
			MCM_CCOBandoliersDGInst.setValue(0)
			DIST_CCOBandoliersDG_ON.setValue(100)
			DIST_CCOBandoliersDG_OFF.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDBandoliersCraft)	
		if CCO_MODBandoliers.GetValueInt() == 0
			CCO_MODBandoliers.setValue(1)
			ForcePageReset()
		else
			CCO_MODBandoliers.setValue(0)
			ForcePageReset()
		endif		
	elseif (option == OIDLearning)	
		if CCO_LearningEnabled.GetValueInt() == 0
			CCO_LearningEnabled.setValue(1)
			ForcePageReset()
		else
			CCO_LearningEnabled.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDBreakdownSmelt)	
		if CCO_OptionBreakdownEquipmentatSmelter.GetValueInt() == 0
			CCO_OptionBreakdownEquipmentatSmelter.setValue(1)
			ForcePageReset()
		else
			CCO_OptionBreakdownEquipmentatSmelter.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDDawnguard)	
		if CCO_DLCDawnguard.GetValueInt() == 0
			CCO_DLCDawnguard.setValue(1)
			ForcePageReset()
		else
			CCO_DLCDawnguard.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDHearthfire)	
		if CCO_DLCHearthfire.GetValueInt() == 0
			CCO_DLCHearthfire.setValue(1)
			ForcePageReset()
		else
			CCO_DLCHearthfire.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDDragonborn)	
		if CCO_DLCDragonborn.GetValueInt() == 0
			CCO_DLCDragonborn.setValue(1)
			ForcePageReset()
		else
			CCO_DLCDragonborn.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDJewelCraft)	
		if CCO_MODJewelCraft.GetValueInt() == 0
			CCO_MODJewelCraft.setValue(1)
			ForcePageReset()
		else
			CCO_MODJewelCraft.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDJewelCraftDist)	
		if MCM_CCOJewelCraftDist.GetValueInt() == 0
			MCM_CCOJewelCraftDist.setValue(1)
			DIST_CCOJewelCraft_ON.setValue(0)
			DIST_CCOJewelCraft_OFF.setValue(100)
			ForcePageReset()
		else
			MCM_CCOJewelCraftDist.setValue(0)
			DIST_CCOJewelCraft_ON.setValue(100)
			DIST_CCOJewelCraft_OFF.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDJaysusDist)	
		if MCM_CCOJaysusDist.GetValueInt() == 0
			MCM_CCOJaysusDist.setValue(1)
			DIST_CCOJaysusSwords_ON.setValue(0)
			DIST_CCOJaysusSwords_OFF.setValue(100)
			JaysusSwordsParentMarker.enable()
			ForcePageReset()
		else
			MCM_CCOJaysusDist.setValue(0)
			DIST_CCOJaysusSwords_ON.setValue(100)
			DIST_CCOJaysusSwords_OFF.setValue(0)
			JaysusSwordsParentMarker.disable()
			ForcePageReset()
		endif
	elseif (option == OIDBandoliersDist)	
		if MCM_CCOBandoliersDist.GetValueInt() == 0
			MCM_CCOBandoliersDist.setValue(1)
			DIST_CCOBandoliersChance.Setvalue(BandolierChanceVal)
			if MCM_CCOBandoliersDGInst.GetValueInt() == 1
				DIST_CCOBandoliers_ON.setValue(0)
				DIST_CCOBandoliers_OFF.setValue(100)
			else
				DIST_CCOBandoliers_ON.setValue(100)
				DIST_CCOBandoliers_OFF.setValue(0)
			endif
			ForcePageReset()
		else
			MCM_CCOBandoliersDist.setValue(0)
			DIST_CCOBandoliersChance.Setvalue(0)
			DIST_CCOBandoliers_ON.setValue(100)
			DIST_CCOBandoliers_OFF.setValue(0)
			DIST_CCOBandoliersDG_ON.setValue(100)
			DIST_CCOBandoliersDG_OFF.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDNonLore)	
		if CCO_FantasyNonLoreRecipes.GetValueInt() == 0
			CCO_FantasyNonLoreRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_FantasyNonLoreRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDMiscTools)	
		if CCO_MiscToolRecipes.GetValueInt() == 0
			CCO_MiscToolRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_MiscToolRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDOriental)	
		if CCO_OrientalStyleRecipes.GetValueInt() == 0
			CCO_OrientalStyleRecipes.setValue(1)
			ForcePageReset()
		else
			CCO_OrientalStyleRecipes.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDMSCirclets)	
		if CCO_OptionArmoredCirclets.GetValueInt() == 0
			CCO_OptionArmoredCirclets.setValue(1)
			ForcePageReset()
		else
			CCO_OptionArmoredCirclets.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDUnenchant)	
		if CCO_OptionUnenchantedUniques.GetValueInt() == 0
			CCO_OptionUnenchantedUniques.setValue(1)
			ForcePageReset()
		else
			CCO_OptionUnenchantedUniques.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDReplicas)	
		if CCO_OptionArtifactReplicas.GetValueInt() == 0
			CCO_OptionArtifactReplicas.setValue(1)
			ForcePageReset()
		else
			CCO_OptionArtifactReplicas.setValue(0)
			ForcePageReset()
		endif			
	elseif (option == OIDCorundumRename)	
		if CorundumRename_CCO.GetValueInt() == 0
			CorundumRename_CCO.setValue(1)
			CCO_MCMStartupQuest.RenameCorundum()
			ForcePageReset()
		else
			CorundumRename_CCO.setValue(0)
			CCO_MCMStartupQuest.RenameCorundum()
			ForcePageReset()
		endif	
	elseif (option == OIDMalachiteRename1)	
		if MalachiteRenameGlass_CCO.GetValueInt() == 0
			MalachiteRenameGlass_CCO.setValue(1)
			MalachiteRenameMoldavite_CCO.setValue(0)
			CCO_MCMStartupQuest.RenameMalachite()
			ForcePageReset()
		else
			MalachiteRenameGlass_CCO.setValue(0)
			CCO_MCMStartupQuest.RenameMalachite()
			ForcePageReset()
		endif	
	elseif (option == OIDMalachiteRename2)	
		if MalachiteRenameMoldavite_CCO.GetValueInt() == 0
			MalachiteRenameMoldavite_CCO.setValue(1)
			MalachiteRenameGlass_CCO.setValue(0)
			CCO_MCMStartupQuest.RenameMalachite()
			ForcePageReset()
		else
			MalachiteRenameMoldavite_CCO.setValue(0)
			CCO_MCMStartupQuest.RenameMalachite()
			ForcePageReset()
		endif			
	elseif (option == OIDQuicksilverRename)	
		if QuicksilverRename_CCO.GetValueInt() == 0
			QuicksilverRename_CCO.setValue(1)
			CCO_MCMStartupQuest.RenameQuicksilver()
			ForcePageReset()
		else
			QuicksilverRename_CCO.setValue(0)
			CCO_MCMStartupQuest.RenameQuicksilver()
			ForcePageReset()
		endif		
	elseif (option == OIDUninstallMod)
		SetTextOptionValue(option, "Uninstalling CCO")
		CCO_MCMStartupQuest.UninstallCCO()
		Debug.MessageBox("You may now save and deactivate Complete Crafting Overhaul")
		ForcePageReset()	
	elseif (option == OIDLevelUp)
		SetTextOptionValue(option, "Upgrading Items")
		LevelUpSpell.Cast(Game.getPlayer())
	elseif (option == OIDLevelUpSpell)
		if PlayerHasLevelUpSpell_CCO.GetValueInt() == 0
			PlayerHasLevelUpSpell_CCO.setValue(1)
			Game.getPlayer().addspell(LevelUpSpell)
			ForcePageReset()
		else
			PlayerHasLevelUpSpell_CCO.setValue(0)
			Game.getPlayer().removespell(LevelUpSpell)
			ForcePageReset()
		endif
	elseif (option == OIDLevelUpAuto)
		if LevelUpSpellAutoRun_CCO.GetValueInt() == 0
			LevelUpSpellAutoRun_CCO.setValue(1)
			ForcePageReset()
		else
			LevelUpSpellAutoRun_CCO.setValue(0)
			ForcePageReset()
		endif		
	elseif (option == OIDBandoliersOptions)
		if MCM_BandolierModStatus.getValue() == 0
			SetTextOptionValue(option, "Hide")
			MCM_BandolierModStatus.setValue(1)
			ForcePageReset()
		else
			SetTextOptionValue(option, "Show")
			MCM_BandolierModStatus.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDBandoliersWorkbench)
		if MCM_BandolierWorkbench.getValue() == 0
			SetTextOptionValue(option, "Forge")
			MCM_BandolierWorkbench.setValue(1)
			CCO_MCMStartupQuest.BANSwitchWorkbench()
			ForcePageReset()
		else
			SetTextOptionValue(option, "Tanning Rack")
			MCM_BandolierWorkbench.setValue(0)
			CCO_MCMStartupQuest.BANSwitchWorkbench()
			ForcePageReset()
		endif	
	elseif (option == OIDDawnguardWorkbench)
		if MCM_DawnguardWorkbench.getValue() == 0
			SetTextOptionValue(option, "Fort Dawnguard")
			MCM_DawnguardWorkbench.setValue(1)
			CCO_MCMStartupQuest.DawnguardSwitchWorkbench()
			ForcePageReset()
		else
			SetTextOptionValue(option, "At Any Forge")
			MCM_DawnguardWorkbench.setValue(0)
			CCO_MCMStartupQuest.DawnguardSwitchWorkbench()
			ForcePageReset()
		endif	
	elseif (option == OIDDawnguardOnlyCrossbow)
		if MCM_CCOCrossbowsInWorld.getValue() == 0
			SetTextOptionValue(option, "Throughout Skyrim")
			MCM_CCOCrossbowsInWorld.setValue(1)
			DIST_CCOCrossbows_ON.setValue(0)
			DIST_CCOCrossbows_OFF.setValue(100)
			DIST_CCOCrossbowBolt_Chance.setValue(25)
			ForcePageReset()
		else
			SetTextOptionValue(option, "Dawnguard Only")
			MCM_CCOCrossbowsInWorld.setValue(0)
			DIST_CCOCrossbows_ON.setValue(100)
			DIST_CCOCrossbows_OFF.setValue(0)
			DIST_CCOCrossbowBolt_Chance.setValue(100)
			ForcePageReset()
		endif			
	elseif (option == OIDFurRecipes)
		if CCO_OptionUseGenericFurPlate.getValue() == 0
			SetTextOptionValue(option, "Generic")
			CCO_OptionUseGenericFurPlate.setValue(1)
			ForcePageReset()
		else
			SetTextOptionValue(option, "Specific")
			CCO_OptionUseGenericFurPlate.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDEnchantTweaks)	
		if EnchantTweakToggleGV_CCO.GetValueInt() == 0
			EnchantTweakToggleGV_CCO.setValue(1)
			ForcePageReset()
		else
			EnchantTweakToggleGV_CCO.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDTemperTweaks)	
		if TemperTweakToggleGV_CCO.GetValueInt() == 0
			TemperTweakToggleGV_CCO.setValue(1)
			ForcePageReset()
		else
			TemperTweakToggleGV_CCO.setValue(0)
			ForcePageReset()
		endif			
	elseif (option == OIDDaedricAtNight)	
		if CCO_OptionCraftDaedricOnlyAtNight.GetValueInt() == 0
			CCO_OptionCraftDaedricOnlyAtNight.setValue(1)
			ForcePageReset()
		else
			CCO_OptionCraftDaedricOnlyAtNight.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDInventoryConditions)	
		if CCO_OptionDeclutterCraftingMenu.GetValueInt() == 0
			CCO_OptionDeclutterCraftingMenu.setValue(1)
			ForcePageReset()
		else
			CCO_OptionDeclutterCraftingMenu.setValue(0)
			ForcePageReset()
		endif			
	elseif (option == OIDCCORecipes)	
		if CCO_CCOAddedRecipes.GetValueInt() == 0
			CCO_CCOAddedRecipes.setValue(1)
			CCO_LearningEnabled.setValue(1)
			CCO_OptionArmoredCirclets.setValue(1)
			CCO_MODJewelCraft.setValue(1)
			if MCM_CCOJaysusInst.GetValueInt() == 1
				CCO_MODJaysusSwords.setValue(1)
			endif
			if MCM_CCOBandoliersInst.GetValueInt() == 1
				CCO_MODBandoliers.setValue(1)
			endif
			ForcePageReset()
		else
			CCO_CCOAddedRecipes.setValue(0)
			CCO_MODJaysusSwords.setValue(0)
			CCO_MODBandoliers.setValue(0)
			CCO_LearningEnabled.setValue(0)
			CCO_MODJewelCraft.setValue(0)
			CCO_OptionArmoredCirclets.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDBookofSilenceRace)	
		if CCO_OptionRacialRestrictions.GetValueInt() == 0
			CCO_OptionRacialRestrictions.setValue(1)
			ForcePageReset()
		else
			CCO_OptionRacialRestrictions.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDBookofSilenceCraft)	
		if CCO_MODBookofSilence.GetValueInt() == 0
			CCO_MODBookofSilence.setValue(1)
			ForcePageReset()
		else
			CCO_MODBookofSilence.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDHeavyArmoryCraft)	
		if CCO_MODHeavyArmory.GetValueInt() == 0
			CCO_MODHeavyArmory.setValue(1)
			ForcePageReset()
		else
			CCO_MODHeavyArmory.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDWinterIsComingCraft)	
		if CCO_MODWinterIsComing.GetValueInt() == 0
			CCO_MODWinterIsComing.setValue(1)
			ForcePageReset()
		else
			CCO_MODWinterIsComing.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDWinterIsComingRequireKit)	
		if CCO_MODWICRequireBasket.GetValueInt() == 0
			CCO_MODWICRequireBasket.setValue(1)
			ForcePageReset()
		else
			CCO_MODWICRequireBasket.setValue(0)
			ForcePageReset()
		endif
	elseif (option == OIDCloaksCraft)	
		if CCO_MODCloaks.GetValueInt() == 0
			CCO_MODCloaks.setValue(1)
			ForcePageReset()
		else
			CCO_MODCloaks.setValue(0)
			ForcePageReset()
		endif	
	elseif (option == OIDCloaksRequireBook)	
		if CCO_MODCloaksRequireBook.GetValueInt() == 0
			CCO_MODCloaksRequireBook.setValue(1)
			CCO_MODCloaksBookDistChance.setValue(0)
			ForcePageReset()
		else
			CCO_MODCloaksRequireBook.setValue(0)
			CCO_MODCloaksBookDistChance.setValue(100)
			ForcePageReset()
		endif		
	elseif (option == OIDTanningRackXP)	
		if SmithingXPTanningRackGV_CCO.GetValueInt() == 0
			SmithingXPTanningRackGV_CCO.setValue(1)
			Game.GetPlayer().addperk(CCO_SmithingXPTanningRackPerk)
			ForcePageReset()
		else
			SmithingXPTanningRackGV_CCO.setValue(0)
			Game.GetPlayer().removeperk(CCO_SmithingXPTanningRackPerk)
			ForcePageReset()
		endif	
	elseif (option == OIDSmelterXP)	
		if SmithingXPSmelterGV_CCO.GetValueInt() == 0
			SmithingXPSmelterGV_CCO.setValue(1)
			Game.GetPlayer().addperk(CCO_SmithingXPSmelterPerk)
			ForcePageReset()
		else
			SmithingXPSmelterGV_CCO.setValue(0)
			Game.GetPlayer().removeperk(CCO_SmithingXPSmelterPerk)
			ForcePageReset()
		endif				
	endif
endEvent


event OnOptionSliderOpen(int option)
	if (option == OIDMiningStrikes)
		SetSliderDialogStartValue(MiningStrikesVal)
		SetSliderDialogDefaultValue(1.0)
		SetSliderDialogRange(1.0, 10.0)
		SetSliderDialogInterval(1.0)
	elseif (option == OIDMiningAttackStrikes)
		SetSliderDialogStartValue(MiningAttackStrikesVal)
		SetSliderDialogDefaultValue(3.0)
		SetSliderDialogRange(1.0, 20.0)
		SetSliderDialogInterval(1.0)
	elseif (option == OIDMiningOresDrop)
		SetSliderDialogStartValue(MiningOresDropVal)
		SetSliderDialogDefaultValue(1.0)
		SetSliderDialogRange(1.0, 10.0)
		SetSliderDialogInterval(1.0)
	elseif (option == OIDMiningOresTotal)
		SetSliderDialogStartValue(MiningOresTotalVal)
		SetSliderDialogDefaultValue(3.0)
		SetSliderDialogRange(1.0, 100.0)
		SetSliderDialogInterval(1.0)
	elseif (option == OIDGemChance)
		SetSliderDialogStartValue(GemChanceVal)
		SetSliderDialogDefaultValue(10.0)
		SetSliderDialogRange(0.0, 100.0)
		SetSliderDialogInterval(1.0)
	elseif (option == OIDFirewoodPerUse)
		SetSliderDialogStartValue(FirewoodPerUseVal)
		SetSliderDialogDefaultValue(2.0)
		SetSliderDialogRange(1.0, 10.0)
		SetSliderDialogInterval(1.0)
	elseif (option == OIDFirewoodMax)
		SetSliderDialogStartValue(FirewoodMaxVal)
		SetSliderDialogDefaultValue(6.0)
		SetSliderDialogRange(1.0, 100.0)
		SetSliderDialogInterval(1.0)
	elseif (option == OIDLearningReq)
		SetSliderDialogStartValue(LearningReqVal)
		SetSliderDialogDefaultValue(100.0)
		SetSliderDialogRange(0.0, 500.0)
		SetSliderDialogInterval(25.0)
	elseif (option == OIDExperienceMining)
		SetSliderDialogStartValue(ExpMiningVal)
		SetSliderDialogDefaultValue(0.0)
		SetSliderDialogRange(0.0, 50.0)
		SetSliderDialogInterval(1.0)
	elseif (option == OIDBandoliersDistChance)
		SetSliderDialogStartValue(BandolierChanceVal)
		SetSliderDialogDefaultValue(10.0)
		SetSliderDialogRange(0.0, 100.0)
		SetSliderDialogInterval(5.0)		
	elseif (option == OIDEnchClothing)
		SetSliderDialogStartValue(EnchClothingVal)
		SetSliderDialogDefaultValue(50.0)
		SetSliderDialogRange(0.0, 100.0)
		SetSliderDialogInterval(5.0)		
	elseif (option == OIDEnchBody)
		SetSliderDialogStartValue(EnchBodyVal)
		SetSliderDialogDefaultValue(25.0)
		SetSliderDialogRange(0.0, 50.0)
		SetSliderDialogInterval(5.0)
	elseif (option == OIDEnchMinor)
		SetSliderDialogStartValue(EnchMinorVal)
		SetSliderDialogDefaultValue(-25.0)
		SetSliderDialogRange(-50.0, 0.0)
		SetSliderDialogInterval(5.0)
	elseif (option == OIDEnchJewelry)
		SetSliderDialogStartValue(EnchJewelryVal)
		SetSliderDialogDefaultValue(10.0)
		SetSliderDialogRange(0.0, 100.0)
		SetSliderDialogInterval(5.0)
	elseif (option == OIDEnchJewelryEx)
		SetSliderDialogStartValue(EnchJewelryExVal)
		SetSliderDialogDefaultValue(10.0)
		SetSliderDialogRange(0.0, 100.0)
		SetSliderDialogInterval(5.0)
	elseif (option == OIDEnchJewelryEq)
		SetSliderDialogStartValue(EnchJewelryEqVal)
		SetSliderDialogDefaultValue(10.0)
		SetSliderDialogRange(0.0, 100.0)
		SetSliderDialogInterval(5.0)			
	elseif (option == OIDEnchDaggers)
		SetSliderDialogStartValue(EnchDaggersVal)
		SetSliderDialogDefaultValue(0.0)
		SetSliderDialogRange(-50.0, 50.0)
		SetSliderDialogInterval(10.0)
	elseif (option == OIDEnchBows)
		SetSliderDialogStartValue(EnchBowsVal)
		SetSliderDialogDefaultValue(0.0)
		SetSliderDialogRange(-50.0, 50.0)
		SetSliderDialogInterval(10.0)		
	elseif (option == OIDEnch1Hand)
		SetSliderDialogStartValue(Ench1HandVal)
		SetSliderDialogDefaultValue(0.0)
		SetSliderDialogRange(-50.0, 50.0)
		SetSliderDialogInterval(10.0)	
	elseif (option == OIDEnch2Hand)
		SetSliderDialogStartValue(Ench2HandVal)
		SetSliderDialogDefaultValue(0.0)
		SetSliderDialogRange(-50.0, 50.0)
		SetSliderDialogInterval(10.0)
	elseif (option == OIDTemperBase)
		SetSliderDialogStartValue(TempBaseVal)
		SetSliderDialogDefaultValue(0.0)
		SetSliderDialogRange(-50.0, 0.0)
		SetSliderDialogInterval(5.0)	
	elseif (option == OIDTemperDagger)
		SetSliderDialogStartValue(TempDaggerVal)
		SetSliderDialogDefaultValue(-15.0)
		SetSliderDialogRange(-50.0, 50.0)
		SetSliderDialogInterval(10.0)
	elseif (option == OIDTemperBow)
		SetSliderDialogStartValue(TempBowVal)
		SetSliderDialogDefaultValue(-10.0)
		SetSliderDialogRange(-50.0, 50.0)
		SetSliderDialogInterval(10.0)			
	elseif (option == OIDTemper2Hand)
		SetSliderDialogStartValue(Temp2HandVal)
		SetSliderDialogDefaultValue(15.0)
		SetSliderDialogRange(-50.0, 50.0)
		SetSliderDialogInterval(10.0)	
	elseif (option == OIDTemperLArmor)
		SetSliderDialogStartValue(TempLArmorVal)
		SetSliderDialogDefaultValue(-10.0)
		SetSliderDialogRange(-50.0, 0.0)
		SetSliderDialogInterval(5.0)		
	elseif (option == OIDTemperHide)
		SetSliderDialogStartValue(TempHideVal)
		SetSliderDialogDefaultValue(-15.0)
		SetSliderDialogRange(-50.0, 0.0)
		SetSliderDialogInterval(5.0)	
	elseif (option == OIDTemperShields)
		SetSliderDialogStartValue(TempShieldVal)
		SetSliderDialogDefaultValue(30.0)
		SetSliderDialogRange(-50.0, 50.0)
		SetSliderDialogInterval(10.0)		
	elseif (option == OIDTemperCuirass)
		SetSliderDialogStartValue(TempCuirassVal)
		SetSliderDialogDefaultValue(20.0)
		SetSliderDialogRange(-50.0, 50.0)
		SetSliderDialogInterval(10.0)		
	elseif (option == OIDTemperGauntlets)
		SetSliderDialogStartValue(TempGauntletVal)
		SetSliderDialogDefaultValue(-20.0)
		SetSliderDialogRange(-50.0, 50.0)
		SetSliderDialogInterval(10.0)		
	elseif (option == OIDBandoliersEnchantSmall)
		SetSliderDialogStartValue(BandolierSmallVal)
		SetSliderDialogDefaultValue(5.0)
		SetSliderDialogRange(5.0, 100.0)
		SetSliderDialogInterval(5.0)		
	elseif (option == OIDBandoliersEnchantMed)
		SetSliderDialogStartValue(BandolierMedVal)
		SetSliderDialogDefaultValue(10.0)
		SetSliderDialogRange(5.0, 100.0)
		SetSliderDialogInterval(5.0)
	elseif (option == OIDBandoliersEnchantLarge)
		SetSliderDialogStartValue(BandolierLargeVal)
		SetSliderDialogDefaultValue(15.0)
		SetSliderDialogRange(5.0, 100.0)
		SetSliderDialogInterval(5.0)
	elseif (option == OIDBandoliersEnchantXLarge)
		SetSliderDialogStartValue(BandolierXLargeVal)
		SetSliderDialogDefaultValue(20.0)
		SetSliderDialogRange(5.0, 100.0)
		SetSliderDialogInterval(5.0)	
	elseif (option == OIDSilverWeap)
		SetSliderDialogStartValue(SilverWeapVal)
		SetSliderDialogDefaultValue(20.0)
		SetSliderDialogRange(0.0, 25.0)
		SetSliderDialogInterval(5.0)
	elseif (option == OIDSilverArmor)
		SetSliderDialogStartValue(SilverArmorVal)
		SetSliderDialogDefaultValue(5.0)
		SetSliderDialogRange(0.0, 25.0)
		SetSliderDialogInterval(5.0)		
	elseif (option == OIDGoldArmor)
		SetSliderDialogStartValue(GoldArmorVal)
		SetSliderDialogDefaultValue(5.0)
		SetSliderDialogRange(0.0, 25.0)
		SetSliderDialogInterval(5.0)
	elseif (option == OIDStalhrimEnch)
		SetSliderDialogStartValue(StalhrimEnchVal)
		SetSliderDialogDefaultValue(10.0)
		SetSliderDialogRange(0.0, 25.0)
		SetSliderDialogInterval(5.0)	
	endif
endevent

event OnOptionSliderAccept(int option, float value)
	if (option == OIDMiningStrikes)
		MiningStrikesVal = value
		SetSliderOptionValue(OIDMiningStrikes, MiningStrikesVal, "{1}")
		StrikesBeforeCollectionGV_CCO.Setvalue(MiningStrikesVal)
	elseif (option == OIDMiningAttackStrikes)
		MiningAttackStrikesVal = value
		SetSliderOptionValue(OIDMiningAttackStrikes, MiningAttackStrikesVal, "{1}")
		AttackStrikesBeforeCollectionGV_CCO.Setvalue(MiningAttackStrikesVal)
	elseif (option == OIDMiningOresDrop)
		MiningOresDropVal = value
		SetSliderOptionValue(OIDMiningOresDrop, MiningOresDropVal, "{1}")
		ResourceCountGV_CCO.Setvalue(MiningOresDropVal)
	elseif (option == OIDMiningOresTotal)
		MiningOresTotalVal = value
		SetSliderOptionValue(OIDMiningOresTotal, MiningOresTotalVal, "{1}")
		ResourceCountTotalGV_CCO.Setvalue(MiningOresTotalVal)
	elseif (option == OIDGemChance)
		GemChanceVal = value
		SetSliderOptionValue(OIDGemChance, GemChanceVal, "{1}%")
		int ChanceNone = 100 - (GemChanceVal as int)
		MiningGemChanceGV_CCO.Setvalue(ChanceNone)
	elseif (option == OIDFirewoodPerUse)
		FirewoodPerUseVal = value
		SetSliderOptionValue(OIDFirewoodPerUse, FirewoodPerUseVal, "{1}")
		FirewoodResourcePerUseGV_CCO.Setvalue(FirewoodPerUseVal)
	elseif (option == OIDFirewoodMax)
		FirewoodMaxVal = value
		SetSliderOptionValue(OIDFirewoodMax, FirewoodMaxVal, "{1}")
		FirewoodResourceMaxGV_CCO.Setvalue(FirewoodMaxVal)
	elseif (option == OIDLearningReq)
		LearningReqVal = value
		SetSliderOptionValue(OIDLearningReq, LearningReqVal, "{1}")
		CCO_LearningRequiredtoSmith.Setvalue(LearningReqVal)
	elseif (option == OIDExperienceMining)
		ExpMiningVal = value
		SetSliderOptionValue(OIDExperienceMining, ExpMiningVal, "{1}")
		MiningSkillIncreaseGV_CCO.SetValue(ExpMiningVal)
	elseif (option == OIDBandoliersDistChance)
		BandolierChanceVal = value
		SetSliderOptionValue(OIDBandoliersDistChance, BandolierChanceVal, "{1}%")
		if MCM_CCOBandoliersDist.getValueInt() == 1
			DIST_CCOBandoliersChance.Setvalue(BandolierChanceVal)
		endif
	elseif (option == OIDEnchClothing)
		EnchClothingVal = value
		SetSliderOptionValue(OIDEnchClothing, EnchClothingVal, "{1}%")
		EnchantTweakClothingGV_CCO.SetValue(EnchClothingVal)
	elseif (option == OIDEnchBody)
		EnchBodyVal = value
		SetSliderOptionValue(OIDEnchBody, EnchBodyVal, "{1}%")
		EnchantTweakCuirassGV_CCO.SetValue(EnchBodyVal)	
	elseif (option == OIDEnchMinor)
		EnchMinorVal = value
		SetSliderOptionValue(OIDEnchMinor, EnchMinorVal, "{1}%")
		EnchantTweakArmorMinorPiecesGV_CCO.SetValue(EnchMinorVal)		
	elseif (option == OIDEnchJewelry)
		EnchJewelryVal = value
		SetSliderOptionValue(OIDEnchJewelry, EnchJewelryVal, "{1}%")
		EnchantTweakJewelryGV_CCO.SetValue(EnchJewelryVal)
	elseif (option == OIDEnchJewelryEx)
		EnchJewelryExVal = value
		SetSliderOptionValue(OIDEnchJewelryEx, EnchJewelryExVal, "{1}%")
		EnchantTweakJewelryExpensiveGV_CCO.SetValue(EnchJewelryExVal)
	elseif (option == OIDEnchJewelryEq)
		EnchJewelryEqVal = value
		SetSliderOptionValue(OIDEnchJewelryEq, EnchJewelryEqVal, "{1}%")
		EnchantTweakJewelryExquisiteGV_CCO.SetValue(EnchJewelryEqVal)	
	elseif (option == OIDEnchDaggers)
		EnchDaggersVal = value
		SetSliderOptionValue(OIDEnchDaggers, EnchDaggersVal, "{1}%")
		EnchantTweakDaggersGV_CCO.SetValue(EnchDaggersVal)
	elseif (option == OIDEnchBows)
		EnchBowsVal = value
		SetSliderOptionValue(OIDEnchBows, EnchBowsVal, "{1}%")
		EnchantTweakBowsGV_CCO.SetValue(EnchBowsVal)		
	elseif (option == OIDEnch1Hand)
		Ench1HandVal = value
		SetSliderOptionValue(OIDEnch1Hand, Ench1HandVal, "{1}%")
		EnchantTweakOneHandGV_CCO.SetValue(Ench1HandVal)		
	elseif (option == OIDEnch2Hand)
		Ench2HandVal = value
		SetSliderOptionValue(OIDEnch2Hand, Ench2HandVal, "{1}%")
		EnchantTweakTwoHandGV_CCO.SetValue(Ench2HandVal)
	elseif (option == OIDTemperBase)
		TempBaseVal = value
		SetSliderOptionValue(OIDTemperBase, TempBaseVal, "{1}%")
		TemperTweakBaselineGV_CCO.SetValue(TempBaseVal)
	elseif (option == OIDTemperDagger)
		TempDaggerVal = value
		SetSliderOptionValue(OIDTemperDagger, TempDaggerVal, "{1}%")
		TemperTweakDaggersGV_CCO.SetValue(TempDaggerVal)
	elseif (option == OIDTemperBow)
		TempBowVal = value
		SetSliderOptionValue(OIDTemperBow, TempBowVal, "{1}%")
		TemperTweakBowsGV_CCO.SetValue(TempBowVal)
	elseif (option == OIDTemper2Hand)
		Temp2HandVal = value
		SetSliderOptionValue(OIDTemper2Hand, Temp2HandVal, "{1}%")
		EnchantTweakTwoHandGV_CCO.SetValue(Temp2HandVal)	
	elseif (option == OIDTemperLArmor)
		TempLArmorVal = value
		SetSliderOptionValue(OIDTemperLArmor, TempLArmorVal, "{1}%")
		TemperTweakLightArmorGV_CCO.SetValue(TempLArmorVal)	
	elseif (option == OIDTemperHide)
		TempHideVal = value
		SetSliderOptionValue(OIDTemperHide, TempHideVal, "{1}%")
		TemperTweakLeatherHideArmorGV_CCO.SetValue(TempHideVal)
	elseif (option == OIDTemperShields)
		TempShieldVal = value
		SetSliderOptionValue(OIDTemperShields, TempShieldVal, "{1}%")
		TemperTweakShieldsGV_CCO.SetValue(TempShieldVal)
	elseif (option == OIDTemperCuirass)
		TempCuirassVal = value
		SetSliderOptionValue(OIDTemperCuirass, TempCuirassVal, "{1}%")
		TemperTweakCuirassGV_CCO.SetValue(TempCuirassVal)	
	elseif (option == OIDTemperGauntlets)
		TempGauntletVal = value
		SetSliderOptionValue(OIDTemperGauntlets, TempGauntletVal, "{1}%")
		TemperTweakGauntletsGV_CCO.SetValue(TempGauntletVal)
	elseif (option == OIDBandoliersEnchantSmall)
		BandolierSmallVal = value
		SetSliderOptionValue(OIDBandoliersEnchantSmall, BandolierSmallVal, "{1}")
		int pSelectedEnchant = (BandolierSmallVal/5) as int
		MCM_CCOBandoliersEnchSmall.SetValue(pSelectedEnchant)
		CCO_MCMStartupQuest.BANSwitchEnchantment(BAN_ItemList_Small, pSelectedEnchant)
	elseif (option == OIDBandoliersEnchantMed)
		BandolierMedVal = value
		SetSliderOptionValue(OIDBandoliersEnchantMed, BandolierMedVal, "{1}")
		int pSelectedEnchant = (BandolierMedVal/5) as int
		MCM_CCOBandoliersEnchMed.SetValue(pSelectedEnchant)
		CCO_MCMStartupQuest.BANSwitchEnchantment(BAN_ItemList_Med, pSelectedEnchant)
	elseif (option == OIDBandoliersEnchantLarge)
		BandolierLargeVal = value
		SetSliderOptionValue(OIDBandoliersEnchantLarge, BandolierLargeVal, "{1}")
		int pSelectedEnchant = (BandolierLargeVal/5) as int
		MCM_CCOBandoliersEnchLarge.SetValue(pSelectedEnchant)
		CCO_MCMStartupQuest.BANSwitchEnchantment(BAN_ItemList_Large, pSelectedEnchant)		
	elseif (option == OIDBandoliersEnchantXLarge)
		BandolierXLargeVal = value
		SetSliderOptionValue(OIDBandoliersEnchantXLarge, BandolierXLargeVal, "{1}")
		int pSelectedEnchant = (BandolierXLargeVal/5) as int
		MCM_CCOBandoliersEnchXLarge.SetValue(pSelectedEnchant)
		CCO_MCMStartupQuest.BANSwitchEnchantment(BAN_ItemList_XLarge, pSelectedEnchant)		
	elseif (option == OIDSilverWeap)
		SilverWeapVal = value
		SetSliderOptionValue(OIDSilverWeap, SilverWeapVal, "{1}%")
		MCM_CCOSilverWeaponPerk.SetValue(SilverWeapVal)	
	elseif (option == OIDSilverArmor)
		SilverArmorVal = value
		SetSliderOptionValue(OIDSilverArmor, SilverArmorVal, "{1}%")
		MCM_CCOSilverArmorPerk.SetValue(SilverArmorVal)			
	elseif (option == OIDGoldArmor)
		GoldArmorVal = value
		SetSliderOptionValue(OIDGoldArmor, GoldArmorVal, "{1}%")
		MCM_CCOGoldArmorPerk.SetValue(GoldArmorVal)			
	elseif (option == OIDStalhrimEnch)
		StalhrimEnchVal = value
		SetSliderOptionValue(OIDStalhrimEnch, StalhrimEnchVal, "{1}%")
		MCM_CCOStalhrimEnchPerk.SetValue(StalhrimEnchVal)
	endif
endevent

event OnOptionDefault(int option)
	if (option == OIDMiningStrikes)
		MiningStrikesVal = 1
		SetSliderOptionValue(OIDMiningStrikes, MiningStrikesVal, "{1}")
		StrikesBeforeCollectionGV_CCO.Setvalue(MiningStrikesVal)
	elseif (option == OIDMiningAttackStrikes)
		MiningAttackStrikesVal = 3
		SetSliderOptionValue(OIDMiningAttackStrikes, MiningAttackStrikesVal, "{1}")
		AttackStrikesBeforeCollectionGV_CCO.Setvalue(MiningAttackStrikesVal)
	elseif (option == OIDMiningOresDrop)
		MiningOresDropVal = 1
		SetSliderOptionValue(OIDMiningOresDrop, MiningOresDropVal, "{1}")
		ResourceCountGV_CCO.Setvalue(MiningOresDropVal)
	elseif (option == OIDMiningOresTotal)
		MiningOresTotalVal = 3
		SetSliderOptionValue(OIDMiningOresTotal, MiningOresTotalVal, "{1}")
		ResourceCountTotalGV_CCO.Setvalue(MiningOresTotalVal)
	elseif (option == OIDGemChance)
		GemChanceVal = 10
		SetSliderOptionValue(OIDGemChance, GemChanceVal, "{1}%")
		int ChanceNone = 100 - (GemChanceVal as int)
		MiningGemChanceGV_CCO.Setvalue(ChanceNone)
	elseif (option == OIDFirewoodPerUse)
		FirewoodPerUseVal = 2
		SetSliderOptionValue(OIDFirewoodPerUse, FirewoodPerUseVal, "{1}")
		FirewoodResourcePerUseGV_CCO.Setvalue(FirewoodPerUseVal)
	elseif (option == OIDFirewoodMax)
		FirewoodMaxVal = 6
		SetSliderOptionValue(OIDFirewoodMax, FirewoodMaxVal, "{1}")
		FirewoodResourceMaxGV_CCO.Setvalue(FirewoodMaxVal)
	elseif (option == OIDLearningReq)
		LearningReqVal = 100
		SetSliderOptionValue(OIDLearningReq, LearningReqVal, "{1}")
		CCO_LearningRequiredtoSmith.Setvalue(LearningReqVal)
	elseif (option == OIDExperienceMining)
		ExpMiningVal = 0
		SetSliderOptionValue(OIDExperienceMining, ExpMiningVal, "{1}")
		MiningSkillIncreaseGV_CCO.Setvalue(ExpMiningVal)	
	elseif (option == OIDBandoliersDistChance)
		BandolierChanceVal = 10
		SetSliderOptionValue(OIDBandoliersDistChance, BandolierChanceVal, "{1}%")
		if MCM_CCOBandoliersDist.getValueInt() == 1
			DIST_CCOBandoliersChance.Setvalue(BandolierChanceVal)
		endif		
	elseif (option == OIDEnchClothing)
		EnchClothingVal = 50
		SetSliderOptionValue(OIDEnchClothing, EnchClothingVal, "{1}%")
		EnchantTweakClothingGV_CCO.SetValue(EnchClothingVal)
	elseif (option == OIDEnchBody)
		EnchBodyVal = 25
		SetSliderOptionValue(OIDEnchBody, EnchBodyVal, "{1}%")
		EnchantTweakCuirassGV_CCO.SetValue(EnchBodyVal)	
	elseif (option == OIDEnchMinor)
		EnchMinorVal = -25
		SetSliderOptionValue(OIDEnchMinor, EnchMinorVal, "{1}%")
		EnchantTweakArmorMinorPiecesGV_CCO.SetValue(EnchMinorVal)		
	elseif (option == OIDEnchJewelry)
		EnchJewelryVal = 10
		SetSliderOptionValue(OIDEnchJewelry, EnchJewelryVal, "{1}%")
		EnchantTweakJewelryGV_CCO.SetValue(EnchJewelryVal)
	elseif (option == OIDEnchJewelryEx)
		EnchJewelryExVal = 10
		SetSliderOptionValue(OIDEnchJewelryEx, EnchJewelryExVal, "{1}%")
		EnchantTweakJewelryExpensiveGV_CCO.SetValue(EnchJewelryExVal)
	elseif (option == OIDEnchJewelryEq)
		EnchJewelryEqVal = 10
		SetSliderOptionValue(OIDEnchJewelryEq, EnchJewelryEqVal, "{1}%")
		EnchantTweakJewelryExquisiteGV_CCO.SetValue(EnchJewelryEqVal)
	elseif (option == OIDEnchDaggers)
		EnchDaggersVal = 0
		SetSliderOptionValue(OIDEnchDaggers, EnchDaggersVal, "{1}%")
		EnchantTweakDaggersGV_CCO.SetValue(EnchDaggersVal)
	elseif (option == OIDEnchBows)
		EnchBowsVal = 0
		SetSliderOptionValue(OIDEnchBows, EnchBowsVal, "{1}%")
		EnchantTweakBowsGV_CCO.SetValue(EnchBowsVal)		
	elseif (option == OIDEnch1Hand)
		Ench1HandVal = 0
		SetSliderOptionValue(OIDEnch1Hand, Ench1HandVal, "{1}%")
		EnchantTweakOneHandGV_CCO.SetValue(Ench1HandVal)		
	elseif (option == OIDEnch2Hand)
		Ench2HandVal = 0
		SetSliderOptionValue(OIDEnch2Hand, Ench2HandVal, "{1}%")
		EnchantTweakTwoHandGV_CCO.SetValue(Ench2HandVal)				
	elseif (option == OIDTemperBase)
		TempBaseVal = 0
		SetSliderOptionValue(OIDTemperBase, TempBaseVal, "{1}%")
		TemperTweakBaselineGV_CCO.SetValue(TempBaseVal)
	elseif (option == OIDTemperDagger)
		TempDaggerVal = -15
		SetSliderOptionValue(OIDTemperDagger, TempDaggerVal, "{1}%")
		TemperTweakDaggersGV_CCO.SetValue(TempDaggerVal)
	elseif (option == OIDTemperBow)
		TempBowVal = -10
		SetSliderOptionValue(OIDTemperBow, TempBowVal, "{1}%")
		TemperTweakBowsGV_CCO.SetValue(TempBowVal)
	elseif (option == OIDTemper2Hand)
		Temp2HandVal = 15
		SetSliderOptionValue(OIDTemper2Hand, Temp2HandVal, "{1}%")
		EnchantTweakTwoHandGV_CCO.SetValue(Temp2HandVal)	
	elseif (option == OIDTemperLArmor)
		TempLArmorVal = -10
		SetSliderOptionValue(OIDTemperLArmor, TempLArmorVal, "{1}%")
		TemperTweakLightArmorGV_CCO.SetValue(TempLArmorVal)	
	elseif (option == OIDTemperHide)
		TempHideVal = -15
		SetSliderOptionValue(OIDTemperHide, TempHideVal, "{1}%")
		TemperTweakLeatherHideArmorGV_CCO.SetValue(TempHideVal)
	elseif (option == OIDTemperShields)
		TempShieldVal = 30
		SetSliderOptionValue(OIDTemperShields, TempShieldVal, "{1}%")
		TemperTweakShieldsGV_CCO.SetValue(TempShieldVal)
	elseif (option == OIDTemperCuirass)
		TempCuirassVal = 20
		SetSliderOptionValue(OIDTemperCuirass, TempCuirassVal, "{1}%")
		TemperTweakCuirassGV_CCO.SetValue(TempCuirassVal)	
	elseif (option == OIDTemperGauntlets)
		TempGauntletVal = -20
		SetSliderOptionValue(OIDTemperGauntlets, TempGauntletVal, "{1}%")
		TemperTweakGauntletsGV_CCO.SetValue(TempGauntletVal)		
	elseif (option == OIDBandoliersEnchantSmall)
		BandolierSmallVal = 5
		SetSliderOptionValue(OIDBandoliersEnchantSmall, BandolierSmallVal, "{1}")
		int pSelectedEnchant = (BandolierSmallVal/5) as int
		CCO_MCMStartupQuest.BANSwitchEnchantment(BAN_ItemList_Small, pSelectedEnchant)
	elseif (option == OIDBandoliersEnchantMed)
		BandolierMedVal = 10
		SetSliderOptionValue(OIDBandoliersEnchantMed, BandolierMedVal, "{1}")
		int pSelectedEnchant = (BandolierMedVal/5) as int
		CCO_MCMStartupQuest.BANSwitchEnchantment(BAN_ItemList_Med, pSelectedEnchant)
	elseif (option == OIDBandoliersEnchantLarge)
		BandolierLargeVal = 15
		SetSliderOptionValue(OIDBandoliersEnchantLarge, BandolierLargeVal, "{1}")
		int pSelectedEnchant = (BandolierLargeVal/5) as int
		CCO_MCMStartupQuest.BANSwitchEnchantment(BAN_ItemList_Large, pSelectedEnchant)		
	elseif (option == OIDBandoliersEnchantXLarge)
		BandolierXLargeVal = 20
		SetSliderOptionValue(OIDBandoliersEnchantXLarge, BandolierXLargeVal, "{1}")
		int pSelectedEnchant = (BandolierXLargeVal/5) as int
		CCO_MCMStartupQuest.BANSwitchEnchantment(BAN_ItemList_XLarge, pSelectedEnchant)	
	elseif (option == OIDSilverWeap)
		SilverWeapVal = 20
		SetSliderOptionValue(OIDSilverWeap, SilverWeapVal, "{1}%")
		MCM_CCOSilverWeaponPerk.SetValue(SilverWeapVal)	
	elseif (option == OIDSilverArmor)
		SilverArmorVal = 5
		SetSliderOptionValue(OIDSilverArmor, SilverArmorVal, "{1}%")
		MCM_CCOSilverArmorPerk.SetValue(SilverArmorVal)			
	elseif (option == OIDGoldArmor)
		GoldArmorVal = 5
		SetSliderOptionValue(OIDGoldArmor, GoldArmorVal, "{1}%")
		MCM_CCOGoldArmorPerk.SetValue(GoldArmorVal)			
	elseif (option == OIDStalhrimEnch)
		StalhrimEnchVal = 10
		SetSliderOptionValue(OIDStalhrimEnch, StalhrimEnchVal, "{1}%")
		MCM_CCOStalhrimEnchPerk.SetValue(StalhrimEnchVal)		
	endif
endevent

event OnOptionHighlight(int option)
	if (option == OIDAllOn)
		SetInfoText("All available recipes are displayed in the crafting menu.")
	elseif (option == OIDAllOff)
		SetInfoText("None of the available recipes are displayed in the crafting menu.")
	elseif (option == OIDArmorAll)
		SetInfoText("All available armor & clothing recipes are displayed in the crafting menu.")
	elseif (option == OIDArmorLight)
		SetInfoText("Displays light armor recipes in the crafting menu.")
	elseif (option == OIDArmorHeavy)
		SetInfoText("Displays heavy armor recipes in the crafting menu.")
	elseif (option == OIDArmorClothing)
		SetInfoText("Displays clothing recipes in the crafting menu.")
	elseif (option == OIDArmorBoots)
		SetInfoText("Displays boots and shoes in the crafting menu.")
	elseif (option == OIDArmorCuirass)
		SetInfoText("Displays cuirasses, robes, and clothing in the crafting menu.")
	elseif (option == OIDArmorGauntlets)
		SetInfoText("Displays gloves and gauntlets in the crafting menu.")
	elseif (option == OIDArmorHelmets)
		SetInfoText("Displays hoods and helmets in the crafting menu.")		
	elseif (option == OIDArmorShields)
		SetInfoText("Displays shields in the crafting menu.")
	elseif (option == OIDWeapAll)
		SetInfoText("All available weapon recipes are displayed in the crafting menu.")	
	elseif (option == OIDWeapOneHand)
		SetInfoText("Displays all one-handed weapon recipes in the crafting menu.")
	elseif (option == OIDWeapTwoHand)
		SetInfoText("Displays all two-handed weapon recipes in the crafting menu.")	
	elseif (option == OIDWeapDaggers)
		SetInfoText("Displays daggers in the crafting menu.")	
	elseif (option == OIDWeapSwords)
		SetInfoText("Displays swords in the crafting menu.")	
	elseif (option == OIDWeapGreatswords)
		SetInfoText("Displays greatswords in the crafting menu.")			
	elseif (option == OIDWeapWarAxe)
		SetInfoText("Displays war axes in the crafting menu.")	
	elseif (option == OIDWeapBattleaxe)
		SetInfoText("Displays battleaxes in the crafting menu.")	
	elseif (option == OIDWeapMace)
		SetInfoText("Displays maces in the crafting menu.")	
	elseif (option == OIDWeapWarhammer)
		SetInfoText("Displays warhammers in the crafting menu.")	
	elseif (option == OIDWeapBow)
		SetInfoText("Displays bows and crossbows in the crafting menu.")	
	elseif (option == OIDWeapAmmo)
		SetInfoText("Displays arrows and bolts in the crafting menu.")	
	elseif (option == OIDMiscJewelryAll)
		SetInfoText("All available jewelry recipes are displayed in the crafting menu.")	
	elseif (option == OIDMiscRing)
		SetInfoText("Displays rings in the crafting menu.")	
	elseif (option == OIDMiscNecklace)
		SetInfoText("Displays necklaces in the crafting menu.")	
	elseif (option == OIDMiscCirclet)
		SetInfoText("Displays circlets in the crafting menu.")	
	elseif (option == OIDMiscTools)
		SetInfoText("Displays tools and misc utility items, such as pickaxes, tents, lockpicks, and portable crafting kits, in the crafting menu.")	
	elseif (option == OIDMiscCloaks)
		SetInfoText("Displays cloaks and capes in the crafting menu.")	
	elseif (option == OIDMiscPouches)
		SetInfoText("Displays bags, bandoliers, backpacks, and other pouches in the crafting menu.")	
	elseif (option == OIDMiscAccessories)
		SetInfoText("Displays miscellaneous wearable items such as eyepatches, earrings, etc. in the crafting menu.")	
	elseif (option == OIDNonLore)
		SetInfoText("Allows for the display of highly fanciful items and items that may deviate strongly from established lore.")	
	elseif (option == OIDOriental)
		SetInfoText("Allows for the display of eastern-style weapons and armor in the crafting menu such as katanas, tantos, or samurai-style armors. This setting does not affect any vanilla items.")		
	elseif (option == OIDMSCirclets)
		SetInfoText("Displays recipes for armored circlets that fulfill the Matching Set perk requirements and have stats identical to their cooresponding helmets.  Most of these recipes require that you have the respective helmet before you can craft the circlet.")		
	elseif (option == OIDUnenchant)
		SetInfoText("Displays recipes for unenchanted versions of relatively common items that are typically found only as enchanted versions in the game.  This includes unenchanted versions of divine amulets and faction armors.")		
	elseif (option == OIDReplicas)
		SetInfoText("Displays recipes for unenchanted replicas of unique or artifact caliber items. This includes unenchanted versions of daedric artifacts, Nightingale items, and Ancient Falmer armor.")		
	elseif (option == OIDJaysusInst)
		SetInfoText("Check this ONLY if you have Jaysus Swords already installed.  Checking this will replace the need for the original esm and esp files. However, you MUST install Jaysus Swords from the mod's original page in order to get the proper mesh & texture files.")		
	elseif (option == OIDBandoliersInst)
		SetInfoText("Check this ONLY if you have Bandolier - Bags & Pouches already installed.  Checking this will replace the need for the original esp file. However, you MUST install Bandolier - Bags & Pouches from the mod's original page in order to get the proper mesh & texture files.")		
	elseif (option == OIDBandoliersDGInst)
		SetInfoText("Check this ONLY if you have Bandolier - Dawnguard already installed.  Checking this will replace the need for the original esp file. However, you MUST install Bandolier - Dawnguard from the mod's original page in order to get the proper mesh & texture files.")		
	elseif (option == OIDJaysusCraft)
		SetInfoText("Toggles the visibility of all recipes added by Jaysus Swords in the crafting menu.")	
	elseif (option == OIDBandoliersCraft)
		SetInfoText("Toggles the visibility of all recipes added by Bandolier in the crafting menu.")	
	elseif (option == OIDBookofSilenceCraft)
		SetInfoText("Toggles the visibility of recipes for aMidianborn Book of Silence texture variants in the crafting menu.")	
	elseif (option == OIDHeavyArmoryCraft)
		SetInfoText("Toggles the visibility of all recipes added by Heavy Armory in the crafting menu.")	
	elseif (option == OIDImmersiveArmorsCraft)
		SetInfoText("Toggles the visibility of all recipes added by Immersive Armors in the crafting menu.")	
	elseif (option == OIDJewelCraft)
		SetInfoText("Toggles the visibility of recipes added by JewelCraft in the crafting menu.")	
	elseif (option == OIDWinterIsComingCraft)
		SetInfoText("Toggles the visibility of recipes added by Winter Is Coming in the crafting menu.")	
	elseif (option == OIDWinterIsComingRequireKit)
		SetInfoText("Fur Crafting Kit is required to craft cloak and hood recipes added by Winter Is Coming.")
	elseif (option == OIDCloaksCraft)
		SetInfoText("Toggles the visibility of recipes added by Cloaks of Skyrim in the crafting menu.")	
	elseif (option == OIDCloaksRequireBook)
		SetInfoText("Nordic Tailoring book is required to craft cloak recipes added by Cloaks of Skyrim.")		
	elseif (option == OIDDawnguard)
		SetInfoText("Toggles the visibility of all recipes added by Dawnguard in the crafting menu.")		
	elseif (option == OIDHearthfire)
		SetInfoText("Toggles the visibility of all recipes added by Hearthfire in the forge menu.")		
	elseif (option == OIDDragonborn)
		SetInfoText("Toggles the visibility of all recipes added by Dragonborn in the crafting menu.")	
	elseif (option == OIDCCORecipes)
		SetInfoText("Toggles the visibility of recipes added by Complete Crafting Overhaul.  This does not affect tempering, smelter breakdown, fur plate, or rough gem recipes.  It DOES toggle learning recipes, matching set circlets, and integrated recipes from Bandolier, Jaysus Swords, and JewelCraft.  These can be toggled on/off separately if desired.")	
	elseif (option == OIDJaysusDist)
		SetInfoText("Allows items from Jaysus swords to appear in leveled lists and to be distributed throughout the world.")		
	elseif (option == OIDBandoliersDist)
		SetInfoText("Allows items from Banolier - Bags & Pouches to appear in leveled lists and to be distributed throughout the world.")		
	elseif (option == OIDJewelCraftDist)
		SetInfoText("Allows items from JewelCraft to appear in leveled lists.")		
	elseif (option == OIDLearning)
		SetInfoText("Enables certain equipment types to be learned by deconstructing them at the forge.")	
	elseif (option == OIDLearningReq)
		SetInfoText("The amount of learning points required before certain items can be crafted.  Breaking down most items will result in either 25 or 50 learning points.  Setting this value to '0' will remove the learning requirement and allow you to automatically craft these items once you've met any perk requirements.\nDefault: 100 (between 2 to 4 items).")	
	elseif (option == OIDBreakdownSmelt)
		SetInfoText("Allows equipment and misc items to be smelted into ingots.")	
	elseif (option == OIDGemListMenu)
		SetInfoText("Choose the type of gemstone leveled list to associate with mining:\nVanilla = the chance of receiving more valuable gems is tied to player level.\nUnleveled = the chance of receiving more valuable gems is not dependent on player level.\nSpecific = Certain gems are associated with specific types of ore and are not dependent on player level.")	
	elseif (option == OIDMiningPresetsMenu)
		SetInfoText("Choose to adjust mining speed and the number of ores received from mining.\nVanilla = 3 ores in 9 strikes. More Ore = 6 ores in 18 strikes. Much More Ore = 24 ores in 72 strikes.\nFaster Mining = 3 ores in 3 strikes. Faster Mining and More Ore = 6 ores in 3 strikes.\nSlower Mining = 3 ores in 18 strikes. Slower Mining and Much More Ore = 24 ores in 144 strikes.")	
	elseif (option == OIDMiningStrikes)
		SetInfoText("Number of animation cycles per ore drop. One animation cycle consists of 3 strikes. Vanilla: 1 (3 strikes)\nAnimations per Drop X Drops per Vein X 3 = The total number of animated strikes that it will take to fully deplete the vein.")	
	elseif (option == OIDMiningAttackStrikes)
		SetInfoText("Number of attack strikes per ore drop. Vanilla: 3\nAttack Strikes per Drop X Drops per Vein = The total number of attack strikes that it will take to fully deplete the vein.")	
	elseif (option == OIDMiningOresDrop)
		SetInfoText("Number of ores received per drop. Vanilla: 1")	
	elseif (option == OIDMiningOresTotal)
		SetInfoText("Total number of drops before mineral vein is depleted. Vanilla: 3\nOres per drop X Drops per Vein = The total number of ores acquired before depleting the vein.")	
	elseif (option == OIDExperienceMining)
		SetInfoText("The amount of experience gained in smithing skill whenever the player mines ore. Setting the value at 0 means that mining has no effect on smithing skill. Vanilla: 0. Recommended settings if using this feature: 15-30.")	
	elseif (option == OIDGemChance)
		SetInfoText("Percent chance of receiving gemstones when mining. Vanilla: 10")	
	elseif (option == OIDFirewoodPerUse)
		SetInfoText("Pieces of firewood received per chop. Vanilla: 2")
	elseif (option == OIDFirewoodMax)
		SetInfoText("Maximum pieces of firewood per each activation. Vanilla: 6")
	elseif (option == OIDCorundumRename)
		SetInfoText("Corundum is renamed to Copper.")
	elseif (option == OIDMalachiteRename1)
		SetInfoText("Malachite Ore is renamed Raw Glass, and Refined Malachite is renamed Refined Glass.")
	elseif (option == OIDMalachiteRename2)
		SetInfoText("Malachite Ore is renamed Raw Moldavite, and Refined Malachite is renamed Refined Moldavite.")
	elseif (option == OIDQuicksilverRename)
		SetInfoText("Quicksilver is renamed to Mithril.")
	elseif (option == OIDUninstallMod)
		SetInfoText("Uninstalls mod and reverts any changes to vanilla settings.")
	elseif (option == OIDLevelUp)
		SetInfoText("Upgrades all unique leveled items that are in the player's inventory to match the player's current level.\nItems will lose any smithing improvements when they are upgraded.")
	elseif (option == OIDLevelUpSpell)
		SetInfoText("Adds the Upgrade Leveled Items spell to the player's spell list.")
	elseif (option == OIDLevelUpAuto)
		SetInfoText("Runs the Upgrade Leveled Items spell automatically whenever the player levels.\nThe spell will not run if the player is in combat when they level.")
	elseif (option == OIDFalmerLearning)
		SetInfoText("The player's total accumulated points toward learning to craft Falmer armor & weapons.\nThe Elven Smithing perk is required to learn and to craft Falmer items.")
	elseif (option == OIDDraugrLearning)
		SetInfoText("The player's total accumulated points toward learning to craft Ancient Nord armor & weapons.")
	elseif (option == OIDFalmerHeavyLearning)
		SetInfoText("The player's total accumulated points toward learning to craft Falmer Heavy armor.\nThe Dwarven Smithing perk is required to learn and to craft Falmer Heavy items.  Falmer Hardened items require the Ebony smithing perk.")
	elseif (option == OIDForswornLearning)
		SetInfoText("The player's total accumulated points toward learning to craft Forsworn armor & weapons.")
	elseif (option == OIDFalmerHeavyLearning)
		SetInfoText("The player's total accumulated points toward learning to craft Ancient Nord armor & weapons.")
	elseif (option == OIDFurRecipes)
		SetInfoText("Choose whether recipes with fur components will use generic Fur Plate or whether they will require specific hides.")
	elseif (option == OIDBandoliersOptions)
		SetInfoText("Additional options related to items added by Bandolier - Bags and Pouches. You can hide these options when you're finished and the custom settings will still be used.")
	elseif (option == OIDBandoliersEnchantSmall)
		SetInfoText("This is the strength of the carry weight enchantment applied to small bags and pouches.")
	elseif (option == OIDBandoliersEnchantMed)
		SetInfoText("This is the strength of the carry weight enchantment applied to medium bags and pouches.")
	elseif (option == OIDBandoliersEnchantLarge)
		SetInfoText("This is the strength of the carry weight enchantment applied to bandoliers.")
	elseif (option == OIDBandoliersEnchantXLarge)
		SetInfoText("This is the strength of the carry weight enchantment applied to large bandoliers.")
	elseif (option == OIDBandoliersWorkbench)
		SetInfoText("Choose which workstation to use to craft the bandoliers, bags, and pouches. Leather will always remain at the tanning rack, and recipes for buckles and armored bandoliers will always show up at the forge.")
	elseif (option == OIDDawnguardWorkbench)
		SetInfoText("Choose whether Dawnguard faction items can be crafted at any forge or if they can only be crafted at Fort Dawnguard.  In either case you must complete the quest requirements before you can craft Dawnguard items.")
	elseif (option == OIDDawnguardOnlyCrossbow)
		SetInfoText("Choose whether basic steel crossbows and bolts will be available throughout Skyrim or only available for members of the Dawnguard.")
	elseif (option == OIDBandoliersDistChance)
		SetInfoText("This is the percent chance that items from Bandoliers - Bags & Pouches will appear on NPCs.")
	elseif (option == OIDEnchantTweaks)
		SetInfoText("Allows you to adjust the strength of the enchantments you place on items.\nYou must keep this box checked to activate the enchanting bonuses.")
	elseif (option == OIDTemperTweaks)
		SetInfoText("Allows you to adjust the strength of the tempering improvements on items.\nYou must keep this box checked to activate the tempering bonuses.")
	elseif (option == OIDEnchClothing)
		SetInfoText("Adjust the strength of enchantments placed on clothing items. This will not apply to fortify alchemy, smithing, light armor or heavy armor enchantments.")
	elseif (option == OIDEnchBody)
		SetInfoText("Adjust the strength of enchantments placed on primary body pieces, such as cuirasses or robes. This will not apply to fortify alchemy, smithing, light armor or heavy armor enchantments.")
	elseif (option == OIDEnchMinor)
		SetInfoText("Adjust the strength of enchantments placed on hand, head, or feet pieces.")
	elseif (option == OIDEnchJewelry)
		SetInfoText("Adjust the strength of enchantments placed on jewelry items. This will not apply to fortify alchemy, smithing, light armor or heavy armor enchantments.")
	elseif (option == OIDEnchJewelryEx)
		SetInfoText("Adjust the strength of enchantments placed on expensive jewelry items. Expensive jewelry is defined as all jewelry worth over 300 gold.  The effect will stack with the adjustment for all jewelry.  This will not apply to fortify alchemy, smithing, light armor or heavy armor enchantments.")
	elseif (option == OIDEnchJewelryEq)
		SetInfoText("Adjust the strength of enchantments placed on exquisite jewelry items. Exquisite jewelry is defined as rings and necklaces worth over 700 base gold and circlets worth over 900 base gold. The effect will stack with the adjustment for all jewelry and expensive jewelry.  This will not apply to fortify alchemy, smithing, light armor or heavy armor enchantments.")
	elseif (option == OIDEnchDaggers)
		SetInfoText("Adjust the strength of enchantments placed on daggers.")
	elseif (option == OIDEnchBows)
		SetInfoText("Adjust the strength of enchantments placed on bows and other ranged weapons.")
	elseif (option == OIDEnch1Hand)
		SetInfoText("Adjust the strength of enchantments placed on one-handed weapons, except daggers.")
	elseif (option == OIDEnch2Hand)
		SetInfoText("Adjust the strength of enchantments placed on two-handed weapons, except bows.")
	elseif (option == OIDTemperBase)
		SetInfoText("Adjust the strength of all smithing improvements.")
	elseif (option == OIDTemperDagger)
		SetInfoText("Adjust the strength of smithing improvements on daggers.")
	elseif (option == OIDTemperBow)
		SetInfoText("Adjust the strength of smithing improvements on bows.")
	elseif (option == OIDTemper2Hand)
		SetInfoText("Adjust the strength of smithing improvements on two-handed weapons, except bows.")
	elseif (option == OIDTemperLArmor)
		SetInfoText("Adjust the strength of smithing improvements on all Light Armor items.  This will not apply to shields.")
	elseif (option == OIDTemperHide)
		SetInfoText("Adjust the strength of smithing improvements on armors made from leather, fur, or hide.  This effect will stack with the Light Armor adjustment.")
	elseif (option == OIDTemperShields)
		SetInfoText("Adjust the strength of smithing improvements on shields.")
	elseif (option == OIDTemperCuirass)
		SetInfoText("Adjust the strength of smithing improvements on cuirasses.")
	elseif (option == OIDTemperGauntlets)
		SetInfoText("The strength of smithing improvements on gauntlets are multiplied by this amount.")
	elseif (option == OIDDaedricAtNight)
		SetInfoText("Allows Daedric items to only be crafted at night - between 9pm and 5am.")
	elseif (option == OIDInventoryConditions)
		SetInfoText("Adds inventory conditions to certain recipes to help reduce clutter in the crafting menu.  These conditions are most prevalent on jewelry and cooking recipes.  Turning this option off will not remove inventory conditions on smelter, leather, fur plate, or learning recipes.")
	elseif (option == OIDSilverWeap)
		SetInfoText("The percent increase in damage dealt by Silver weapons when used against the undead or werewolves.\nSetting this value to 0 results in the vanilla default of +20 damage.")
;	elseif (option == OIDSilverArmor)
;		SetInfoText("The percent damage reduction against attacks from undead or werewolves when wearing a full set of Silver armor .  This does not apply to any vanilla armors, but it does apply to CCO-compatible mods.  Setting the value to 0 will result in no bonus for silver armor.")
	elseif (option == OIDSilverArmor)
		SetInfoText("Reduced damage from attacks by undead or werewolves when wearing a full set of Silver Ebony armor .  This will apply to aMidianborn's Silver Ebony armor if the CCO-compatible file is installed.  Setting the value to 0 will result in no bonus.")
	elseif (option == OIDGoldArmor)
		SetInfoText("Bonus applied to Resist Fire enchantments when placed on Gold Ebony armor.  This will apply to aMidianborn's Gold Ebony armor only if the CCO-compatible file is installed. Setting the value to 0 will result in no bonus.")
	elseif (option == OIDStalhrimEnch)
		SetInfoText("Bonus applied to Frost enchantments when placed on Stalhrim items. The vanilla bonus is 25% but internal text indicates it was probably intended to be 10%.")
	elseif (option == OIDBookofSilenceRace)
		SetInfoText("This will apply lore-friendly racial restrictions to some of the Book of Silence variant crafting recipes. Only Altmer characters will be able to craft Thalmor variants, and only Nords can craft the Steel Glass variant.")	
	elseif (option == OIDTanningRackXP)
		SetInfoText("Gain Smithing experience when using the tanning rack.")
	elseif (option == OIDSmelterXP)
		SetInfoText("Gain Smithing experience when using the smelter.")
	endIf
endEvent
