ds_map_set(id, key, value)
|id||The id of the map to use.|
|key||The key to set.|
|value||The value to set the key to.|
With this function you can set the value of a key within a given
DS map. You supply the DS map ID value (as returned by the function
give the key you want to set and the value to set it to. Keys can
be integers or strings, and if the given key does not exist then it
will be created for you. This function is the same as using the
accessor to set/create a map key/value pair.
ds_map_set(map, "score", 0);
The above code will check to see if the given key exists and if
it doesn't then it is created and set.