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:

  1. Drag scan barcode [VALUE] from Logic category
  2. Enter the barcode value in [VALUE] field (exactly 13 digits)
  3. Connect to condition socket in WHEN block

Field:

  • [VALUE]: text input (must be exactly 13 digits)

Barcode format requirements:

  • Must contain exactly 13 digits
  • Examples: “590123123457”, “0000000000001”
  • Standard barcode (EAN-13) 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 13 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 13 digits
  • Confusing with QR codes (different format and scanning method)
Tagged: