• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] Automatic Bag Sorting

  • 4
    Posts
    8
    Years
    I've been poking around in the bag scripts and I've been wondering if there's some way I can add a feature to have a bag be automatically sorted based on a player's choice between ID, Alphabetical order, ect. much like the generation 6 games offered. The biggest issue I've been having is finding code that determines how Essentials automatically sorts items. Any help figuring this out is much appreciated!
     
    In the "Settings" script there should be a line like this:
    POCKETAUTOSORT = [0,false,false,false,true,true,false,false,false]
    set it all to true and all pockets should automatically sort by ID. I dunno about other orders like Alphabetical trough.
     
    In the "Settings" script there should be a line like this:
    POCKETAUTOSORT = [0,false,false,false,true,true,false,false,false]
    set it all to true and all pockets should automatically sort by ID. I dunno about other orders like Alphabetical trough.

    Well, I know about that, but what I'm asking is how does the code go about sorting a bag by ID and how would one be able to change it in order to add different sorting methods. This is something that's been confusing me for a while, but I have seen some fan games out there made in essentials able to accomplish it...
     
    Back
    Top