Jump to content

[LE] MCM menu add items/spells/perks/etc.


jbfilms1

Recommended Posts

One solution I have seen is to add the items when the option is turned on and take them away when the option is turned off. Both within the OnOptionSelect event. However, that can cause issues with the MCM menu system if some of those commands are latent. Ever have a MCM menu that stops showing options in one mod after you have been in menus for other mods? Its an issue that is related to calling certain commands within the MCM system.

 

It is better therefore to keep track of the user's choices and perform such tasks when the menu closes. Even so, it is still a good idea to suggest that users set options and then fully exit the MCM system back to the game. The following bit of code that I am sharing uses this approach. Without the full script it may not be clear what is going on. Basically, I used arrays to store user choices and then cycle those arrays after the menu closes and perform various tasks as needed.

 

  Reveal hidden contents

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...