You are not logged in.
So, I know that NPC's Pokemon have a certain chance (20 or 25% I believe) to miss with their non-attacking moves even if they should be fully accurate (such as Thunder Wave or Leer). I've also seen that several hacks managed to remove it. So, could you please tell me how to do so? I guess there's a flag or something somewhere, but I have no idea of where to find the offset I need.
I searched thoroughly before posting, but if the info was somewhere on this forum and I didn't manage to find it, I apologize profusely :-)
Last edited by Zarator (2016-05-20 14:24:00)
If you're starting with the pokecrystal disassembly, then there are some lines in battle/effect_commands.asm that need to be removed. There are two sections commented "25% chance AI fails" and "Computer opponents have a 1/4 chance of failing." If you want to see exactly what to remove, here's my edited copy. (Pretty sure I did that right.)
If you're hex-editing a GSC ROM... well, I recommend using the disassembled version instead. IMO, learning to program in Z80 assembly is much easier than learning all the arbitrary hexadecimal addresses and hard-coded limitations of a pre-built ROM.
Last edited by Rangi (2016-05-21 00:23:20)
I am using a gold rom, not a Crystal one. And, assuming I understood you correctly, there's the issue I already edited this rom heavily, so I'd rather not scratch it entirely just to add this modification. If it is impossible to do this modification via hex editing, I'd rather give it up altogether.
I still hope someone knows how to do it with hexes, though.
REMOVING stuff is easy; just replace the 25% miss checks with NOPs. Get you GbAsmEdit, search around for the right places using the linked disassembly, replace the jumps with '00's (nop).