{
  "$id": "https://offlands.net/schemas/v1/entity",
  "name": {
    "en": "Smith",
    "fr": "Forgeron"
  },
  "sprite": "offlands/sprite/entity/smith",
  "bounding_box": {
    "left": -7,
    "top": -25,
    "width": 15,
    "height": 25
  },
  "collision": {
    "type": "solid",
    "footprint": {
      "left": -5,
      "top": -4,
      "width": 10,
      "height": 4
    }
  },
  "area": {
    "radius": 3,
    "interval": "30s",
    "on_enter": [
      {
        "type": "composite",
        "conditions": [
          {
            "type": "is_player",
            "target": "subject"
          }
        ],
        "triggers": [
          {
            "type": "roll",
            "random_table": {
              "$id": "https://offlands.net/schemas/v1/random_table",
              "rolls": 1,
              "entries": [
                {
                  "weight": 1,
                  "type": "trigger",
                  "triggers": [
                    {
                      "type": "say",
                      "target": "initiator",
                      "string": "offlands/string/smith_hum"
                    }
                  ]
                },
                {
                  "weight": 1,
                  "type": "trigger",
                  "triggers": [
                    {
                      "type": "say",
                      "target": "initiator",
                      "string": "offlands/string/smith_hello"
                    }
                  ]
                }
              ]
            }
          }
        ]
      }
    ]
  },
  "interaction": {
    "type": "conversation",
    "hint": "offlands/string/talk",
    "conversation": "offlands/conversation/smith"
  }
}
