• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

 [Feature request] ds_..._destroy() for multiple ids

Dmi7ry

Member
Hi there.

I think will be useful support for destroy multiple lists/etc, like from:
Code:
ds_list_destroy(enemies);
ds_list_destroy(items);
ds_list_destroy(food);
to:
Code:
ds_list_destroy(enemies, items, food);
and same for other data structures.

I know that it's easy to do like this:
Code:
for (var i=0; i<argument_count; i++)
{
    if ds_exists(ds_type_list, argument[i])
        ds_list_destroy(argument[i]);
}
but if GMS will support this, it will be useful.
 

Tthecreator

Your Creator!
This is one of these small little scripts.
You could think of a thousand easy, little and certainly useful scripts. It would be cool if YYG took the best out of all these "useful scripts" type assets and put then into gm. I see you also have one of those.
 

Mike

nobody important
GMC Elder
This is easy to write using a script and variable length arguments...
 
Top