-
Posts
59 -
Joined
-
Last visited
Reputation
0 NeutralNexus Mods Profile
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
So today i realised that vortex is now merging mods (i assume from the same page) into one line so you can select between them in case of variants..cool idea... the problem is that ive downloaded 13 compatibility patches from the same mod page.. vortex has for some reason merged 6 of them into one line so now i can only have 1 patch active and i cant see a way to unmerge the line showing all available mods.. these are completely seperate plugins, with different names, different versions, different sizes, but vortex has merged them rendering 5/6 of the plugins unusable. can anyone advise on this please? cheers
-
Calling the functions from OnOptionSelect like this works perfectly: Event OnOptionSelect(int option) If (option == OIDBooks) BooksAdded = !BooksAdded SetToggleOptionValue(option, BooksAdded) If BooksAdded == True AddBooks() Else RemoveBooks() EndIf Endevent But doing it like this is causing issues.. Event OnOptionSelect(int option) If (option == OIDBooks) BooksAdded = !BooksAdded SetToggleOptionValue(option, BooksAdded) EndIf EndEvent Event OnConfigClose() RegisterForSingleUpdate(0.1) EndEvent Event OnUpdate() If BooksAdded == True AddBooks() Else RemoveBooks() EndIf EndEvent Calling the function from OnUpdate makes the menu add the books again automatically everytime the menu is closed
-
the functions are working perfectly now.... what im trying to do now is to display a different message when the toggle is activated in MCM like so Event OnOptionSelect(int option) If (option == OIDBooks)BooksAdded = !BooksAddedDebug.MessageBox("Books added to inventory")if BooksAdded == True Debug.MessageBox("Books removed from inventory")SetToggleOptionValue(option, BooksAdded)endif but its displaying both messages one after eachother on a single toggle
-
hey everyone just after a little help with this code... Book[] Property MyBooks Auto Function AddBooks() Actor aPlayer = Game.GetPlayer() int i = MyBooks.Length while (i > 0) i -= 1 aPlayer.AddItem(MyBooks, 1) endWhileEndFunction ;----------------------------------------- ON OPTION SELECT --------------------------------------------------------- Event OnOptionSelect(int option) elseif (option == OIDBooks)AddBooks = !AddBooksSetToggleOptionValue(option, AddBooks) AddBooks() -----------------------------------------------------------------------------------------------------------------------------------so this works perfectly for adding the books ive created to a players inventory though a toggle in my MCM menu.. but.. i want to be able to remove them too through the same toggle.. the code to remove the items is this: Function AddBooks() Actor aPlayer = Game.GetPlayer() int i = MyBooks.Length while (i > 0) i -= 1 aPlayer.RemoveItem(MyBooks, 1) endWhileEndFunction ------------------------------------------------------- which also works perfectly.. the problem is with my somewhat limited experience i cant intergrate them.. its either one or the other.. papyrus will only allow one instance of AddBooks() and ive tried adding Else, If.. you know to try seperating them but im really struggling.. any help would be greatly appreciated