• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.

SOLVED: Checking if you have a Pokemon of a certain level

pkmnacademia

Trainer
Member
Joined
Mar 24, 2023
Posts
53
I wanted to make an event check if you have a Pokemon with you that's level 50 or higher, but I can't figure out quite how to do it.

I know there needs to be some kind of "pkmn.level >= 50" check, and I think I know how to do that with individually selected Pokemon, but I'm not sure how to apply it to the entire party.

Anyone know how to do this?
 

wrigty12

Tester-Coder Hybrid
Member
Joined
Jul 24, 2022
Posts
530
I wanted to make an event check if you have a Pokemon with you that's level 50 or higher, but I can't figure out quite how to do it.

I know there needs to be some kind of "pkmn.level >= 50" check, and I think I know how to do that with individually selected Pokemon, but I'm not sure how to apply it to the entire party.

Anyone know how to do this?
Ruby:
Expand Collapse Copy
$player.pokemon_party.any? { |p| p&.level >= 50 }
 
Back
Top