• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
2
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:
    87
    Posts
    7
    Years
    • Seen Nov 22, 2023
    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
    })
     
    4
    Posts
    2
    Years
    • Seen Feb 3, 2022
    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.
     
    87
    Posts
    7
    Years
    • Seen Nov 22, 2023
    Assuming Alolan Meowth is Form 1 in your game, simply change
    Code:
    pkmn.form == 0
    to
    Code:
    pkmn.form != 1
     
    Back
    Top