• 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!

Legacy GM Best way to store instance id's & their variables within an organized list?

M

mrjonwc

Guest
I have multiples of the same object and want to store their instance ID's along with their variables (which are randomized) in a list or maybe array. The point of this is to appoint each object into a role in my game like workers, warriors, leader ect. Say if an object has the highest leadership skills, he will become the leader of the group, or another object has the highest strength, he becomes a warrior. I want to organize this list from highest to lowest of each variable so I'll probably need multiple lists.

Can I accomplish this with arrays or will ds_lists be more practical? I don't know much about either.
 
Top