Modify Dictionary
Description
Set a value on a Dictionary using a specified key. If the key already exists, it will overwrite the value with the new one.
Properties
Triggers Immediately
| Dictionary Type |
Behavior: Perform the function on a Dictionary Behavior. Value: Performs the function on a JSON formatted value. |
| Modification |
Set Key Value: Add a new key value or overwrite an existing one. Set Dictionary: Removes the contents of the dictionary and replaces it with the keys and values from a specified dictionary. Delete Key: Delete a value associated with a specified key. Delete All Keys: Remove all key values in the dictionary. Add Entries: Adds key value pairs from another dictionary to the dictionary. |
| Key | (Set Key Value, Delete Key) The key of the value you want to modify. |
| Value | (Set Key Value) The value you want to store in the dictionary. |
| Pointer |
(Set Key Value) If this toggle is on, the new value will reference the behavior's output field instead of a hardcoded value. This means that when the output of a behavior has been updated, its changes will be reflected in the array. |
Outputs
| Key Values |
Outputs the modified keys and values stored in the dictionary. |
Examples
If you have an inventory system, and you want to equip HELMET on the HEAD key.

