• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

Research: Hold Item Effects

239
Posts
8
Years
  • Age 31
  • Seen Apr 15, 2024
That wouldn't help me, that would just change the 16th byte of the item. It wouldn't change any pointers since the held item effect is determined by the 16th byte and not an actual pointer to a routine. There's probably a table somewhere that points to all of the held item routines, and the 16th byte of each held item determines which pointer to use from the table.

The hold effect ID is an arbitrary number. There is no table. For example, for thick club, In the damage calc routine it loads the attacker's hold item effect ID, compares it to thick club, then checks the species ID to determine whether or not to boost the attack.

If you wanted to raise fairy type attacks, you would need a function hooked into an appropriate place to check if the current move type is fairy, check if the attacker is holding an item with some unused hold item effect, then raise the attack if all of these checks were true.
 
Back
Top