seibaby / ff3us

Final Fantasy VI SNES assembly source project
11 stars 2 forks source link

Mag Roader encounters #260

Open seibaby opened 7 years ago

seibaby commented 7 years ago

The Mag Roader encounters (purple and red) at the mine cart ride after the Magitek Facility in Vector are determined in a very strange way.

The second bottom row of pixels from a character's A4h tile is what determines the Mag Roader encounters. Depending on which combination of palette colors it uses (not the color itself, but the palette index value it uses (the 16 slots)), you'll get a different value for 7F:1F6D, thus different encounters.

For more information: https://www.gamefaqs.com/snes/554041-final-fantasy-iii/faqs/38658 http://mnrogar.slickproductions.org/phpBB3/viewtopic.php?f=3&t=320 http://mnrogar.slickproductions.org/phpBB3/viewtopic.php?f=3&t=179 http://assassin17.brinkster.net/crk-minecart-party_leader.htm http://web.archive.org/web/20151021015358/http://home.comcast.net/~assassin17/my-red-mag-roader-imp-tactic.htm

Imzogelmo commented 5 years ago

It is a bug because the intended variable was 001F6D. The MVN instructwion changes the DB register as a regular effect of its operation and no effort was made to preserve it.