bwins95 Posted February 10, 2013 Share Posted February 10, 2013 (edited) I've managed to write this script and it compiles successfully. i just can't get the add spell part to add the spell when I check the box. Scriptname MyConfigmenu extends SKI_ConfigBase Spell property aaaaa autoGlobalVariable Property TestSpellMCM Auto ; OIDsint TestSpellMCMToggle event OnPageReset(string page) AddHeaderOption("Group 1") TestSpellMCMTOggle = AddToggleOption("spell", TestSpellMCM.GetValue() != 0.0)endEvent event OnOptionSelect(int option) if option == TestSpellMCMToggle Bool toggleVal = (TestSpellMCM.GetValue() == 0.0) If toggleVal TestSpellMCM.SetValue(1.0) Elseif toggleVal TestSpellMCM.SetValue(0.0) EndIf SetToggleOptionValue(option, toggleVal) Game.GetPlayer().AddSpell(aaaaa) endifendEvent Event OnOptionDefault(Int option) Float value If option == TestSpellMCMToggle TestSpellMCM.SetValue(1.0) SetToggleOptionValue(option, True) endifendEvent Event OnOptionHighlight(Int option) If option == TestSpellMCMToggle SetInfoText("Adds spell.") endifendEvent Edited February 11, 2013 by bwins95 Link to comment Share on other sites More sharing options...
Recommended Posts