• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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!
  • 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] Bag Capacity

  • 32
    Posts
    9
    Years
    • Seen May 6, 2020
    I did a search for the phrase "bag capacity" and didn't find anything.
    So I was wondering if anyone can help me set a maximum capacity for each pocket in the bag. Bonus points if it is a variable that I can change/upgrade as the game progresses.
    But really, anything would help.
     
    Sounds like you want the MAXPOCKETSIZE and BAGMAXPERSLOT settings in Settings!
    The former lets you set the maximum number of slots while the latter lets you set the number of items in a slot.

    I flipped through the code a bit, and everything asks def maxPocketSize(pocket) for the size, So you could edit that to make a variable size.
    Can't really say what would happen if the pocket got smaller than the max number of slots.
     
    Last edited:
    Ah, I don't know why I assumed I could set a max number of total items per pocket, but hey this still is at least enough to get the spirit of the thing. Thanks for the help.
     
    Back
    Top