Scripts ‐ Item Effect to Change Secondary Type - haven1433/HexManiacAdvance GitHub Wiki

Return to List of Utilities and Scripts

Water-type Bulbasaur

The Goal

This tutorial lets you add type-changing items. You'll be able to make custom items (or change existing items) so that a Pokémon holding the item changes their secondary type. This script works for all Generation III cartridge games.

Download the script: Right click this text and choose Save link as....

Using the Script

  1. (Optional) Open this script in your favorite text editor and change the item effect index to whatever you want. By default, FireRed has 66 item effects, so the script uses 67 (0x43) for the new item effect. Change the two instances of 0x43 to whatever you want it to be.
  2. Open your FireRed ROM hack in HexManiacAdvance and then drag-drop the script over your ROM. This will add the code for the custom effect.
  3. Go to your table of item stats in your favorite item editor (I use HexManiacAdvance, but you don't have to) and either edit an existing item or make a new item to use the new item effect. By default, this is 67 or 0x43, but you may have changed it in step 0.
  4. Change the item effect parameter to whatever type you want to change to. For example, if you set it to 5, then any Pokémon holding that item will gain the secondary type of ROCK.
  5. Add Haven's Secondary Type Items to your hack's Credits.

Table Changes