Battle Frontier data structures (Generation III): Difference between revisions

mNo edit summary
Line 101: Line 101:


==Battle style moves==
==Battle style moves==
In determining a Trainer's battle style in the {{ho|Battle Factory}} and [[Battle Dome]], seven lists of moves are kept by the game, and from these, one of nine battle styles is determined. The Trainer's Pokémon's moves are matched up against these seven lists, and a list is considered "satisfied" if the Trainer has enough moves from that list. The number of moves that are needed for a list to be satisfied is stored in memory location 0x08611FC0 as a list of 7 unsigned 8-bit integers; by default this is three moves for the first three lasts and two for the last four. The game then determines the battle style based on how many of the lists are satisfied (either none, 1-2, or at least 3; the middle one of which will also state the last list that was satisfied, for a total of 9 styles).
In determining a Trainer's battle style in the {{OBP|Battle Factory|Generation III}} and [[Battle Dome]], seven lists of moves are kept by the game, and from these, one of nine battle styles is determined. The Trainer's Pokémon's moves are matched up against these seven lists, and a list is considered "satisfied" if the Trainer has enough moves from that list. The number of moves that are needed for a list to be satisfied is stored in memory location 0x08611FC0 as a list of 7 unsigned 8-bit integers; by default this is three moves for the first three lasts and two for the last four. The game then determines the battle style based on how many of the lists are satisfied (either none, 1-2, or at least 3; the middle one of which will also state the last list that was satisfied, for a total of 9 styles).


The master list of moves used in determining battle style is stored as an array of 7 pointers to lists of 16-bit unsigned integers, referring to the corresponding indices in the master move list (see [[List of moves]]). All seven lists have no fixed length, and are terminated with 0x0000.
The master list of moves used in determining battle style is stored as an array of 7 pointers to lists of 16-bit unsigned integers, referring to the corresponding indices in the master move list (see [[List of moves]]). All seven lists have no fixed length, and are terminated with 0x0000.
86,550

edits