UI name in toolbox: scan barcode [VALUE]
Block type: Value block, output type Boolean
Definition: Becomes true when a specific barcode is scanned during the game.
When it becomes true: The moment the defined barcode is scanned.
How to build it:
- Drag
scan barcode [VALUE]from Logic category - Enter the barcode value in
[VALUE]field (exactly 12 digits) - Connect to condition socket in WHEN block
Field:
[VALUE]: text input (must be exactly 12 digits)
Barcode format requirements:
- Must contain exactly 12 digits
- Examples: “123456789012”, “000000000001”
- Standard barcode (EAN-12) format
Notes:
- Game-wide / persistent (affects entire game)
- Task-linked barcodes always work independently of rules (they don’t require special conditions)
Example (Simple):
Block: scan barcode 123456789012
Result: Scanning that barcode triggers the condition
Example (Edge Case – Insufficient digits):
Block: scan barcode 12345678901 (11 digits)
Result: Does not work; requires exactly 12 digits
Notes:
- More restrictive than QR codes (fixed format)
- Useful for product barcodes or standardized scanning
Common mistakes:
- Entering barcodes with fewer or more than 12 digits
- Confusing with QR codes (different format and scanning method)