Do you love data as much as I do? If so, you may be a bit frustrated at how working in GMS isn't quite as elegant as other languages. Fear not! This collection of scripts adds many "missing" or otherwise useful functions to be used inside of GMS2. This is a library that I have constructed for the past few months whenever I had need for a new script. I will more than likely be adding more as I come up with more ideas.
If you have ideas for other functions, let me know and I'll look into making them!
Adds a list to a list (for the purpose of JSON encoding)
Adds a map to a list (for the purpose of JSON encoding)
Creates a list out of the given map's values
Creates a list out of the given map's keys
Takes the given two indices and swaps their values in a list
Finds and deletes the given value from a list
Adds a map to a list (for the purpose of JSON encoding)
Returns and removes the top value (0 index) from a list
Adds multiple keys and values to the given map
Updates multiple values in the given map
Returns the first key that holds the given value in a map
Returns a map with the keys and values swapped from the given map
Sorts the 2d array in an ascending order inside the given row
Returns an array translated from a grid, with the option to destroy the grid afterwords.
Saves the given map to a file in JSON format with the given filename.
Loads the JSON file and returns its data in a map
Saves the given ds_map to a file in an encoded JSON format
Loads the encrypted JSON file and returns its data in a map
Attempts to destroy all persistent instances, data structures, buffers, and surfaces.