Talk:Equippable Item Setting (Support/Female-only)

From Final Fantasy Hacktics Wiki
Revision as of 11:22, 26 February 2012 by Pride (talk | contribs) (Created page with "Rewrite thanks to SecondAdvent which not only saves space but adds more features such as Male-only items. 0005c27c: 34050000 ori r5,r0,0x0000 Counter = 0 0005c280: 9083008f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Rewrite thanks to SecondAdvent which not only saves space but adds more features such as Male-only items.

0005c27c: 34050000 ori r5,r0,0x0000		Counter = 0
0005c280: 9083008f lbu r3,0x008f(r4)		Load Unit's 1st set of Support
0005c284: 00000000 nop
0005c288: 00a31804 sllv r3,r3,r5		Support * 1, 2, 4, 8, 10, 20, 40, 80
0005c28c: 30620080 andi r2,r3,0x0080
0005c290: 10400008 beq r2,r0,0x0005c2b4	        Branch if Equip X/Gender isn't present
0005c294: 3c038006 lui r3,0x8006
0005c298: 00051080 sll r2,r5,0x02		r2 = Counter * 4
0005c29c: 00431821 addu r3,r2,r3
0005c2a0: 8c63c2e8 lw r3,-0x3d18(r3)		Load Equip X/Gender's Equippable Items
0005c2a4: 8c82004a lw r2,0x004a(r4)		Load Unit's Equippable Items
0005c2a8: 00000000 nop
0005c2ac: 00431025 or r2,r2,r3			Combine Equippable Items
0005c2b0: ac82004a sw r2,0x004a(r4)		Store Unit's Updated Equippable Items
0005c2b4: 24a50001 addiu r5,r5,0x0001		Counter += 1
0005c2b8: 28a30008 sltiu r3,r5,0x0008
0005c2bc: 1460fff0 bne r3,r0,0x0005c280	        Branch if all Equip X's haven't been checked
0005c2c0: 28a2000a sltiu r2,r5,0x000a
0005c2c4: 10400006 beq r2,r0,0x0005c2e0	        Branch if all Genders have been checked
0005c2c8: 00000000 nop
0005c2cc: 90830006 lbu r3,0x0006(r4)		Load Unit's Gender
0005c2d0: 00000000 nop
0005c2d4: 00a31804 sllv r3,r3,r5		Gender * 100, 200 (Male and Female)
0005c2d8: 080170a4 j 0x0005c290
0005c2dc: 30628000 andi r2,r3,0x8000
0005c2e0: 03e00008 jr r31
0005c2e4: 00000000 nop
0005c2e8 - Equippable Item Lists (one for each support/male/female, so 10 lists)
0005c310-0005c394 can be left alone or nopped (00000000)
  • 0x00 - Item List 1
    • 0x80 - Barehanded
    • 0x40 - Knife
    • 0x20 - Ninja Blade
    • 0x10 - Sword
    • 0x08 - Knight's Sword
    • 0x04 - Katana
    • 0x02 - Axe
    • 0x01 - Rod
  • 0x01 - Item List 2
    • 0x80 - Staff
    • 0x40 - Flail
    • 0x20 - Gun
    • 0x10 - Crossbow
    • 0x08 - Bow
    • 0x04 - Instrument
    • 0x02 - Book
    • 0x01 - Polearm
  • 0x02 - Item List 3
    • 0x80 - Pole
    • 0x40 - Bag
    • 0x20 - Cloth
    • 0x10 - Shield
    • 0x08 - Helmet
    • 0x04 - Hat
    • 0x02 - Hair Adornment
    • 0x01 - Armor
  • 0x03 - Item List 4
    • 0x80 - Clothing
    • 0x40 - Robe
    • 0x20 - Shoes
    • 0x10 - Armguard
    • 0x08 - Ring
    • 0x04 - Armlet
    • 0x02 - Cloak
    • 0x01 - Perfume