• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • 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