Jump to content

Getting value from MCM setting


ThalonMook

Recommended Posts

Hi,

 

I want to read a value from the MCM setting file.

I found the 'int Function GetModSettingInt(string asModName, string asSetting) native global'

command but dont know to use in my script.

 

I realy new on scripting papyrus but I learn fast. So I need a little more info.

 

Atm I use the MCM_Demo to learn how to use the MCM

 

I tried:

 

Int AnzMuni = GetModSettingInt("MCM_Demo", "fSliderValue")

 

it will not compile I think I have to connect this command to the MCM_Demo script or what ever.

My script dont have a quest atm and I start it with hotkey and cgf "MyScript.MyFunction"

 

Cu

Thalon

Link to comment
Share on other sites

Ok found it out.

 

I looked at the MCM_Demo.psc and saw I have to use:

Int AnzMuni = MCM.GetModSettingInt("MCM_Demo", "fSliderValue:Main")

 

Ok other question :smile:

 

Is it possible to make dynamic MCM menus.

 

What I need is that MCM shows all my companions from an array that I create in my scipt.

I need to set some parameters to every one of them via the MCM.

 

Cu Thalon

Link to comment
Share on other sites

  • Recently Browsing   0 members

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