# Is Anybody Researching Sun/Moon Shiny Chaining?

16,494 11 0

1. ### OP Scoreless Pine Advanced Member Newcomer Level 2

Joined:
Nov 14, 2015
Messages:
82
Country:
People are saying it's a straight 1/512, has anybody been looking into the game's code to prove/disprove it?

2. ### Falo GBAtemp Advanced Fan Member Level 10

Joined:
Jul 22, 2012
Messages:
630
Country:
If chain is less then 5 -> Fixed 31 IV Count = 0
If chain is less then 10 -> Fixed 31 IV Count = 1
If chain is less then 20 -> Fixed 31 IV Count = 2
If chain is less then 30 -> Fixed 31 IV Count = 3
If chain is 30 or more -> Fixed 31 IV Count = 4

If chain is less then 10 -> Hidden Ability Chance = 0%
If chain is less then 20 -> Hidden Ability Chance = 5%
If chain is less then 30 -> Hidden Ability Chance = 10%
If chain is 30 or more -> Hidden Ability Chance = 15%

About the shiny chance, well the code is not easy to read on this, but it does not affect the chance, it affects the try count.
Everytime a pokemon is generated, there is a "Shiny try count", by default it's 0, so the functions gives up after 1 try.
But somehow the chain count affects this try count, the min is 0, the max is 3.
If i read the code correctly, then it starts after a chain of 70.

Note: this means, it's the default 1/4096 for each try, if 3 trys it's 4/4096 -> 1/1024.

Last edited by Falo, Nov 27, 2016
3. ### Josephvb10 GBAtemp Advanced Fan Member Level 7

Joined:
Aug 26, 2009
Messages:
652
Country:
Can you link the code? Or how to extract it from the romfs?

4. ### Falo GBAtemp Advanced Fan Member Level 10

Joined:
Jul 22, 2012
Messages:
630
Country:
It's in the Battle.cro, @ .text:0012AD94, the shiny try count value calculation is @ .text:00182BAC

GilgameshArcher, Black ace and zoogie like this.
5. ### escequi GBAtemp Regular Member Level 2

Joined:
Apr 4, 2014
Messages:
296
Country:
By fixed 31 iv count you mean guaranteed right? So it can go higher than 4 31 ivs...

Joined:
Apr 17, 2007
Messages:
527
Country:
So if it's just "base rate checks"+"chain bonus checks"/4096 it should mean with a shiny charm which makes the "base rate" 3/4096 that at a chain of 70 it would start at 4/4096 and eventually get up to 6/4096 or about 1/683. I would be happy with that.

I look forward to you figuring out when each of the next increases start in the chain.

And nice to know that my 3IV shiny was to early for increased odds making my first ever full odds shiny.

Joined:
Nov 27, 2016
Messages:
2
Country:
Fixed.

Joined:
Feb 20, 2010
Messages:
1,340
Country:

9. ### cosa Newbie Newcomer Level 1

Joined:
Nov 27, 2016
Messages:
2
Country:
Fix it yourself

10. ### Ethevion Wannabe Artist Member Level 7

Joined:
Sep 23, 2010
Messages:
1,827
Country:
I thought 4 31 IVs was at 40 chain, if it's actually 30 it makes things so much easier for me.

Joined:
Apr 17, 2007
Messages:
527
Country:
I just found out the hard way that the chain only go to 255 then resets. I chained to 284 (sadly without getting a shiny) then just so I had something to show for it caught the last one.

When I went to check the IVs I was shocked it was only 3IV then I realized why. it was a 8 bit counter up to max of 0xFF (255) and my chain minus that left me with 29 which is in the 3IV range.

12. ### Rhnz Member Newcomer Level 1

Joined:
Dec 5, 2016
Messages:
11
Country:
So 30 chains is the start where you can catch a 4IV pokemon?

Draft saved Draft deleted