Item Effect - More Rare Items - Printable Version +- FF6 Hacking (https://www.ff6hacking.com/forums) +-- Forum: Hacks, Resources and Tutorials (https://www.ff6hacking.com/forums/forum-1.html) +--- Forum: Narshe School (https://www.ff6hacking.com/forums/forum-14.html) +---- Forum: Assembly / Hex (https://www.ff6hacking.com/forums/forum-25.html) +---- Thread: Item Effect - More Rare Items (/thread-4328.html) |
Item Effect - More Rare Items - DrakeyC - 11-02-2023 This is a quick rundown of how to do some small edits to the Steal command, and the item drop function, to allow item effects that increase the odds of getting a rare item. Thanks to Fëanor on the Discord for their help figuring this out. First, rare Steals. Code: C2/39D9: 20 5A 4B JSR $4B5A (Random: 0 to 255) Copy this data and replace it with a jump to a blank spot in the code, then NOP out the rest. I had pockets of blank space around my C2 bank due to my mod's many inclusions, so I found room fine, but if you're not putting this stuff in C2, you may have to use a different jump command. For me in C2, here's what I did: Code: C2/39D9: 20 20 3C JSR $3C20 And at the blank space, we have this. The game performs a check for an item flag and branches to the "normal" Steal code if not detected, at the end of which it RTS's back into the rest of the coding for Steal at C2/39. But if the item flag IS detected, it keeps going without branching to code identical to the normal Steal code and then RTS's, but the RNG is more favorable to you. The item flag used is an unused one, directly below the "boost Steal rate" flag in special effect 2, so that's convenient and easy to remember. Code: BD 45 3C For increasing the odds of rare item drops, the code is very similar as you'd expect. The special effect flag used here is 20 in effect 4, the unused flag directly under the Cat-Ear Hood. Code: C2/5F1E: 20 5A 4B JSR $4B5A (random #, 0 to 255) As before, copy all of this, put a jump to some blank space, and NOP out the rest. Code: B9 59 3C |