You mean, put every item into the same pocket
a la Gen 1? I'm sure that's possible - just have 1 pocket.
Find yourself the
module ItemStorageHelper (PokemonUtilities), and go to
def self.pbStoreItem. This is the method that actually puts items into the Bag pockets. It's also used to add Triple Triad cards, which can cause a problem (see below).
Do something like the following:
Code:
for i in 0...maxsize
itemslot=items[i]
if !itemslot
items[i]=[item,[qty,maxPerSlot].min]
qty-=items[i][1]
[COLOR=Red]items.sort! if pbIsMachine?(item)[/COLOR]
return true if qty==0
elsif itemslot[0]==item && itemslot[1]<maxPerSlot
The pocket only needs to be sorted after filling up an empty slot with the new item(s). This particular example will sort the TMs & HMs pocket - you need to check the item's details, because this method doesn't know which pocket it's looking at (it's only told "here's an array, put this new item into it"). Note that this particular example sorts the pocket by ID number,
NOT alphabetically.
Now, this will cause a problem if you also want to use the Triple Triad minigame. This method can't tell whether the added item is an actual item going into the Bag, or a Pokémon species ID number representing a TT card being added to the Library. Using the above example, the TMs/HMs have ID numbers of 288 to 388 inclusive. So do Vigoroth to Grotle. If you add a Groudon TT card (383), the above code looks for item data for the item of the same number (HM01), and will sort the TT library because it's a machine item.
You'll need to either differentiate the two things (Bag pocket or TT library) somehow in this method, or just not use the Triple Triad minigame.