everything8215 / ff6tools

Browser-based editor for Final Fantasy ROMs
GNU General Public License v3.0
33 stars 7 forks source link

FFVI NPC indexing #9

Closed AndrewDiMola closed 3 years ago

AndrewDiMola commented 3 years ago

Hey! Was wondering if there's an easy way to figure out which characters are assigned to the various NPC indexes without trial and error. Thanks!

This is in the context of editing Events with NPC objects.

AndrewDiMola commented 3 years ago

More context: Looks like Strago is NPC23 and Relm is NPC24 here, yet the index would have me think they're Moogles.

image

everything8215 commented 3 years ago

Hi, thanks for pointing this out. The NPC numbers in the event script refer to the NPCs on the current map. The numbering was off by 16 though, so NPC 23 in the event script corresponded to NPC 7 on the map. I just fixed it so that they will both say NPC 7 now. You will need to reload your ROM for the change to take effect. When you select an NPC on the map you can see its index in the dropdown at the top of the properties bar (i.e. "NPC Properties 7" when you select on the Strago NPC on this map).

btw, you can find lots of info about the ff6 event engine at ff6hacking.com and on the ff6 hacking discord.

AndrewDiMola commented 3 years ago

Thanks so much @everything8215! Will head over there!