I’m working on an inventory system similar to Skyrim/Dragon Age/Most western RPGs. The items that can be picked up consist of an actor blueprint that has an array of various information in it (name, weight, sell value, item class, parent class, etc.). That actor is stored in an array when a player interacts with it. The array is then checked for duplicates (minus armor and weapons) and stores them into a different array. The stacked item array is then broken open, parent class (read: type–weapon, armor, consumable, etc–of item) is read, and it’s assigned to a UMG scroll box widget. The system works quite well except for one annoying bit, the items are listed in the UMG inventory boxes in the order that they were picked up instead of alphabetically.
So, I ask you, my fellow developers, any ideas on how to actually make the items appears alphabetically? The only thing I can think of (involving blueprint) is a lot of forloopwithbreaks that break open the array of item information, and do if statements with the “String starts with” command… that would be a lot of loops since you’d have to break it down into does it start with A? Yes? OK, is it AA? No? How about AB? AC? and on and on… then when it finds AG is it AGA? AGB? I’m sure the point is made.