View Single Post
Old July 17th, 2012 (9:30 AM). Edited July 17th, 2012 by redriders180.
redriders180's Avatar
redriders180 redriders180 is offline
Mastermind of Pokemon Glazed
    Join Date: Jun 2010
    Location: Path of Victory, Tunod
    Gender: Male
    Nature: Quirky
    Posts: 540
    Originally Posted by Ark_Silvanos View Post
    no what i meant was when u store a pokemon in the box, the data for the pokerus remaining byte gets erased, since only 80 bytes of data are stored for each pokemon in the boxes. What i'm not sure of is what happens to the pokerus byte tho... does that value get saved somewhere? or does the pokemon get re-infected when it gets taken out?

    but again, this would only apply to pokemon in the party or pokemon the player owns (depending on using the 'language' or the 'pokerus rmn' data we use) cuz I dont think wild pokemon and enemy pokemon have this data...

    Newayz... I'm not gonna pretend I kno everything about the game, mechanics or otherwise, as I've only played these games very casually (gen 1-3... no 4+). I'm just going by what i read on bulbapedia about how this stuff works, so feel free to correct me if I'm wrong
    I thought the Pokerus byte was saved higher up, but the last 20 bytes are recalculated when a Pokemon is taken out of the PC.

    Originally Posted by Bulbapedia
    Pokémon that are put into the PC will keep the status indefinitely.
    I think I realize why this is. The Pokerus "flag" is part of the encrypted data subsection of the Pokemon's data. It doesn't get erased when the Pokemon is put in the PC. I assume that, when a Pokerus'd Pokemon is taken out of the PC, it checks if the Pokerus flag is set, and if it is, it'll reset the "Pokerus Remaining" byte.

    That's not to say this is a dead end...the Pokerus "flag" could be used as a "Hidden Ability flag", and when the Pokemon is taken out of the PC, it'll recalculate what the hidden ability is supposed to be.

    Enemy Pokemon are stored in the same format as the team. There are 600 Bytes for the party Pokemon, and 600 bytes reserved for enemy Pokemon. In reality, you could make a "settrainerbattle" script, modify the data in it with writebytetooffset, and then use "repeattrainerbattle" to activate it.

    Originally Posted by Bulbapedia
    Pokérus status is stored in a single byte. The lower 4 bits represents the number of units of time left until the virus wears away. If any bit in the upper 4 bits is set, the Pokémon is immune to Pokérus, indicated a small black dot appears on the Pokémon's status screen. Both values are completely random when caught, leading to the fact that not all Pokémon contract the virus for the same amount of time and some are able to catch it again.
    I'm going to need to do some research, to see if these bytes are actually used in the Firered games.

    Double Edit: At least with givepokemon, these bytes are zero, which means that they shouldn't be an issue.

    I think I'm done with ROM hacking. I'll still pop in and visit, though.

    Reply With Quote