kwsch / pkNX

Pokémon (Nintendo Switch) ROM Editor & Randomizer
https://projectpokemon.org/home/forums/topic/48647-pknx-nintendo-switch-rom-editor-randomizer/
GNU General Public License v3.0
352 stars 108 forks source link

Pokechange AI flag is incorrect #138

Closed Kobazco closed 6 months ago

Kobazco commented 3 years ago

I posted this on the Project Pokemon thread, but I thought I might as well open up an actual issue about this.

Enabling the "Pokechange" AI flag doesn't actually do anything, the AI never swaps out their Pokemon even if they have a situation where they would've in previous games. I know that the Pokechange AI actually does exist, as battle tower trainers use it. There's also a file for it in the folder with the rest of the AI. I tried doing some poking around in terms of hex editing trainer data myself, but... There's no reference for any trainers outside of the battle tower that actually swap out their Pokemon.

I know many others would appreciate it if the Pokechange option was fixed/at least looked into some more. Thanks in advance.

kwsch commented 3 years ago

As I mentioned on the forums, the game logic might not check that flag for the regular in-game battles.

Kobazco commented 3 years ago

Thanks for clarifying what you said on the forums. To me it seemed like you said the game didn't use the previously thought to be flag, or that it may be in a different order.

If that's the case, well that's just really unfortunate.