• 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!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

Scripting help

  • 6
    Posts
    213
    Days
    • Seen Jun 29, 2025
    Hi everyone, I'm new to this whole scripting thing, so I'll really appreciate some help.
    Tl;dr I'm trying to set up and even where the player needs to give 3 blue shards to an npc to progress on floors, but I keep getting syntax errors. Im not really understanding the wiki.
    $PokemonBag.pbQuantity(pbItems::BLUESHARD)>=3
    @>Script: $PokemonBag.pbDeleteItem
    (PBItems::BLUESHARD,3)
    @>Script: Kernel.pbReceiveItem
    (PBItems::REDSHARD,10)
     

    Attachments

    • [PokeCommunity.com] Scripting help
      Screenshot 2024-11-30 174445.png
      20.5 KB · Views: 4
    Hi everyone, I'm new to this whole scripting thing, so I'll really appreciate some help.
    Tl;dr I'm trying to set up and even where the player needs to give 3 blue shards to an npc to progress on floors, but I keep getting syntax errors. Im not really understanding the wiki.
    $PokemonBag.pbQuantity(pbItems::BLUESHARD)>=3
    @>Script: $PokemonBag.pbDeleteItem
    (PBItems::BLUESHARD,3)
    @>Script: Kernel.pbReceiveItem
    (PBItems::REDSHARD,10)

    JSYK you've asked in the wrong section. As per the header that shows up when in there, the Feedback area is not for fangame etc. questions, so I've moved it to where I think it will be best to ask!
     
    Change your if to use $bag.has?(:BLUESHARD, 3)

    Shows hw to check the number of items and remove etc.
     
    Back
    Top