Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2012-09-16 20:42:31

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 1/432
Website

Critical hits, attack effects and type charts in red/blue

Not sure if anybody will know the answer to these questions but either way i'll go ahead: The attack editor lets you change the attack effect, BP, attack type, accuracy and PP of each attack (or you can change it with an hax editor from byte 38000 onwards), but there are two things I couldn't find in the red/blue ROM map regarding the attacks, but I guess they are there, somewhere...
1. how to modify the attack effects themselves. There are many "free" bytes that are represented with a N/A in the attack editor that if I'm not mistakened are all glitched effects; So, for example, I guess that if I want to create a new effect (lets say 30% chance of burn or whatever) I'd just have to overwrite one of those. So my questions are, is this possible? if so, where are the attack effects located in the rom map?
2. CHs. I thought that what made a move have a high critical hit rate was located alongside the type, power etc of each attack but it is not... So yea, my obvious question is... where are crit ratios of each move located in the rom map?

And lastly, I couldn't find the type chart that determines the effectiveness of the types either. I'm pretty sure this can be modified because i've seen hacks that have ghost se vs psychic for example. But yea, where is the type chart located?

Thanks in advance.

Offline

#2 2012-09-16 21:32:41

519/701

Re: Critical hits, attack effects and type charts in red/blue

Crystal_ wrote:

how to modify the attack effects themselves. There are many "free" bytes that are represented with a N/A in the attack editor that if I'm not mistakened are all glitched effects; So, for example, I guess that if I want to create a new effect (lets say 30% chance of burn or whatever) I'd just have to overwrite one of those. So my questions are, is this possible? if so, where are the attack effects located in the rom map?

Editors like that tend to be incomplete because the authors didn’t account for everything. Some of those may actually be used.

Move effects are defined in several places in the ROM; there are some lists in bank $F, and also some stuff in the main battle routine (as each turn executes in battle, certain things may or may not happen depending on the current move used. Some of this is in the Pokémon Red disassembly, starting at the line “; in-battle stuff”.

Crystal_ wrote:

CHs. I thought that what made a move have a high critical hit rate was located alongside the type, power etc of each attack but it is not... So yea, my obvious question is... where are crit ratios of each move located in the rom map?

There aren’t crit ratios as such… rather, there is a table of moves that have a high critical hit ratio. This is at 0x3e08e in Red.

Crystal_ wrote:

And lastly, I couldn't find the type chart that determines the effectiveness of the types either. I'm pretty sure this can be modified because i've seen hacks that have ghost se vs psychic for example. But yea, where is the type chart located?

Info on type effectiveness

#3 2012-09-16 22:24:41

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 2/432
Website

Re: Critical hits, attack effects and type charts in red/blue

thanks a lot man.

Just two things:

I think i'm giving up as far as move effects go, I guess there are loads of bytes defining each effect so it's inviable. What I'm thinking is that maybe I can "copy" some of the already existing effects (lets say 10% burn) and write a similar one in one of the unused effects (lets say 30% burn). Is that as easy as changing one byte from 19 (10%) to 4C (30%) or whatever is it?

Lastly, do you know what is located after the high crit ratio table? Maybe it's irrelevant by any chance so that I can make more moves have a higher %ch?

Again, thanks a lot!

Offline

#4 2012-09-16 22:51:22

520/701

Re: Critical hits, attack effects and type charts in red/blue

Crystal_ wrote:

Lastly, do you know what is located after the high crit ratio table? Maybe it's irrelevant by any chance so that I can make more moves have a higher %ch?

Just repoint the table.

#5 2012-09-16 23:04:34

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 3/432
Website

Re: Critical hits, attack effects and type charts in red/blue

how can i do that =/

Offline

#6 2012-09-17 05:39:06

521/701

Re: Critical hits, attack effects and type charts in red/blue

There’s an example of repointing in the GSC trainer editing tutorial. It’s simple:

  1. Find the pointer to the data. The value of the pointer is derived from the offset of the data.

  2. Find some free space within the same bank, and replace the old pointer with a pointer to the blank space.

  3. Implement your list in the free space.

#7 2012-09-17 07:28:29

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 4/432
Website

Re: Critical hits, attack effects and type charts in red/blue

okay thanks. what I don't get from the tutorial is "Then I change the pointer at 0x3993E to 00 78 in order to point to it". Why 00 78?

Offline

#8 2012-09-17 13:08:00

Miksy91
Member
Registered: 2010-10-16
Post 1,106/2,315

Re: Critical hits, attack effects and type charts in red/blue

Because the two bytes refer to ram address $7800. Rom bank starting at 0x38000 is copied to ram area between 4000 and 7FFF and 0x3B800 is at 0x3B800 - 0x38000 + 0x4000 = $7800.

Offline

#9 2012-09-17 16:21:53

Crystal_
Member
From: Spain
Registered: 2012-09-16
Post 6/432
Website

Re: Critical hits, attack effects and type charts in red/blue

Oh okay thanks.

Offline

Board footer

Powered by FluxBB