A new version of FFTPatcher is available! (0.492)
Started by nitwit, August 01, 2022, 08:03:54 pm
00189b38: jal 0x00185e5c |-->Store PA and WP + Y XA is Attacker's PA and YA is WP + Y
Skill X Value BitsBit 7: Absorb instead of damageBit 6: MP instead of HPBit 5: ?00000Bit 4: 0?0000Bit 3: 00?000Bit 2: 000?00Bit 1: 0000?0Bit 0: 00000?
Skill Y Value BitsBit 7: WeaponBit 6: ShieldBit 5: HeadBit 4: ArmorBit 3: AccessoryBit 2: Sign flagBit 1: 2Bit 0: 1
A: Sign FlagB: Bit 1C: Bit 0ABC : Value000 : 0001 : +1010 : +2011 : +3100 : -1101 : -2110 : -3111 : -4
42: 0x0018F718 (0x00128718) -> 0x8018A17C43: 0x0018F71C (0x0012871C) -> 0x80186E28 //lower than previous value44: 0x0018F720 (0x00128720) -> 0x80186E5445: 0x0018F724 (0x00128724) -> 0x80186E7846: 0x0018F728 (0x00128728) -> 0x8018A218 //higher than previous value47: 0x0018F72C (0x0012872C) -> 0x8018A220
Quote from: Orkney on August 03, 2022, 05:10:10 pmI can't answer you for the AI, i've no experience with it yet. (All i know is that when i write a hack that adds a support ability adding fire to weapon element, AI was smart enough to figure it).
Quote from: Orkney on August 03, 2022, 05:10:10 pmIf you want to spare some bit you can use the ability AI flags too.Affect MP --> MP damageAffect stat to point to the stat section (unequip for break/steal)Undead reverse for absorption (but you'll have to implement real undead absorption for the AI sake)Target enemy for damage, target ally for heal.
Quote from: Orkney on August 03, 2022, 05:10:10 pmYour signed Y from -4 to 3 is more easy if you using a bitmask then using sll 0x05 then sra 0x05 (100 is - 4 and 111 is -1)
Quote from: Orkney on August 03, 2022, 05:10:10 pmFor the break/steal info, you can save some bit too, no need to use one bit per equipment part since you won't be able to break/steal more than one slot per action (not without writing a lot a stuff i guess). so bit 7 alone is weapon, bit 6 alone is armor, bit 7 and bit 6 is shield etc...
Quote from: nitwit on August 03, 2022, 09:07:23 pmTreat it like a range (0 to 4), basically? I could accomplish that by bit shifting it and masking out the parts I don't need, though I don't know if that would be simpler in ASM than dealing with bits and branches.
Quote from: Orkney on August 04, 2022, 09:25:56 amYou might achieve that, but still the weapon and the shield section are peculiar. Shield section check the 2 hands, weapon section too, but it compare the two weapons to choose the one to break... So in the end you'll have to deal with some branches i guess.
Page created in 0.012 seconds with 21 queries.