-
Notifications
You must be signed in to change notification settings - Fork 4
Dictionary Value Type
github-actions[bot] edited this page May 29, 2026
·
3 revisions
_config.set_value("Dictionary", "testStringDictionary", {
"name": "Test Dictionary",
"tooltip": "A test dictionary",
"valueType": "String",
"default": { "Test Key": "Test Value" },
"defaultItemValue": { "Key": "Value" },
"maxItems": 5
})| Name | Value Type | Description |
|---|---|---|
name |
String |
The friendly name of the value that will be displayed in the configuration menu. |
toolitp |
String |
A short description of the value that will be displayed when hovering over the name in the configuration menu. |
default |
Dictionary |
The default value and key that get set when the player creates a new item. Note: The default key will auto incriment incase there's another simliarly named key. |
valueType |
String |
This sets the type of inputs to be displayed to the player when adding items to the array. See below in Additional Information for the available array types. |
defaultItemValue |
Based on Array type | The default value assigned when the player creates a new item in the array. |
| Name | Value Type | Description |
|---|---|---|
value |
Dictionary |
The current value that is set. If this property is not present on creation it will automatically be set to the default value. |
category |
String |
The categories name to place the value in. Learn more about this property here. |
menu_pos |
Int |
Overrides the default alhpabetical sorting and places it in the given position in relation to other values with a menu_pos property. Learn more about this property here.
|
maxItems |
Int |
How many items the player is able to add to the array. If this property is not set it allows the player to add as many as they wish. |
Currently not all MCM Value Types are supported to be used as a Dictionary input type. The following types are ones that are supported:
Along with the listed optional properties on this page any of the other optional properties in the given valueType can be added to the Dictionary's properties and will be applied to each added array item.