• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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
    151
    Days
    • Seen Feb 18, 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