Thread: Research: Exploring Ruby and Emerald
View Single Post
  #61    
Old May 4th, 2014 (2:41 AM).
Agastya's Avatar
Agastya Agastya is offline
Grinding failed. Item Grind level dropped by 3.
     
    Join Date: Feb 2010
    Nature: Quiet
    Posts: 72
    I think I figured out opposing Contest trainers in Emerald. They're spread across a master list stored at 0x5880A4 and follow a relatively sane table format for all entries. This is the format itself, using the first entry in the table as an example:

    Quote:
    1E 01 | Pokemon Species

    CA C9 C9 BD C2 D3 FF 00 00 00 00 | Pokemon nickname

    C4 C3 C7 C7 D3 FF 00 00| Trainer name

    07 00 00 | Trainer Sprite (Based on OW sprite #, if you really wanted you could put Rayquaza or Steven in the hall)

    FF | No idea, static across all entries
    0F | No idea, but occasionally is 8F 4F 2F or 1F in some entries. Once an entry becomes 8F, it decreases to previous until 0F
    00 | Still no idea. It occasionally goes to 80 and then counts down to 40 20 10 8 4 2 1, and after a loop or two of this the previous bite begins to count down.
    0C | More unknown stuff.

    44 | Contests eligible. This is a bitfield:

    1: This Pokemon appears in Super-rank contests
    2: This Pokemon appears in Hyper-rank contests
    * If you do not assign either 1 or 2, the Pokemon will appear in Normal-rank contests.
    * If you assign both 1 and 2, the Pokemon will appear in Master-rank contests.

    4: This Pokemon appears in Coolness contests
    8: This Pokemon appears in Beauty contests
    10: This Pokemon appears in Cuteness contests
    20: This Pokemon appears in Smartness contests
    40: This Pokemon appears in Toughness contests

    You can mix and match 4~40 as you see fit.

    00 | ???

    2E 00 2C 00 24 00 50 01 | Moveset

    0A | Cool rating
    04 | Beauty rating
    0A | Cute rating
    03 | Smart rating
    04 | Tough rating
    32 | "Sheen" rating (how full it is)

    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | Padding?
    FF FF 00 00 | More padding?
    The unknown bytes are mostly irrelevant considering everything else interesting is covered in the known ones.
    Carry on, friends.
    __________________
    Reply With Quote