Jump to content

Deleted45243387User

Account closed
  • Posts

    59
  • Joined

  • Last visited

Reputation

0 Neutral

Nexus Mods Profile

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. 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
  2. I will try this in the morning! Thank you for your continued help.. I really appreciate it..
  3. If the bool is set false by default should the line read like this? Event OnConfigClose() RegisterForSingleUpdate(0.1) EndEvent Event OnUpdate() If BooksAdded == False AddBooks() Else RemoveBooks() EndIf EndEvent
  4. 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
  5. Event OnOptionSelect(int option) If (option == OIDBooks) BooksAdded = !BooksAdded SetToggleOptionValue(option, BooksAdded) if BooksAdded == True Debug.MessageBox("Books added to inventory") if BooksAdded == false Debug.MessageBox("Books removed from inventory") endif that doesnt work either
  6. 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
  7. ive tried taht but the books never remove.. like it needs its own function somehow
  8. And as for other things you would do regarding player ref.. I'm only a newbie so I actually welcome any feedback or advice.. thank you!
  9. What an amazing reply.. o did Initially try a remove function but didn't know about the bool variable so maybe that's why it wasn't working.. also as for doing the work after your absolutely right I just didn't know how to implement it.. I really appreciate the time you've taken to reply!
  10. 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
×
×
  • Create New...