Talk:Wurmple (Pokémon): Difference between revisions

Line 9: Line 9:
:Nature != Personality value. PV determines nature, but it determines gender, shinyness, and so on. '''[[User:TTEchidna|<span style="color:#FF0000">''TTE''</span>]][[User talk:TTEchidna|chidna]]''' 14:00, 1 April 2008 (UTC)
:Nature != Personality value. PV determines nature, but it determines gender, shinyness, and so on. '''[[User:TTEchidna|<span style="color:#FF0000">''TTE''</span>]][[User talk:TTEchidna|chidna]]''' 14:00, 1 April 2008 (UTC)
::But that doesn't explain why my Wurmple didn't evolve into a Silcoon. Or does it?? <span style="background:#000000">[[User:Porygon-Z|<span style="color:#00BFFF">'''Por'''</span>]][[User:Porygon-Z/Trade|<span style="color:#FF1493">'''ygo'''</span>]][[User:Porygon-Z/Dracofang Gym|<span style="color:#00BFFF">'''n-Z'''</span>]]</span> 18:47, 1 April 2008 (UTC)
::But that doesn't explain why my Wurmple didn't evolve into a Silcoon. Or does it?? <span style="background:#000000">[[User:Porygon-Z|<span style="color:#00BFFF">'''Por'''</span>]][[User:Porygon-Z/Trade|<span style="color:#FF1493">'''ygo'''</span>]][[User:Porygon-Z/Dracofang Gym|<span style="color:#00BFFF">'''n-Z'''</span>]]</span> 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. '''[[User:TTEchidna|<span style="color:#FF0000">''TTE''</span>]][[User talk:TTEchidna|chidna]]''' 21:09, 1 April 2008 (UTC)
55,887

edits