E
elsi11
Guest
Hey guys!
I like arrays. You got 2 types. one has 1 number in the brackets, the other has 2 numbers. They hold values and they look like a grid. Easy peasy. But I see high-level code almost always using ds_something. I understand you can shift values or something in them, and I suspect that in a ds grid, you can have variable length of rows and don't waste ram if one row has 100 entries and the others just 1.
But I still don't get it. Why? Are there special kind of situations where this is good? I know for sure that you will use ds_lists in a save/load system. What's wrong with a local array as an intermediary? I see how the ds_grid shuffle function would be useful for randomizing a result of a gamble where certain items have a lower/higher chance to get picked (the super rare item has only 1 space in the grid, while the basic ones occupy like 20 spaces), but I'm also sure you could do this with a small script for arrays.
I dunno.
I never used them because they look hard, and I'm 50% sure they are more intensive than arrays.
Explain this to me.
Tnx!
I like arrays. You got 2 types. one has 1 number in the brackets, the other has 2 numbers. They hold values and they look like a grid. Easy peasy. But I see high-level code almost always using ds_something. I understand you can shift values or something in them, and I suspect that in a ds grid, you can have variable length of rows and don't waste ram if one row has 100 entries and the others just 1.
But I still don't get it. Why? Are there special kind of situations where this is good? I know for sure that you will use ds_lists in a save/load system. What's wrong with a local array as an intermediary? I see how the ds_grid shuffle function would be useful for randomizing a result of a gamble where certain items have a lower/higher chance to get picked (the super rare item has only 1 space in the grid, while the basic ones occupy like 20 spaces), but I'm also sure you could do this with a small script for arrays.
I dunno.
I never used them because they look hard, and I'm 50% sure they are more intensive than arrays.
Explain this to me.
Tnx!