Excluding Weapons from Use With Genji Glove
#36
another key function is C1/89D5.  my comments are a little off, in that they should parallel C1/4B73's more.  that is, $7B39 and $7B3A are not the current hand, but the candidate gear from the Item list.

inserting checks right after C1/89EC and C1/4B8D to see if the candidate gear and the other hand's gear both possess your new 2-hand flag and if not, jumping to C1/89FD or C1/4B9E, respectively, should work in theory.  now, i don't see where Bank C1 ever loads the $D850NN item data.  so i'm seeing a couple options:

1) use the loaded Item ID, multiply by 30 (e.g. via C1/18CA; or maybe 4 ASLs, a SEC + subtract, then another ASL, but that might not even be any faster, given the need to enter and exit 8-bit Accumulator mode.), and read your flag from ROM Item data.  it won't be fast code, and could be prohibitive in C1/4B73, which lights/grays multiple items every time you scroll.  in contrast, i don't see it being an issue for C1/89D5, which i think is just called in response to manual cursor selections.

2) expand Function C2/54DC to read your custom flag from ROM Item data, and store its result in a variable that IS regularly loaded in Bank C1.  i'm thinking that the top 4 bits of $2E76 or perhaps the bottom 3 bits of $2E73 are free.  those are or would be read in the relevant Bank C1 functions via:

a. C1/4B73 (Candidate Item and Current Hand):
$2E73: $2D and $890E
$2E76: $268A,Y and ($2B8A,char_index or $2B9E,char_index [where char_index = $62CA * 5], based on an unknown hand selector)

b. C1/89D5 (Candidate Item and Current Hand):
$2E73: $7B3A and $7B3C
$2E76: $268A,X and ($2B8A,Y or $2B9E,Y .  depending on how the function is reached, the hand selector is $7B00 , or LDA $894B,Old_Y , where Old_Y probably equals Var $62CA .)

the $2E76 route looks uglier, but i'm actually more confident in it having free bits than $2E73, and things shouldn't be that hard once we nail down the hand selector.

-----

what were the limitations you were running into after investigating C1/4B73 several weeks ago?
Reply


Messages In This Thread
RE: Excluding Weapons from Use With Genji Glove - by assassin - 04-08-2021, 07:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Frame Job - Making Weapons show after a strike C-Dude 4 3,739 01-23-2023, 08:55 PM
Last Post: Lightning
  Genji Glove glitch doofenH 2 2,378 05-11-2022, 06:58 AM
Last Post: doofenH
  Weapons teaching Lore skills? FF6Fanatic 5 6,463 07-11-2016, 03:58 PM
Last Post: FF6Fanatic
  Random Spellcast for Weapons lopolly 2 2,993 12-04-2013, 01:43 AM
Last Post: lopolly
  Custom weapons to replace brushes? ribbits 3 3,662 07-20-2013, 06:35 PM
Last Post: madsiur
  Disabling Auto-Optimize/Remove on Genji Glove/Gauntlet Riketz 8 11,404 12-23-2012, 09:59 PM
Last Post: Riketz
  Genji or Gauntlet specific weapons Royaken 4 5,347 03-22-2012, 07:39 PM
Last Post: madsiur
  Weapons.... Oh boy... Royaken 5 7,164 03-20-2012, 07:55 PM
Last Post: madsiur
  Teaching magic spells through weapons Overswarm 25 31,988 12-10-2011, 11:24 AM
Last Post: Angelo26
  More Than 93 Weapons Animations? Zeemis 12 13,570 08-05-2011, 03:07 PM
Last Post: SSJ Rick

Forum Jump:


Users browsing this thread: 1 Guest(s)