Set Map Value Icon Set Map Value

With this action you can add a key/value pair into the map data structure. You supply the variable that holds the map index (as returned by the action Create Map) and then give a "key" (which is the identifier within the map for a value), and then the "value" to be associated with that key. Both keys can be either integer values (like 0, 200, 36712, etc...) or strings (like "Name", "Shield" etc...), but the value can be any valid data type.

 

Action Syntax:

Set Map Value Action

Arguments:

ArgumentDescription
MapThe index (stored in a variable) of the map to set
KeyThe key to set (integer or string)
ValueThe value to be stored with the given key

 

Example:

Set Map Value ExampleThe above action block code creates a new map data structure and then sets three key/value entries in it.