Trainer data structure (Generation II): Difference between revisions

m
no edit summary
(→‎NPC trainer data: I'm mostly sure that was a typo there.)
mNo edit summary
Line 2: Line 2:
{{cleanup}}
{{cleanup}}


==NPC trainer data==
==NPC Trainer data==


{|style="text-align: left; margin: auto; border: 1px solid #88a; background: #f8f8ff; padding: 0.5em; border-collapse: collapse; float: right; width: 250px; padding-left:5px;" cellspacing="1" cellpadding="2"
{|style="text-align: left; margin: auto; border: 1px solid #88a; background: #f8f8ff; padding: 0.5em; border-collapse: collapse; float: right; width: 250px; padding-left:5px;" cellspacing="1" cellpadding="2"
Line 36: Line 36:
|}
|}


The in-game trainer data is remarkably compressed.  
The in-game Trainer data is remarkably compressed.  


====Name====
====Name====
This is a string going anywhere from 2 to 8 bytes, containing the trainer's name and ending in a 0x50 terminator.
This is a string going anywhere from 2 to 8 bytes, containing the Trainer's name and ending in a 0x50 terminator.
The rival's name is represented by a single byte - 0xe6.
The rival's name is represented by a single byte - 0xe6.


13,284

edits