• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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.

[Eventing Question] NPC Trade question

  • 4
    Posts
    3
    Years
    • Seen Feb 3, 2022
    I'm trying to make an NPC that wants the player to trade them a Meowth that is not an Alolan Meowth. How is this possible.
     
    Last edited:
    When you say not an Alolan Meowth, I'm going to assume you mean the Kantonian Meowth (form 0).

    This should work:
    Code:
    pbChooseTradablePokemon(1, 2,
      proc { |pkmn|
        pkmn.isSpecies?(:MEOWTH) &&
        pkmn.form == 0
    })
     
    Thanks, though I was actually looking more for checking that it wasn't Alolan meowth than Kantonian, in case I wanted to try and add in Galarian meowth. For now I'll just keep it simple and make it only work on Kantonian meowth.
     
    Assuming Alolan Meowth is Form 1 in your game, simply change
    Code:
    pkmn.form == 0
    to
    Code:
    pkmn.form != 1
     
    Back
    Top