• 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.

Checking for original trainer?

  • 132
    Posts
    10
    Years
    As you know, pbGetPokemon(1).species=PBSpecies::PATRAT checks to see whether the chosen pokemon is a patrat.

    In a perfect world, pbGetPokemon(1).ot="Bobby" would check to see if the pokemon originally belongs to Bobby. Although, it's instead changing, I think, the chosen pokemon's OT despite being in a conditional branch.

    So, how do I change the script so that .ot="Bobby" checks, rather than changes?

    Thanks :)

    EDIT: Wow, what a waste of space this thread is. The correct way to check, rather than change, is simply by using TWO equal signs. pbGetPokemon(1).ot=="Bobby"
     
    Last edited:
    =="Bobby"

    We've all been there.

    ----

    Ninja edited, glad you found out anyway.
     
    Back
    Top