{
  "$id": "https://offlands.net/schemas/v1/entity",
  "sprite": "offlands/sprite/entity/wooden_sign",
  "bounding_box": {
    "left": -8,
    "top": -16,
    "width": 16,
    "height": 16
  },
  "collision": {
    "type": "solid",
    "footprint": {
      "left": -7,
      "top": -4,
      "width": 14,
      "height": 4
    }
  },
  "area": {
    "radius": 4,
    "interval": "3s",
    "on_tick": [
      {
        "type": "composite",
        "conditions": [
          {
            "type": "is_player",
            "target": "subject"
          }
        ],
        "triggers": [
          {
            "type": "play_emote",
            "emote": "offlands/emote/quest"
          }
        ]
      }
    ]
  },
  "interaction": {
    "hint": "offlands/string/read",
    "on_interact": [
      {
        "type": "take",
        "items": [
          {
            "item": "offlands/item/bounty_notice",
            "count": 1
          },
          {
            "item": "offlands/item/slime",
            "count": 5
          }
        ],
        "on_take": [
          {
            "type": "give",
            "item": "offlands/item/novice_sword"
          },
          {
            "type": "notify",
            "channel": "system",
            "string": "offlands/string/bounty_board_paid",
            "placeholders": [
              {
                "type": "item",
                "item": "offlands/item/slime"
              },
              "5"
            ]
          },
          {
            "type": "notify",
            "channel": "zone",
            "string": "offlands/string/bounty_board_complete"
          }
        ],
        "on_fail": [
          {
            "type": "composite",
            "conditions": [
              {
                "type": "carrying",
                "target": "initiator",
                "operation": "less_than",
                "item": "offlands/item/bounty_notice",
                "count": 1
              }
            ],
            "triggers": [
              {
                "type": "give",
                "item": "offlands/item/bounty_notice"
              },
              {
                "type": "notify",
                "channel": "zone",
                "string": "offlands/string/bounty_board_taken"
              }
            ]
          },
          {
            "type": "notify",
            "channel": "system",
            "string": "offlands/string/bounty_board_wanted",
            "placeholders": [
              {
                "type": "item",
                "item": "offlands/item/slime"
              },
              "5",
              {
                "type": "item",
                "item": "offlands/item/novice_sword"
              }
            ]
          }
        ]
      }
    ]
  },
  "name": {
    "en": "Bounty Board",
    "fr": "Tableau des primes"
  }
}
