FANDOM


  • Basically I want to do this

    $PokemonBag.pbHasItem?(:POTION)
    

    But with more than one of the item. (Basically like "You can't pass unless you have 5 Potions" kind of thing.) Is there a Conditional Branch that'll allow something like this?

    Doing this,

    $PokemonBag.pbHasItem?(:POTION,5)
    

    doesn't work, by the way.

      Loading editor
    • Try this:

      $PokemonBag.pbQuantity(:POTION)>=5

      This checks if the Player has at least 5 Potions.

        Loading editor
    • Diverscope wrote:
      Try this:

      $PokemonBag.pbQuantity(:POTION)>=5

      This checks if the Player has at least 5 Potions.

      Yes! It works! Thank you very much!

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message