resources — Static Lookup Data

Static catalogs referenced in rule expressions. Compiled to resources.yaml.

resources:
  item_catalog:
    sword_001:
      name: Iron Sword
      value: 150
      rarity: common
    shield_002:
      name: Oak Shield
      value: 80
      rarity: common

Access in expressions: resources.item_catalog[event.item_id].value

Resource types are automatically pluralized in the expression scope:

  • type: productresources.products["id"]
  • type: couponresources.coupons["id"]