- 132
- Posts
- 10
- Years
- New Brunswick
- Seen May 6, 2023
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"
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: