MeltingCat
Member
Hi, I'm having trouble saving my inventory system in a ds_map as part of a JSON.
I found this thread:
https://forum.yoyogames.com/index.php?threads/adding-a-ds-grid-to-a-ds_map.50573/
where the answer to my question seems to be written, but I can't make it work.
As of lack of experience I believe I might just not get the correct syntax for it.
I've been trying multiple ways to use ds_grid_read/write correctly.
saving:
loading:
is there something else to it?
thanks in advance!
I found this thread:
https://forum.yoyogames.com/index.php?threads/adding-a-ds-grid-to-a-ds_map.50573/
where the answer to my question seems to be written, but I can't make it work.
As of lack of experience I believe I might just not get the correct syntax for it.
I've been trying multiple ways to use ds_grid_read/write correctly.
saving:
Code:
ds_map_add(_Map, "InventoryBox", ds_grid_write(Box))
Code:
ds_grid_read(Box, _Map[? "InventoryBox"])
thanks in advance!