• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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
    7
    Years
    • 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/threads/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:
    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