• 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.
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!

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

MeweightX

Trainer
Member
Joined
Mar 24, 2023
Posts
71
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?
 
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