C
Chafe
Guest
I've been trying to figure out my inventory for and RPG, and this is the idea I have:
1. Set up ds_maps containing information for each individual item (sprite, name, description, script for what it does when used etc)
2. Set up ds_grid for inventory, then use a script to add that item to my inventory when I want to
3. Call those ds_maps in those specific ds_grid positions when I need them
Basically, I'm trying to adapt the Beyond Us Gaming inventory tutorial from using Variables to set up each item every time I want to add it to my inventory to using a consistent list of ds_maps that I can just call whenever.
But is this smart at all? If I have 100+ items, then will Game Maker be able to handle that many ds_maps at once without massive memory leakage or whatever? Can I, in fact, actually access ds_map keys and values within a ds_grid?
1. Set up ds_maps containing information for each individual item (sprite, name, description, script for what it does when used etc)
2. Set up ds_grid for inventory, then use a script to add that item to my inventory when I want to
3. Call those ds_maps in those specific ds_grid positions when I need them
Basically, I'm trying to adapt the Beyond Us Gaming inventory tutorial from using Variables to set up each item every time I want to add it to my inventory to using a consistent list of ds_maps that I can just call whenever.
But is this smart at all? If I have 100+ items, then will Game Maker be able to handle that many ds_maps at once without massive memory leakage or whatever? Can I, in fact, actually access ds_map keys and values within a ds_grid?