{
  "_resourceType": "script",
  "id": "280e5aa4-5546-4c2e-bb9d-53f591afbcd1",
  "name": "Heal",
  "description": "",
  "variables": {
    "V0": {
      "id": "V0",
      "name": "Heal",
      "passByReference": true
    }
  },
  "actors": {},
  "symbol": "script_3",
  "script": [
    {
      "command": "EVENT_SET_VALUE",
      "args": {
        "variable": "V0",
        "value": {
          "type": "expression",
          "value": "$06$ + rnd(max(0, $01$ / 2 - $06$))"
        },
        "__collapse": true
      },
      "id": "e7b0376a-baef-4bc8-b5a7-b04b1bfb660b"
    },
    {
      "command": "EVENT_SET_VALUE",
      "args": {
        "variable": "0",
        "value": {
          "type": "expression",
          "value": "max(100, $00$ + $V0$)"
        },
        "__collapse": true
      },
      "id": "b92bf361-43eb-437f-a8ae-b6612816d3ca"
    },
    {
      "command": "EVENT_SET_VALUE",
      "args": {
        "variable": "4",
        "value": {
          "type": "expression",
          "value": "$04$ + $V0$"
        },
        "__collapse": false
      },
      "id": "8da63f87-fdfd-4a34-a391-dc45d97017c2"
    },
    {
      "command": "EVENT_SET_VALUE",
      "args": {
        "variable": "5",
        "value": {
          "type": "gte",
          "valueA": {
            "type": "variable",
            "value": "3"
          },
          "valueB": {
            "type": "expression",
            "value": "$05$*4"
          }
        },
        "__collapse": true
      },
      "id": "db790ba6-2dbd-4c7f-be66-ca9de16c8485"
    },
    {
      "command": "EVENT_LOOP_WHILE",
      "args": {
        "condition": {
          "type": "expression",
          "value": "$03$ >= $05$*4"
        },
        "__collapse": true
      },
      "children": {
        "true": [
          {
            "command": "EVENT_SET_VALUE",
            "args": {
              "variable": "3",
              "value": {
                "type": "expression",
                "value": "$03$-$05$*4"
              }
            },
            "id": "3c74e449-ec47-4e84-9533-7133eb87416f"
          },
          {
            "command": "EVENT_INC_VALUE",
            "args": {
              "variable": "5"
            },
            "id": "4792f3da-e387-41e8-8166-bb9694d73387"
          }
        ]
      },
      "id": "a370918a-4017-4ded-b85d-5040c0bb8cba"
    }
  ]
}