Users browsing this thread: 2 Guest(s)
Excluding Weapons from Use With Genji Glove

#21
Posts: 3,970
Threads: 279
Thanks Received: 236
Thanks Given: 58
Joined: Oct 2011
Reputation: 65
Status
Tissue-aware
(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.
  Find
Quote  
[-] The following 2 users say Thank You to madsiur for this post:
  • PowerPanda (08-25-2018), Robo Jesus (05-20-2019)



Messages In This Thread
RE: Excluding Weapons from Use With Genji Glove - by madsiur - 08-25-2018, 12:48 AM

Forum Jump:

Users browsing this thread: 2 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite