Gaining a greater health from Potions? - Printable Version +- FF6 Hacking (https://www.ff6hacking.com/forums) +-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html) +--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html) +--- Thread: Gaining a greater health from Potions? (/thread-2592.html) |
RE: Gaining a greater health from Potions? - HatZen08 - 06-02-2014 For items, the value of healing is based on the “max out” flag with the “affects HP” or “affects MP” flags. If the “max out” flag is set, the value will be a fraction of max HP or max MP defined by the item power. The formula is X/16, where X is between 1 and 16. The value of 16 is 16/16 or 100%, the value of 8 is 8/16 or 50%, the value of 4 is 4/16 or 25%, etc. If “max out” flag isn't set, it will use the value defined by the item power. Unfortunately, it is only one byte and can't store values beyond 255. If you want fixed values beyond 255 which aren't related to max HP or max MP, you will need to change the code, assembly style. RE: Gaining a greater health from Potions? - Kugawattan - 06-04-2014 Thanks for the info. So I want to do the second option of changing the code, assembly style. Assuming it's not a work of genious to make it work, of course. I just need instructions on how to do it, and I'll be all set. RE: Gaining a greater health from Potions? - HatZen08 - 06-05-2014 The item action is internally considered an attack and it has the special effect variable $11A9. The relatively easy way is to recycle one of the items special effects for a damage multiplier. I made a patch that exchanges the super ball special effect for the multiplier. In ff3usme, choose the super ball effect and the damage is multiplied by 40. Please, make sure that the “max out” flag isn't set. You also need a rom with a header. You can download the patch here . For reference, the code is: Code: == pointers == If you want to preserve the super ball special effect, you need to relocate the code and find a new pointer for it in the C2/42E1 or C2/3DCD table of pointers. To be honest, I don't understand why there are two tables of pointers for special effects. I generally choose one of the tables and nullify the pointer of the other table with an alone RTS pointer. RE: Gaining a greater health from Potions? - Kugawattan - 06-05-2014 Thanks, I guess that'll do. I couldn't care less about the superball thingy so anyway, say I want the multiplier to be 10 instead of 40. How could I do that? Is no problem if you can't, because 1000hp from the hi-potion is a bit excessive but it'll do. RE: Gaining a greater health from Potions? - madsiur - 06-05-2014 (06-05-2014, 10:56 AM)Kugawattan Wrote: say I want the multiplier to be 10 instead of 40. How could I do that? Change this line of code: Code: C2/3DB8 A9 0A LDA #$0A number to multiply (10 em decimal) RE: Gaining a greater health from Potions? - Kugawattan - 06-05-2014 Thank you very much, but either I'm going blind or I've lost total understanding on this thing, but I can't find the A9 28 to change to A9 0A, I mean, C2/3DB8 translates to 0023FB8 on the search thingy right? Because this is what I get. ...no sign of A9 or 0A. RE: Gaining a greater health from Potions? - HatZen08 - 06-05-2014 You can customize the final value with ff3usme. You only need to change the item power and select the super ball effect. The final value will be the item power * 40. If the item power is 25, the final value will be 25 * 40 = 1000. If the item power is 15, the final value is 15 * 40 = 600, etc. You can change the multiplier as Madsiur said. I don't know your hex editor but probably the issue may be a wrong address conversion. I use the SNES address convention and you editor may use the absolute byte offset of the file. You can try a tool (like Lunar Address) to do the conversion. Or you can search for the patch bytes with the hex editor search. RE: Gaining a greater health from Potions? - Kugawattan - 06-06-2014 I use WindHex32, and to make sure I hadn't done anything to it, like somehow changing its properties or something, I re-downloaded the thing, and I still can't find the offset :/ Also by the way, I think I found some kinda glitch, if you use the hi-potion with the modded superball effect to a target that's dead (by selecting it when target was alive but is killed after that), it apparently forgets its function and instead does the superball animation against a enemy who is then healed for an absurd amount for early game (I had it heal 4000hp in the Vargas Battle). I wonder how could I fix this as well. RE: Gaining a greater health from Potions? - HatZen08 - 06-06-2014 I tested the patch and I couldn't recreate the error. If the target is alive, it does the correct healing. If the target is dead, it doesn't heal but it doesn't trigger the super ball animation or another bug. If the target is alive when the item is selected but dies before the item is used, it doesn't heal but doesn't trigger a bug either. Can you give more information? The patch is for a rom with a header, english, version 1.0. Please, check if your rom is the correct one. The version 1.1 has smaller code differences and may not work correctly. RE: Gaining a greater health from Potions? - Kugawattan - 12-18-2015 Life 2! So after I got my clean rom applied the patch and noticed it worked correctly, thank you very much, I've found later a small (big) issue: It only heals you the multiplied value IN battle. If you use the potion in the menus, it doesn't give you the multiplied value, which is a measly amount making the items rather useless outside of a battle. I've no idea how to work around this D: |