Aslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&topic=748.0e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexff66.htmlslickproductions.org/forum/index.php?PHPSESSID=5f0fck550j2m4m2fpbtkj2vkm1&board=5.160e:/My Web Sites/Slick Productions - FFIV Message Board/slickproductions.org/forum/indexff66.html.zxWh^RhOKtext/htmlISO-8859-1gzip8:RhTue, 10 Mar 2020 22:56:47 GMT0 0PWh^lRh FF3/6 - Equipment Menu

Author Topic: FF3/6 - Equipment Menu  (Read 1265 times)

Deathlike2

  • FF4 R&D Master
  • *
  • Posts: 3,538
  • I'm looking at you, bitch!
    • View Profile
FF3/6 - Equipment Menu
« on: August 22, 2008, 12:53:51 AM »
For weapons.. is the hidden weapon power (???) hardcoded to the weapon, or is that some bit that noone knows about.

For armor, some weapon/armor don't auto equip (like the Imp set of equipment) via Optimal. It doesn't seem to be triggered by the Imp bit, so are these hardcoded or are related to the same bit weapons use (the hidden weapon power bit) so they aren't auto-equipped?
Working on the next Yet To Be Named FF4 "Hardtype" Hack Download Latest: v1.48

Video Demos: #1 #2 #3

Lenophis

  • Forum Overlord
  • *
  • Posts: 1,688
  • Gender: Male
  • I sad
    • View Profile
    • Slick Productions
Re: FF3/6 - Equipment Menu
« Reply #1 on: August 22, 2008, 01:05:05 AM »
For weapons.. is the hidden weapon power (???) hardcoded to the weapon, or is that some bit that noone knows about.
Hard coded to the weapon:

Code: [Select]
C3/879C: 7B      TDC
C3/879D: A54B    LDA $4B
C3/879F: A8      TAY
C3/87A0: B96918  LDA $1869,Y (Items currently in inventory)
C3/87A3: C91C    CMP #$1C (Is it the Atma Weapon?)
C3/87A5: F019    BEQ $87C0
C3/87A7: C916    CMP #$16 (Is it the Soul Sabre?)
C3/87A9: F015    BEQ $87C0
C3/87AB: C951    CMP #$51 (Is it the Dice?)
C3/87AD: F011    BEQ $87C0
C3/87AF: C952    CMP #$52 (Is it the fixed Dice?)
C3/87B1: F00D    BEQ $87C0
C3/87B3: BF1450D8 LDA $D85014,X (Load attack pwr, strength of item X)
C3/87B7: 20E004  JSR $04E0
C3/87BA: A24386  LDX #$8643
C3/87BD: 4CC004  JMP $04C0

C3/87C0: A0718D  LDY #$8D71
C3/87C3: 20F902  JSR $02F9      (display "???")
C3/87C6: 60      RTS

Granted, there are enough bits in the item data to where it could be changed to be a bit, but for whatever reason they chose this method.

Quote
For armor, some weapon/armor don't auto equip (like the Imp set of equipment) via Optimal. It doesn't seem to be triggered by the Imp bit, so are these hardcoded or are related to the same bit weapons use (the hidden weapon power bit) so they aren't auto-equipped?
Optimum goes by ID number. The higher number has the priority (which is why Ragnarok is always equipped over the Illumina). The game actually makes no attempt at all to check for power (attack or defense) when equipping. There are some items though which will never be selected for Optimum, ever. These items are Cursed Shield, Thornlet, Imp Halberd, Tortoise Shield, Titanium, Imp's Armor, Atma Weapon, Drainer, Soul Saber, and Heal Rod.

That's a bigger list than I remember. :blush:

119 bugs fixed and counting.