Author Topic: An easy way to find NPC and enemy graphics and palettes  (Read 3441 times)

Vargose

  • Chrono Trigger Threads of Time
  • Guardian (+100)
  • *
  • Posts: 170
    • View Profile
An easy way to find NPC and enemy graphics and palettes
« on: June 29, 2006, 02:22:25 pm »
To find NPC or enemy graphics. Open up a headered rom in chrono tweaker. Find your NPC or Enemy. We'll use Nizbel for this example.

Take the Starting Sprite location number. For Nizbel that was 139.

Subtract 7 (because chrono tweaker counts the playable characters), and you get 132.

Change it to hex and you get 84.

Now you can just search (CTRL-F) the offsets guide for "(84) NPC" and you'll find the offset 1F4464

Or you can locate the pointer yourself.
242015   2422E7   PTR   No   No   Pointers to npc and monster graphics   
Each pointer is 3 bytes long. So take 84 times 3, and you get 18C. Add that to 242015 and you get 2421A1.
The pointer value is 64 44 DF, which corresponds to offset 1F4464

1F4464   1F6612   GFX   Yes   No   (84) NPC and Enemy Graphics   thats Nizbel


EDIT: *Similarly to find the Palette

240000   2417B7   PAL   No   No   "Character, NPC, Enemy palettes (12 colors each)"

Each pallette is 2 bytes long.

Nizbel's pallette number in Chrono Tweaker is 186.

So multiply 186 times 24, and you'll get 4464. Which is 1170 in hex.
Add that to 240000 and you'll get 241170, which is probably Nizbel's Palette
« Last Edit: July 03, 2006, 10:37:12 am by Vargose »

Vehek

  • Errare Explorer (+1500)
  • *
  • Posts: 1761
    • View Profile
Re: An easy way to find NPC and enemy graphics and palettes
« Reply #1 on: June 29, 2006, 07:24:50 pm »
Each color of a palette is actually 2 bytes long. So a npc palette will be 24 bytes long, not 12.

Vargose

  • Chrono Trigger Threads of Time
  • Guardian (+100)
  • *
  • Posts: 170
    • View Profile
Re: An easy way to find NPC and enemy graphics and palettes
« Reply #2 on: July 03, 2006, 10:31:39 am »
yep he's right, I'll edit my original post.