The PokéCommunity Forums Fan Games ROM Hacking
ASM & Hex FireRed - Checking which Pokemon was caught

ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.

Reply
 
Thread Tools
  #1    
Old June 8th, 2018 (10:39 PM). Edited June 9th, 2018 by kouromaro.
kouromaro kouromaro is offline
     
    Join Date: May 2018
    Posts: 11
    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.
    Reply With Quote
      #2    
    Old June 9th, 2018 (3:20 PM).
    Koople's Avatar
    Koople Koople is offline
       
      Join Date: Nov 2016
      Nature: Relaxed
      Posts: 72
      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)
      Reply With Quote
      Reply

      Quick Reply

      Join the conversation!

      Create an account to post a reply in this thread, participate in other discussions, and more!

      Create a PokéCommunity Account
      Thread Tools

      Posting Rules
      You may not post new threads
      You may not post replies
      You may not post attachments
      You may not edit your posts

      BB code is On
      Smilies are On
      [IMG] code is On
      HTML code is Off

      Forum Jump


      All times are GMT -8. The time now is 3:39 PM.