Alright. I'd like to add in a form of item stacking to my game, but only as a visual effect. No object variables, no hassle from trying to manipulate stacked objects, or anything like that. The mission is this:
Pretend you have a contents listing, filtered into alphabetical order. You need to sort this listing, and display it back in list format with only one of each object type appearing, and set the object's suffix to the amount of objects of that same type found. Example:
/////
///// Wood 51
/////
-----
----- Clay 14
-----
And so on. I doubt this is too hard for one of the list manipulating gurus out there, but lists are still a foggy area for me. The first one to get this code back to me, will recieve a few of my remaining dimes. Also, note that the list that is returned, the sorted version, will be displayed in the inventory statpanel. You will probably need to write custom code to loop through the list and display it properly, so please include that.
~Pola~
Copyright © 2025 BYOND Software.
All rights reserved.
Har har! I can not turn down a challenge!
Of course, it would be more efficient to store the returned list in a var in the mob, so that it doesn't have to recalculate it every tick.
(Note: Don't worry about the dimes, either. :P)