• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] Multiple Held items

  • 25
    Posts
    6
    Years
    • Seen May 11, 2025
    Hey everyone,

    I just got this idea this morning of Pokémon holding multiple items like some sort of equipment. So I was wondering if there already is a script for multiple held items. Or if it is possible to adjust the PBS so it becomes possible. For me it doesn't really matter that the opponent pokémon can't have multiple items held. To be honest I'm not the biggest expert in programming 😳. But with a little help I could get a long way :)

    I think it would make the battles more interesting.

    Already thanks for your time and help.
     
    To allow a Pokémon to hold multiple items involves converting the PokeBattle_Pokemon class' item attribute to hold an array of values instead of a single value and rewriting the code handling that attribute to work with arrays. You'll also need to ask the player which item to remove from a Pokémon should they wish to do so and for wild Pokémon hold items, normally the PBS defines up to three probabilities for a wild Pokémon to hold one of up to three items. Changing the PBS file to allow for multiple held items on a wild Pokémon will involve defining additional data values in the compiler and in Misc_Data and certain moves will need to be rewritten to account for multiple items (moves like Fling, Natural Gift, Belch, Recycle, etc)
     
    Back
    Top