Talk:Wurmple (Pokémon)

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search

Can Wurmple evolve into both forms in either Generation IV game? Neither this article nor the ones on Eterna Forest, Silcoon, and Cascoon are quite clear on this. Dansiman 21:11, 17 December 2007 (UTC)

Yes, since it is based on Personality value anyway. Tina δ 21:12, 17 December 2007 (UTC)
Okay, just checking that maybe the game prevents them from generating with the PVs that would allow the other evolution. Dansiman 22:42, 17 December 2007 (UTC)

Personality Value

Emerald arrived at my house yesterday, and last night my Adamant evolved into a Cascoon. It can't be guaranteed for the PV to alter the evolution every time, can it? Porygon-Z 10:03, 1 April 2008 (UTC)

Nature != Personality value. PV determines nature, but it determines gender, shinyness, and so on. TTEchidna 14:00, 1 April 2008 (UTC)
But that doesn't explain why my Wurmple didn't evolve into a Silcoon. Or does it?? Porygon-Z 18:47, 1 April 2008 (UTC)
Okay, it goes like so!
The variable p (the personality value itself) is a 32-bit integer. Meaning, of course, that it can be any number from 00000000000000000000000000000000 (value in decimal of 0) to 11111111111111111111111111111111 (value in decimal of 1677721).
Nature is p%25. That's essentially "whatever is the remainder when p is divided by 25". Since yours was Adamant, it has a personality value of 25x+3.
Gender is essentially determined by the last eight digits in the p value (in binary!), and if it's less than a byte stored in the base stats (which are unique to each Pokémon species) it's female, while greater than is male. That's why the gender ratios for the starters are divided into eighths: the base stat value is 00000001, which only 00000000 is less than, meaning there's only a 1/8 chance of getting a female starter. I dunno what your Wurmple's gender is, so I can't figure that out either.
Wurmple evolution is determined by the last sixteen digits in the p value (also in binary!). Whatever the value of this is is then modulo divided by 10. If the remainder is 0-4, it's Silcoon. 5-9, it's Cascoon.
Shininess (or lack thereof) is determined by the OT values and the personality value. To know this you must know your secret ID. Essentially, it checks to see if your Trainer ID no. and your secret ID no. are not the same, and stores this value in a boolean variable. It then checks to see if the first sixteen digits and last sixteen digits of the personality value in binary are not the same (such as 10001011011100101000101101110010), and stores that boolean value. It then checks if the two stored values are themselves the same. If they are, pow, shiny. If not, nope, you got one of the 8191 that aren't.
And so you now can see the complexity of the personality value. I just figured it out myself, actually, and I hope I did it right. Far as I know it's a 32-bit integer, since that's what each of the IVs is. We really should redo the game mechanics articles to make them in more understandable English... not everyone speaks computer. TTEchidna 21:09, 1 April 2008 (UTC)