Users browsing this thread: 2 Guest(s)
Excluding Weapons from Use With Genji Glove
(08-24-2018, 06:23 PM)PowerPanda Wrote: So, I scrolled up in the code to where it stores the item class for the list item to $F6, then added another 8-byte chunk that stored the value for the "Dual Wield" flag to $F7. Once I had that value safely stored away, I was able to change the accumulator to the equipped item, do all the normal checks, and then check the dual wield flag of the equipped item against $F7.
Glad you got it working! A small piece of info; when you need some RAM to store values temporary, because you need X or Y for looping or need to come back later to some values, each module use Direct Page offsets as scratchpad RAM. Menu use $E0-$EF, bank $C0 use $10-$40, battle module is another range, and so on.. That saved my life many time when coding; if a scatchpad offset is not used in current function or the ones when you return from the RTS, it is often safe to use.
The following 2 users say Thank You to madsiur for this post:
• PowerPanda (08-25-2018), Robo Jesus (05-20-2019)
• PowerPanda (08-25-2018), Robo Jesus (05-20-2019)
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)