Move data structure (Generation III): Difference between revisions

m
Just a little task while I'm waiting to leave...
m (Just a little task while I'm waiting to leave...)
Line 58: Line 58:
|}
|}


Please note that it is theorically possible to combine those values. For example, you could have a move with this value set to 0x18. This would mean it would affect everyone except partner. But, no move seems to use such a combination in the games. Also, the special case 0x01 has a different target depending on the move. Counter targets the last attacker, while Metronome could target anything.
Please note that it is theorically possible to combine those values. For example, the player could have a move with this value set to 0x18. This would mean it would affect everyone except partner. But, no move seems to use such a combination in the games. Also, the special case 0x01 has a different target depending on the move. Counter targets the last attacker, while Metronome could target anything.
* '''Priority''' determines the moves speed. For example, {{M|ExtremeSpeed}} is faster than most other moves. This byte is signed, i.e. this value can be either positive or negative. If it is stricly less than 0x80 (128) then you got the actual value. If not, the actual value equals: -1 * (256 - Current Value). Thus, value 0xFE (254) must be treated as -2 instead.
* '''Priority''' determines the moves speed. For example, {{M|ExtremeSpeed}} is faster than most other moves. This byte is signed, i.e. this value can be either positive or negative. If it is stricly less than 0x80 (128) then the player got the actual value. If not, the actual value equals: -1 * (256 - Current Value). Thus, value 0xFE (254) must be treated as -2 instead.
* '''Contact''' determines whether there is physical contact during the attack or not, for determining effects of certain [[abilities]] such as {{A|Static}} and {{A|Rough Skin}}. This byte also determines whether this move is affected by items such as King's Rock or Brightpowder.
* '''Contact''' determines whether there is physical contact during the attack or not, for determining effects of certain [[abilities]] such as {{A|Static}} and {{A|Rough Skin}}. This byte also determines whether this move is affected by items such as King's Rock or Brightpowder.
* '''Padding''' consists of a sequence of 3 bytes. Each one of those bytes should be set to 0x00.
* '''Padding''' consists of a sequence of 3 bytes. Each one of those bytes should be set to 0x00.


{{data structure}}
{{data structure}}
8,331

edits