Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2016-05-20 14:23:48

Zarator
Member
Registered: 2012-09-30
Post 33/49

Removing status miss chance in GSC

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

#2 2016-05-21 00:22:34

Rangi
Member
Registered: 2016-05-09
Post 8/823

Re: Removing status miss chance in GSC

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)


ROM hack: Pokémon Polished Crystal (GitHub) — version 2.2.0 released!

Offline

#3 2016-05-21 12:59:12

Zarator
Member
Registered: 2012-09-30
Post 34/49

Re: Removing status miss chance in GSC

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

#4 2016-06-23 00:37:45

MechanicalPen
Member
Registered: 2016-06-22
Post 2/29

Re: Removing status miss chance in GSC

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

Board footer

Powered by FluxBB