You are not logged in.
Pages: 1
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
That's pretty handy indeed! Nice find!
I am not very active on this forum. I only pop in from time to time.
Offline
Thanks!
Feel free to add info about this in useful offsets thread if you like.
Offline
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
so the value to become shiny is DC DD?
Offline
In Dark Energy it is, but that is because he modified the routine that determines shininess.
I am not very active on this forum. I only pop in from time to time.
Offline
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
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/.
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
it's $270d6-2715c for crystal
Offline
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
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
Pages: 1