Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2012-12-11 18:12:30

Miksy91
Member
Registered: 2010-10-16
Post 1,310/2,339

Enemy DV table

A little while ago, I hacked the shiny pokemon encounter rates so that all pokemon of which all attack, defense, speed and special DV values are set to B or higher are considered shiny.

Today, I did some bug fixing and while at it, played through some areas again and noticed something really neat. I encountered Isaac and was like "What the heck, he's got a shiny Machoke there!". Then I simply checked the value written in D0F5 where enemy DV is stored and noticed all of his pokemon shared those same DV values (and all of them were shiny of course as well). Well, the DV values of his pokemon happened to be DC DD so I just searched for that with a hex editor and voila, found this table starting at 0x27283. It very likely works so that it contains a 2-byte DV value for all pokemon used by every trainer group in an order.

Basically, you can use this to fix "shiny glitches" which I'm going to do for Isaac but also make an encounterable trainer with for example one shiny pokemon (or more) if you want to.

I wouldn't consider this a tutorial but something handy to know either way.

Last edited by Miksy91 (2012-12-11 18:12:51)

Offline

#2 2012-12-11 19:28:15

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 2,021/3,578

Re: Enemy DV table

That's pretty handy indeed! Nice find!

Offline

#3 2012-12-11 19:31:47

Miksy91
Member
Registered: 2010-10-16
Post 1,311/2,339

Re: Enemy DV table

Thanks!

Feel free to add info about this in useful offsets thread if you like.

Offline

#4 2012-12-11 20:11:36

delpo
Member
Registered: 2012-11-26
Post 22/40

Re: Enemy DV table

Great find.  I thought the enemy's pokemon dv's would be randomly generated or something, but now I can make trainers have pokemon with perfect dv's.  Thanks for sharing!

Offline

#5 2012-12-12 00:06:49

amvz08
Member
From: Philippines
Registered: 2011-06-27
Post 436/600

Re: Enemy DV table

so the value to become shiny is  DC DD?


Trust me, I'm an Engineer

>>>Pinoy ka ba? Pasok ka dito<<<

Offline

#6 2012-12-12 01:34:17

Mateo
Member
From: The Sims 4
Registered: 2009-11-25
Post 2,023/3,578

Re: Enemy DV table

In Dark Energy it is, but that is because he modified the routine that determines shininess.

Offline

#7 2012-12-12 03:27:02

stag019
Idea Killer
Registered: 2011-01-05
Post 243/630

Re: Enemy DV table

Isn't that how Joey's Rattata was in the top percentage of Rattata?


You can try to hide yourself in this world of pretend; when the paper's crumpled up, it can't be perfect again.

Offline

#8 2012-12-12 09:33:49

delpo
Member
Registered: 2012-11-26
Post 24/40

Re: Enemy DV table

Okay so I did some research and Miksy is absolutely right.  The table of enemy DV's starts at 0x27283, and should end at 0x27306 (or x27308 for crystal because of Eusine).  Each trainer group is assigned two bytes for which ALL of their pokemon will have as DV's.  The order of the trainers is the same as listed here, http://wiki.iimarck.us/GSC/Trainers/.

stag019 wrote:

Isn't that how Joey's Rattata was in the top percentage of Rattata?

Not in gen II at least.  Joey is part of the youngster group which has DV's of 98 88, which is only slightly above average.  On the other hand Red has DV's of  FD DE, making his pokemon the cream of the crop.

Offline

#9 2012-12-12 18:20:25

comet
Member
Registered: 2012-04-09
Post 47/679

Re: Enemy DV table

it's $270d6-2715c for crystal

Offline

#10 2014-01-05 19:13:52

Jack
New member
Registered: 2013-03-24
Post 3/3

Re: Enemy DV table

Hey guys,

There are other posts on the topic (like the one with ASM routines to change shinyness), but maybe this is the right one for my question.

I was wondering if is there a way to make only ONE pokemon of a trainer shiny. The problem I ran across is that since the trainer's pkmn all share the same DVs, I really don't know how to make it so only one is shiny...

Is there a way to edit a trainer so I can set the DVs of each of his/her pkmn individually? Maybe a very specific script?

Thanks in advance for anyone who answers! Cheers!

Offline

#11 2014-01-05 21:29:52

Miksy91
Member
Registered: 2010-10-16
Post 2,045/2,339

Re: Enemy DV table

Jack wrote:

Hey guys,

There are other posts on the topic (like the one with ASM routines to change shinyness), but maybe this is the right one for my question.

I was wondering if is there a way to make only ONE pokemon of a trainer shiny. The problem I ran across is that since the trainer's pkmn all share the same DVs, I really don't know how to make it so only one is shiny...

Is there a way to edit a trainer so I can set the DVs of each of his/her pkmn individually? Maybe a very specific script?

Thanks in advance for anyone who answers! Cheers!

It would be kinda difficult to do this since you can't call any script codes within a battle.
You would basically have to modify the shiny (or this DV) routine so that it would have some "relation" to one of the pokemon that the fought trainer has. I can't personally give any better solution than that..

Offline

Board footer

Powered by FluxBB