You are not logged in.
Pages: 1
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)
Offline
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)
My projects on GitHub:
• Polished Map 4.7.1 or 2.7.1++
• Tilemap Studio 4.0.1
• Pokémon Polished Crystal 2.2.0 or 3.0.0 beta
• Pokémon Red★/Blue★: Space World Edition 2020-11-01
Offline
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.
Offline
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).
Offline
Pages: 1