Assembly Programming
#38
(08-16-2016, 01:21 PM)seibaby Wrote: Funny you should mention that, @"Marketa Lazarova". I believe the origin of the elemental-enhancing equipment in later games was a bug in FF1 that caused enemy elemental weakness to be loaded from the weapon elemental properties of the attacker's weapon instead of from the enemy data when magic was cast.

So...it should be pretty simple to "reinstate" that bug in FFVI, by hooking the code below to a new function that inserts a check for attacker's weapon elemental attack ($3B90,X) in addition to the check for enemy weakness ($3BE0,Y).

Code:
C2/0C0E: B9 E0 3B     LDA $3BE0,Y    (Weak elements)

Edit: wait, that's pretty dumb. Something that simple would make elemental weapons always do double damage with their own attacks, too. Though I suppose that could easily be solved by adding a check to see if the attack is magical, and skip the weapon elemental stuff if it is.

Or reduce the attack power of the elemental weapons to compensate for the doubling effect.
Reply


Messages In This Thread
Assembly Programming - by the_randomizer - 01-06-2012, 05:51 PM
RE: Assembly Programming - by Angelo26 - 01-12-2012, 08:50 PM
RE: Assembly Programming - by the_randomizer - 01-12-2012, 09:33 PM
RE: Assembly Programming - by madsiur - 01-15-2012, 03:01 AM
RE: Assembly Programming - by JCE3000GT - 01-16-2012, 04:40 PM
RE: Assembly Programming - by madsiur - 01-16-2012, 05:32 PM
RE: Assembly Programming - by JCE3000GT - 01-16-2012, 08:17 PM
RE: Assembly Programming - by madsiur - 01-23-2012, 02:47 AM
RE: Assembly Programming - by madsiur - 02-04-2012, 02:38 PM
RE: Assembly Programming - by madsiur - 03-25-2012, 04:32 AM
RE: Assembly Programming - by SSJ Rick - 03-25-2012, 01:05 PM
RE: Assembly Programming - by madsiur - 04-20-2012, 01:56 AM
RE: Assembly Programming - by Marketa Lazarova - 08-16-2016, 11:17 AM
RE: Assembly Programming - by seibaby - 08-16-2016, 01:21 PM
RE: Assembly Programming - by PinkMawile - 09-24-2016, 03:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Altering text via assembly without breaking things Kenefactor 3 3,083 12-06-2019, 12:15 AM
Last Post: madsiur
  Determinging sprite assembly Rydel 2 3,656 09-21-2016, 01:41 PM
Last Post: Rydel
  Question-Programming-Sprites Sczar Atmos 2 3,039 07-17-2013, 11:20 PM
Last Post: Sczar Atmos
  Sword Swing Assembly Question Zeemis 2 4,174 07-03-2011, 04:01 PM
Last Post: Zeemis
  My Assembly Notes Zeemis 1 3,202 03-04-2011, 07:49 PM
Last Post: Angelo26

Forum Jump:


Users browsing this thread: 1 Guest(s)