• 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] Multiple Held items

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