• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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] Capturing a Trainer's Pokémon With a Specific Poké Ball FIRE RED ASM need help

  • 29
    Posts
    7
    Years
    • Seen yesterday
    originally posted by FBI

    Trainer Capture toggle by Pokeball


    What this does right now, if check if the thrown Pokeball is a masterball. If it is, allow capture. If it's not a masterball then the normal "trainer has blocked the ball" will occur. To change which ball toggles the capture look at my comments in the code and change 0x1 - masterball to something else of your choice.

    Spoiler:


    How to insert:
    Compile and insert the following routine into freespace:
    Spoiler:


    Now navigate to 0x2D498 and insert the following:

    00 48 00 47 XX XX XX 08

    Where XX XX XX is the reverse hex pointer +1 of where you inserted the routine.

    Usage:
    No usage! It's all done with the power of ASMAGIX!



    My problem is that I'm not able to insert the line
    00 48 00 47 MyOFFSET 08 correctly at 0x2d498 because the bytes in my rom must be at another offset than 0x2D498
    I got it working so i'm able to catch trainers Pokemon but the Problem is that I'm able to use every ball to catch it but want just one set Ball for that
    If someone got this asm script working by inserting it at 0x2d498 would be nice if someone could tell me the bytes that are located at 0x2d498.
    I could then simply find the bytes with the hexeditor in my fire red version.

    solved found it myself

    Is there maybe a way to get this work in the German Version?
     
    Last edited:
    Back
    Top