{
  "profile": {
    "enemy_found": 0,
    "enemy_dead": 1,
    "health_good": 2,
    "no_more_items": 3,
    "no_more_enemies": 4,
    "in_combat": 5,
    "have_item": 6,
    "have_healing": 7,
    "detect_enemy": 8,
    "tough_personality": 9
  },
  "actions": [
    {
      "name": "find_enemy",
      "cost": 5,
      "needs": {
        "detect_enemy": true,
        "in_combat": false,
        "no_more_enemies": false,
        "enemy_found": false
      },
      "effects": {
        "enemy_found": true
      }
    },
    {
      "name": "run_away",
      "cost": 0,
      "needs": {
        "tough_personality": false,
        "in_combat": true,
        "have_healing": false,
        "health_good": false
      },
      "effects": {
        "in_combat": false
      }
    },
    {
      "name": "kill_enemy",
      "cost": 10,
      "needs": {
        "no_more_enemies": false,
        "in_combat": true,
        "enemy_found": true,
        "enemy_dead": false
      },

      "effects": {
        "enemy_dead": true
      }
    },
    {
      "name": "collect_items",
      "cost": 5,
      "needs": {
        "no_more_enemies": true,
        "no_more_items": false
      },
      "effects": {
        "no_more_items": true
      }
    },
    {
      "name": "use_healing",
      "cost": 0,
      "needs": {
        "have_item": true,
        "have_healing": true,
        "in_combat": false,
        "health_good": false
      },
      "effects": {
        "health_good": true
      }
    }
  ],
  "states": {
    "Host::initial_state": {
      "enemy_found": false,
      "enemy_dead": false,
      "health_good": true,
      "no_more_items": false,
      "no_more_enemies": false,
      "in_combat": false,
      "have_item": false,
      "have_healing": false,
      "detect_enemy": true,
      "tough_personality": true
    },
    "Host::final_state": {
      "enemy_found": true,
      "enemy_dead": true,
      "health_good": true,
      "no_more_items": true,
      "in_combat": false,
      "no_more_enemies": true
    },
    "Enemy::initial_state": {
      "detect_enemy": false,
      "tough_personality": true,
      "enemy_found": false,
      "enemy_dead": false,
      "health_good": true,
      "in_combat": false
    },
    "Enemy::final_state": {
      "detect_enemy": true,
      "enemy_found": true,
      "enemy_dead": true,
      "health_good": true
    }
  },
  "scripts": {
    "Host::actions":
      ["find_enemy",
      "kill_enemy",
      "collect_items",
      "use_healing"],
    "Enemy::actions":
      ["find_enemy", "run_away", "kill_enemy", "use_healing"]
  }
}
