Skip to content

Actions

Parapets edited this page May 21, 2026 · 1 revision

If you need complex behavior when changing settings, you can use actions to set this up.

RunScript

Specify a path to a script to run. The path should be specified relative to the location of the config.

{
  ...
  "action": {
    "type": "RunScript",
    "path": "MyMod/Action.txt"
  }
}

On the main menu, scripting is done through the OBScript language. Those who modded The Elder Scrolls IV: Oblivion may be familiar with this language; however, unlike in Oblivion mods, these are considered "partial scripts" and do not need scriptname, begin, or end, commands. If you declare a variable named value in your script, it will automatically be assigned the value of the setting that triggers the action.

Example:

; Value of MyMod_Setting1
float value

if value <= 10
  set MyMod_Setting2 to (10 - value)
endif

Clone this wiki locally