pret / pokeplatinum

Decompilation of Pokémon Platinum
164 stars 56 forks source link

Document game_records.c #235

Closed lhearachel closed 1 month ago

lhearachel commented 1 month ago

Brief diversion in here to also touch up some functions for encoding/decoding data streams using the built-in RNG functions.

lhearachel commented 1 month ago

What's the difference between a RECORD_XXX and a SCORE_RECORD_XXX?

Records are just counters for certain events in-game.

Score records are events which increase the trainer card score. Maybe they would better named as SCORE_EVENT, then?

cbt6 commented 1 month ago

Records are just counters for certain events in-game.

Are these the same records as in those for record mixing?

Score records are events which increase the trainer card score. Maybe they would better named as SCORE_EVENT, then?

TRAINER_SCORE_EVENT?

lhearachel commented 1 month ago

Are these the same records as in those for record mixing?

Maybe! These are counters stored in the save block for things like your step counter, your trainer score, the number of times you've used certain moves or fainted an enemy Pokemon, etc. I'm not sure if record-mixing factors into that; we'll surely uncover that as we document more of these entries.

TRAINER_SCORE_EVENT?

👍