• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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