Sorry - when this thread first showed up, this was already answered in two other threads, so I just skipped over it figuring people would start noticing those threads.
Since then, forum activity has exploded, and I didn't see any of the bumps (I've only read probably 1/4 of the threads in this forum since I don't have time to read them all).
In the UserInterface folder, there is a file named "default.zip". Within that, there are a number of files that have a ".lua" extension.
Anything that can be done in one line in those files can be done with a script command.
For example, if you look in "Source/Debug.lua", you'll see a function called "Debug.Print". You can call this with a script command by...
Code:
/script Debug.Print( "Some message" )
This will then show in your Debug Console (which you can turn on with "/debugwindow on").
If you look in "Source/SettingsWindow.lua", you'll see a large function called "SettingsWindow.OnApplyButton". In this function, you can see how the settings are changed.
If you wanted to change the foliage setting, for example, you'd look at this line:
Code:
SystemData.Settings.Resolution.displayFoliage = ButtonGetPressedFlag( "SettingsGraphicsShowFoliageButton" )
So, to change the foliage setting to false, you could use the following script command:
Code:
/script SystemData.Settings.Resolution.displayFoliage = false
But you'd notice that this doesn't actually change your foliage. So, you should look back to the OnApplyButton function and see what else it does. If you look down at the bottom, you'll see this line:
This is what actually applies your settings, and causes them to take effect. So to change the foliage setting, you'll need two script commands.
Code:
/script SystemData.Settings.Resolution.displayFoliage = false
/script UserSettingsChanged()