Is there a way to Check the type of a Pokemon? (Ex . Bug type, Grass type, Etc)

At Night

Rookie
Member
Joined
May 8, 2017
Posts
8
Age
23
Hi, I was wondering if there is a way to check the type of a Pokemon the player has. I want to set up a battle with a Bug Catcher where you can only battle him if you have a Bug Pokemon in your party. So is there a way to check if the Player has any Bug Pokemon, and then make them select which one they want to battle with? I couldn't find anything on the Essentials Wiki about this.
 

Scyl

Ironically Unironic Edgelord Extraordinaire
Member
Joined
Apr 4, 2018
Posts
42
pbHasType?(:BUG)

Call that script in a conditional. The first part being what happens when they should have the specified type and the else being if they don't.
 
Top