• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[ASM & Hex] FireRed - Checking which Pokemon was caught

11
Posts
5
Years
  • Age 31
  • Seen Oct 25, 2018
I am trying to work out a check on whether a specific Pokemon has been caught.

The only post remotely related I could find was:
https://www.pokecommunity.com/showthread.php?t=249530

The way I understand it, the post explains how to pass parameter via R1 and R0 to the ASM routine to check whether a Pokemon is caught/seen.

But how do I get the routine's result back?

The plan is to write my own Thumb routine, that takes in parameter from scripts, call the original game check, and return check result to script variables.
 
Last edited:
88
Posts
7
Years
  • Age 34
  • Seen Jan 16, 2020
calling function 0x104AB0 with species ID in r0, and r1 as an index (0: Check seen, 1: Check Caught, 2: Set Seen, 3: Set Caught) will return the result to r0 (0x1 caught/seen, 0x0 otherwise, I assume)
 
Back
Top