The Azure Heights Forum

Post New Topic  New Poll  Post A Reply
my profile | search | faq | forum home
  next oldest topic   next newest topic
» The Azure Heights Forum   » Main Campus   » Research Lab   » hidden values

UBBFriend: Email this page to someone!    
Author Topic: hidden values
Orangutan Spouse
Member # 3560

Rate Member
posted 12-20-2003 04:33 PM      Profile for giagia   Email giagia   Send New Private Message      Edit/Delete Post  Reply With Quote 
how do they _exactly_ work?
theres the hidden value for trainers the secretid, and hidden values for pkmn the OT secretid and a value for determining gender and other things, i would like to receive info on the third value, if you can give me info on all then excellent ^^

something like, when is a pkmn male or female, depending on the first bit of this value?, how long is this value?, (...)

From: Polar Mountain | Registered: Nov 2003  |  IP: Logged
Orangutan Spouse
Member # 3596

Rate Member
posted 01-11-2004 08:06 AM      Profile for Kuriki   Email Kuriki   Send New Private Message      Edit/Delete Post  Reply With Quote 
When you start a new game, 2 new numbers are randomly chosen whose values are ranging from 0 to 2^16-1 (= 65,535). One will become the trainer's ID while the other one will become the trainer's secret ID.
Then, Pokemon have 2 numbers too that determine who's their trainer. If those values are the same as yours, they're marked as being your Pokémon.

Another thing is:
Each Pokémon has a number ranging from 0 to 255 which represents its gender. (255 = genderless, 254 = always female, 00 = always male)
=> Call this number A.
Each Pokémon has another value ranging from 0 to 2^32-1 (= 4,294,967,295) which is sort of a key.
=> Call this number B.
This key determines the gender of the Pokemon.

C = B and 255
(this is equal to C = B modulo 256)
C: is a number which will be used later on...

Now, the games compares C with A.
=> if C < A, then gender is female
=> if C >= A, then gender is male
Remember that some Pokémon are genderless or always male/female, thus they don't use that kind of formula...

The key previously described is used in other computations. For ex, it also determines if the Pokemon is shiny or not.

Hope this helps...

Registered: Jan 2004  |  IP: Logged

All times are ET (US)  
Post New Topic  New Poll  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Printer-friendly view of this topic
Hop To:

Contact Us | Azure Heights Pokémon Laboratory

© 2000-2019, Maximum Penetration Industries.

Karpe Diem

The views and opinions expressed on this page are strictly those of the author(s). The contents and links have not been reviewed or approved by the University of Miami.