bwins95 Posted November 10, 2013 Share Posted November 10, 2013 (edited) I just don't see what is wrong with this script. when I look at it in game the MCM menu for it is blank and half of the other menus don't work. I had it working with two switches, but when I increased it to 8 it stopped working. I just know that when I changed them to fit my needs I made a small mistake I can't see. it compiles just fine and gives no errors. I've spent the last few hours trying to get it working. scn aaaaGlowingItemsMCMshort iMastershort iMouseovershort iOptionshort iTempfloat fTempfloat fValuereference rListbegin GameMode if GetGameRestarted if IsModLoaded "The Mod Configuration Menu.esp" set iMaster to GetModIndex "The Mod Configuration Menu.esp" set rList to BuildRef iMaster 2790 ListAddForm rList aaaaGlowingItemsMiscItem endif endifendbegin MenuMode 1013 if IsModLoaded "The Mod Configuration Menu.esp" else Return endif if GetUIFloat "StartMenu/MCM/_ActiveMod" == GetModIndex "Glowing items V2menu prep" set iOption to GetUIFloat "StartMenu/MCM/_ActiveOption" set fValue to GetUIFloat "StartMenu/MCM/_Value";++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++;==================================================================== if GetUIFloat "StartMenu/MCM/_Reset" ;1 - RESET SetUIFloat "StartMenu/MCM/_Reset" 0 SetUIFloat "StartMenu/MCM/*:1/_columns" 1 set itemp to aaaaGlowingItemsArmor == 1 SetUIFloat "StartMenu/MCM/*:1*:5/_enable" 1 SetUIString "StartMenu/MCM/*:1*:5/_title" "Glowing armor is" SetUIFloat "StartMenu/MCM/*:1*:5/_type" 5 SetUIFloat "StartMenu/MCM/*:1*:5/_value" aaaaGlowingItemsArmor set itemp to aaaaGlowingItemsWeapons == 1 SetUIFloat "StartMenu/MCM/*:2*:5/_enable" 1 SetUIString "StartMenu/MCM/*:2*:5/_title" "Glowing Weapons is" SetUIFloat "StartMenu/MCM/*:2*:5/_type" 5 SetUIFloat "StartMenu/MCM/*:2*:5/_value" aaaaGlowingItemsWeapons set itemp to aaaaGlowingItemsBooks == 1 SetUIFloat "StartMenu/MCM/*:3*:5/_enable" 1 SetUIString "StartMenu/MCM/*:3*:5/_title" "Glowing Books is" SetUIFloat "StartMenu/MCM/*:3*:5/_type" 5 SetUIFloat "StartMenu/MCM/*:3*:/_value" aaaaGlowingItemsBooks set itemp to aaaaGlowingItemsClothing == 1 SetUIFloat "StartMenu/MCM/*:4*:5/_enable" 1 SetUIString "StartMenu/MCM/*:4*:5/_title" "Glowing Clothing is" SetUIFloat "StartMenu/MCM/*:4*:5/_type" 5 SetUIFloat "StartMenu/MCM/*:4*:5/_value" aaaaGlowingItemsClothing set itemp to aaaaGlowingItemsContainers == 1 SetUIFloat "StartMenu/MCM/*:5*:5/_enable" 1 SetUIString "StartMenu/MCM/*:5*:5/_title" "Glowing Containers is" SetUIFloat "StartMenu/MCM/*:5*:5/_type" 5 SetUIFloat "StartMenu/MCM/*:5*:5/_value" aaaaGlowingItemsContainers set itemp to aaaaGlowingItemsIngredient == 1 SetUIFloat "StartMenu/MCM/*:6*:5/_enable" 1 SetUIString "StartMenu/MCM/*:6*:5/_title" "Glowing Ingredient is" SetUIFloat "StartMenu/MCM/*:6*:5/_type" 5 SetUIFloat "StartMenu/MCM/*:6*:5/_value" aaaaGlowingItemsIngredient set itemp to aaaaGlowingItemsMisc == 1 SetUIFloat "StartMenu/MCM/*:7*:5/_enable" 1 SetUIString "StartMenu/MCM/*:7*:5/_title" "Glowing Misc is" SetUIFloat "StartMenu/MCM/*:7*:5/_type" 5 SetUIFloat "StartMenu/MCM/*:7*:5/_value" aaaaGlowingItemsMisc set itemp to aaaaGlowingItemsAmmo == 1 SetUIFloat "StartMenu/MCM/*:8*:5/_enable" 1 SetUIString "StartMenu/MCM/*:8*:5/_title" "Glowing Ammo is" SetUIFloat "StartMenu/MCM/*:8*:5/_type" 5 SetUIFloat "StartMenu/MCM/*:8*:5/_value" aaaaGlowingItemsAmmo endif;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++;==================================================================== elseif GetUIFloat "StartMenu/MCM/_Default" ;2 - DEFAULT SetUIFloat "StartMenu/MCM/_Default" 0 SetUIFloat "StartMenu/MCM/_Reset" 1 set aaaaGlowingItemsArmor to 0 set aaaaGlowingItemsWeapons to 0 set aaaaGlowingItemsBooks to 0 set aaaaGlowingItemsClothing to 0 set aaaaGlowingItemsContainers to 0 set aaaaGlowingItemsIngredient to 0 set aaaaGlowingItemsMisc to 0 set aaaaGlowingItemsAmmo to 0;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++;==================================================================== elseif GetUIFloat "StartMenu/MCM/_NewValue" ;3 - NEW VALUE SetUIFloat "StartMenu/MCM/_NewValue" 0 SetUIFloat "StartMenu/MCM/_Reset" 1 if iOption == 4 set aaaaGlowingItemsArmor to (0 + 1) - aaaaGlowingItemsArmor elseif iOption == 5 set aaaaGlowingItemsWeapons to (0 + 1) - aaaaGlowingItemsWeapons elseif iOption == 5 set aaaaGlowingItemsBooks to (0 + 1) - aaaaGlowingItemsBooks else if iOption == 5 set aaaaGlowingItemsClothing to (0 + 1) - aaaaGlowingItemsClothing else if iOption == 5 set aaaaGlowingItemsContainers to (0 + 1) - aaaaGlowingItemsContainers else if iOption == 5 set aaaaGlowingItemsIngredient to (0 + 1) - aaaaGlowingItemsIngredient elseif iOption == 5 set aaaaGlowingItemsMisc to (0 + 1) - aaaaGlowingItemsMisc else iOption == 5 set aaaaGlowingItemsAmmo to (0 + 1) - aaaaGlowingItemsAmmo endif;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++;==================================================================== if iMouseover != GetUIFloat "StartMenu/MCM/*:1/_optionID" ;7 - MOUSE-OVER set iMouseover to GetUIFloat "StartMenu/MCM/*:1/_optionID" if iMouseover SetUIFloat "StartMenu/MCM/*:9/visible" 1 if iMouseover == 1 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing armor on or off." elseif iMouseover == 2 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing Weapons on or off." elseif iMouseover == 3 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing Books on or off." elseif iMouseover == 4 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing Clothing on or off." elseif iMouseover == 5 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing Containers on or off." elseif iMouseover == 6 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing Ingredient on or off." elseif iMouseover == 7 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing Misc on or off." elseif iMouseover == 8 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing Ammo on or off." else SetUIFloat "StartMenu/MCM/MCM_Info/visible" 0 endif else SetUIFloat "StartMenu/MCM/MCM_Info/visible" 0 endif endif endifend Edited November 10, 2013 by bwins95 Link to comment Share on other sites More sharing options...
jazzisparis Posted November 11, 2013 Share Posted November 11, 2013 (edited) Well, too many things were wrong. Too many to even list here. I really suggest you read some basic scripting guides (and then the MCM guide). Anyway, here is the fixed script.Note that on line #26, the double-quotes following GetModIndex should contain the full name of your mod file. scn aaaaGlowingItemsMCM short iMaster short iMouseover short iOption short iTemp float fTemp float fValue ref rList begin GameMode if GetGameRestarted if IsModLoaded "The Mod Configuration Menu.esp" set iMaster to GetModIndex "The Mod Configuration Menu.esp" set rList to BuildRef iMaster 2790 ListAddForm rList aaaaGlowingItemsMiscItem endif endif end begin MenuMode 1013 if IsModLoaded "The Mod Configuration Menu.esp" if GetUIFloat "StartMenu/MCM/_ActiveMod" == GetModIndex "" set iOption to GetUIFloat "StartMenu/MCM/_ActiveOption" set fValue to GetUIFloat "StartMenu/MCM/_Value" if GetUIFloat "StartMenu/MCM/_Reset" ;1 - RESET SetUIFloat "StartMenu/MCM/_Reset" 0 SetUIFloat "StartMenu/MCM/*:1/_columns" 1 SetUIFloat "StartMenu/MCM/*:1*:1/_enable" 1 SetUIString "StartMenu/MCM/*:1*:1/_title" "Glowing armor is" SetUIFloat "StartMenu/MCM/*:1*:1/_type" 5 SetUIFloat "StartMenu/MCM/*:1*:1/_value" aaaaGlowingItemsArmor SetUIFloat "StartMenu/MCM/*:1*:2/_enable" 1 SetUIString "StartMenu/MCM/*:1*:2/_title" "Glowing Weapons is" SetUIFloat "StartMenu/MCM/*:1*:2/_type" 5 SetUIFloat "StartMenu/MCM/*:1*:2/_value" aaaaGlowingItemsWeapons SetUIFloat "StartMenu/MCM/*:1*:3/_enable" 1 SetUIString "StartMenu/MCM/*:1*:3/_title" "Glowing Books is" SetUIFloat "StartMenu/MCM/*:1*:3/_type" 5 SetUIFloat "StartMenu/MCM/*:1*:3/_value" aaaaGlowingItemsBooks SetUIFloat "StartMenu/MCM/*:1*:4/_enable" 1 SetUIString "StartMenu/MCM/*:1*:4/_title" "Glowing Clothing is" SetUIFloat "StartMenu/MCM/*:1*:4/_type" 5 SetUIFloat "StartMenu/MCM/*:1*:4/_value" aaaaGlowingItemsClothing SetUIFloat "StartMenu/MCM/*:1*:5/_enable" 1 SetUIString "StartMenu/MCM/*:1*:5/_title" "Glowing Containers is" SetUIFloat "StartMenu/MCM/*:1*:5/_type" 5 SetUIFloat "StartMenu/MCM/*:1*:5/_value" aaaaGlowingItemsContainers SetUIFloat "StartMenu/MCM/*:1*:6/_enable" 1 SetUIString "StartMenu/MCM/*:1*:6/_title" "Glowing Ingredient is" SetUIFloat "StartMenu/MCM/*:1*:6/_type" 5 SetUIFloat "StartMenu/MCM/*:1*:6/_value" aaaaGlowingItemsIngredient SetUIFloat "StartMenu/MCM/*:1*:7/_enable" 1 SetUIString "StartMenu/MCM/*:1*:7/_title" "Glowing Misc is" SetUIFloat "StartMenu/MCM/*:1*:7/_type" 5 SetUIFloat "StartMenu/MCM/*:1*:7/_value" aaaaGlowingItemsMisc SetUIFloat "StartMenu/MCM/*:1*:8/_enable" 1 SetUIString "StartMenu/MCM/*:1*:8/_title" "Glowing Ammo is" SetUIFloat "StartMenu/MCM/*:1*:8/_type" 5 SetUIFloat "StartMenu/MCM/*:1*:8/_value" aaaaGlowingItemsAmmo elseif GetUIFloat "StartMenu/MCM/_Default" ;2 - DEFAULT SetUIFloat "StartMenu/MCM/_Default" 0 SetUIFloat "StartMenu/MCM/_Reset" 1 set aaaaGlowingItemsArmor to 0 set aaaaGlowingItemsWeapons to 0 set aaaaGlowingItemsBooks to 0 set aaaaGlowingItemsClothing to 0 set aaaaGlowingItemsContainers to 0 set aaaaGlowingItemsIngredient to 0 set aaaaGlowingItemsMisc to 0 set aaaaGlowingItemsAmmo to 0 elseif GetUIFloat "StartMenu/MCM/_NewValue" ;3 - NEW VALUE SetUIFloat "StartMenu/MCM/_NewValue" 0 SetUIFloat "StartMenu/MCM/_Reset" 1 if iOption == 1 set aaaaGlowingItemsArmor to fValue elseif iOption == 2 set aaaaGlowingItemsWeapons to fValue elseif iOption == 3 set aaaaGlowingItemsBooks to fValue elseif iOption == 4 set aaaaGlowingItemsClothing to fValue elseif iOption == 5 set aaaaGlowingItemsContainers to fValue elseif iOption == 6 set aaaaGlowingItemsIngredient to fValue elseif iOption == 7 set aaaaGlowingItemsMisc to fValue elseif iOption == 8 set aaaaGlowingItemsAmmo to fValue endif endif if iMouseover != GetUIFloat "StartMenu/MCM/*:1/_optionID" ;7 - MOUSE-OVER set iMouseover to GetUIFloat "StartMenu/MCM/*:1/_optionID" if iMouseover SetUIFloat "StartMenu/MCM/*:9/visible" 1 if iMouseover == 1 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing armor on or off." elseif iMouseover == 2 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing Weapons on or off." elseif iMouseover == 3 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing Books on or off." elseif iMouseover == 4 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing Clothing on or off." elseif iMouseover == 5 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing Containers on or off." elseif iMouseover == 6 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing Ingredient on or off." elseif iMouseover == 7 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing Misc on or off." elseif iMouseover == 8 SetUIString "StartMenu/MCM/MCM_Info/string" "Turn glowing Ammo on or off." else SetUIFloat "StartMenu/MCM/MCM_Info/visible" 0 endif else SetUIFloat "StartMenu/MCM/MCM_Info/visible" 0 endif endif endif endif end Edited November 11, 2013 by jazzisparis Link to comment Share on other sites More sharing options...
Recommended Posts