• 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!
  • Scottie, Todd, Serena, Kris - 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.

[Other] Is there a script for exchanging a pokémon for an item?

  • 43
    Posts
    7
    Years
    • Seen Sep 23, 2023
    Is there a script for exchanging a pok?mon for an item?

    I want to be able to add the fossils from the other generation into Fire Red. I do know how to make a give pok?mon script, but I don't know how to do it so that you only receive the pok?mon if you give the npc a specific item, in this case, a fossil. How can I do that?
     
    Last edited:
    I want to be able to add the fossils from the other generation into Fire Red. I do know how to make a give pok?mon script, but I don't know how to do it so that you only receive the pok?mon if you give the npc a specific item, in this case, a fossil. How can I do that?

    You can use CHeckitem command and removeitem command to do what you are trying to do.

    example:
    Code:
    ...
    checkitem 0xD 0x1
    compare LASTRESULT 0x1
    if 0x1 goto @1
    ...
    
    #org @1
    givepokemon 0x1 0x1 0x0 0x0 0x0 0x0 @I don't remember how many fillers does this command have
    removeitem 0xD 0x1
    ...


    That would work.
     
    Last edited:
    You can use CHeckitem command and removeitem command to do what you are trying to do.

    example:
    Code:
    ...
    checkitem 0xD 0x1
    compare LASTRESULT 0x1
    if 0x1 goto @1
    ...
    
    #org @1
    givepokemon 0x1 0x1 0x0 0x0 0x0 0x0 @I don't remember how many fillers does this command have
    removeitem 0xD 0x1
    ...


    That would work.

    Also you find a detailed video tutorial by Anthroyd here: youtube.com/watch?v=H47rkg9sGzM
    Everything you need is included in that vid.
     
    You can use CHeckitem command and removeitem command to do what you are trying to do.

    example:
    Code:
    ...
    checkitem 0xD 0x1
    compare LASTRESULT 0x1
    if 0x1 goto @1
    ...
    
    #org @1
    givepokemon 0x1 0x1 0x0 0x0 0x0 0x0 @I don't remember how many fillers does this command have
    removeitem 0xD 0x1
    ...


    That would work.

    Thanks, I had already figured out tho.
     
    I don't remember how many fillers this command has

    It takes 6:
    [PokeCommunity.com] Is there a script for exchanging a pokémon for an item?
     
    Back
    Top