Skip to content

Collections for cards and inventories

A collection is a named set of items that each viewer holds. Make a !pack card opener, a !cards command that shows what each viewer owns, and an achievement list, all without a spreadsheet of counts, and let a flow give, take and check items as viewers earn them.

Build · Collections
The Cards catalogue with Import CSV open: four card rows pasted, and the preview below them listing each as new with a count of what will be added before anything is applied.
Pebble, the Bloopbot mascot

What a collection holds

A collection keeps many items for each viewer, and each item has a count: Pixel Pup ×3. Use one for trading cards a viewer opens from packs, an inventory of potions, or achievements, where an item is held once. A variable holds one value; a collection holds a list of items that flows can add to, remove from, check and read back.

Fill the catalogue

The catalogue is the list of items a collection can give out. Add them one at a time or import a CSV, so the card opener draws only from cards you have listed. The guide shows the file layout and the import step.

A card opener for chat

Viewers type !pack to open a pack. A flow picks items from the catalogue and gives them to the viewer, and a !cards command shows what they own. Free is enough to run the opener from start to finish. Collections for cards, inventories and achievements has every step.

Look up, give and take

A flow can look up a viewer's items, give an item or take one away as they earn or spend something, and the guide shows how to build the lookup command yourself. A give to a viewer who is already full follows its error path, so your chat can say so instead of failing quietly.

Share a collection in a pack

Collections can travel with a pack. Whoever installs it gets the collection and its catalogue, and can change them from the Collections page.

Open your first pack tonight.

Declare a collection on the Collections page, fill its catalogue, then build a !pack command in Flows.

Pebble is ready to help