• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Checking item amount

  • 132
    Posts
    10
    Years
    Sorry, I couldn't find anything previously posted on the matter. Anyway, really quick:

    I make an item quest like so.
    [PokeCommunity.com] Checking item amount

    Spoiler:

    What I'm going for: The event checks if you have 5 potions. If you have 5 potions, it'll take them and reward you, etc. If not, blah. So anyway...

    What I get:
    Spoiler:

    The only possible offender of this crash must be "$PokemonBag.pbQuantity(:POTION)==5," as it's the only script in the entire event.

    This is the script copied directly from the "Manipulation items" tutorial:
    $PokemonBag.pbQuantity(:POTION)==5
    As compared to mine:
    $PokemonBag.pbQuantity(:POTION)==5

    So am I missing a step or something? The tutorial (here) mentions something about comparing the script with "$PokemonBag.pbQuantity(:POTION)," but I'm not exactly sure what it means by "compare" and how I'd go about "comparing" the two scripts. Thank you. Almost done with this demo, dangit :)
     
    Make sure it's in a conditional branch and try adding "PBItems::POTION" instead.
     
    The ability to use just :POTION there rather than PBItems::POTION was added in Essentials v14. If you're using an older version of Essentials like a fool, bear in mind that many things will be different.
     
    Back
    Top