How to check for multiple items?

MadDeodorant

Insert internet reference here
Member
Joined
Apr 1, 2017
Posts
58
Quick help needed. Is there a way to check for several different items in the bag in one line of script? I'm doing a conditional branch and those only accept one line of script. I'd like something like this but for more items than Flour. Like check for Flour and Item X and Item Y and Item Z, etc in one line.

$PokemonBag.pbQuantity(:FLOUR)>0

I asked on Discord but no one was able to answer. Can you folks help?
 

Dragonite

Have they found the One Piece yet?
Member
Joined
Mar 24, 2017
Posts
254
You should be able to chain conditions together with and/&& operators, like:

$PokemonBag.pbQuantity(:FLOUR)>0 && $PokemonBag.pbQuantity(:POTATO)>0 && $PokemonBag.pbQuantity(:WHATEVER)>0
 
Top