﻿<?xml version="1.0" encoding="utf-8"?>
<Root>
  <Rule>
    <Condition entity="PLAYER" relation="IS" attribute="NOT_VISIBLE" chain="AND"></Condition>
    <Condition entity="NOISE" relation="IS" attribute="NOT_HEARD"></Condition>
    <Then behavior="IDLE" priority="0" />
  </Rule>
  <Rule>
    <Condition entity="PLAYER" relation="IS" attribute="NOT_VISIBLE" chain="AND"></Condition>
    <Condition entity="NOISE" relation="IS" attribute="HEARD"></Condition>
    <Then behavior="GOTO_SOUND" priority="15" />
  </Rule>

  <Rule>
    <Condition entity="PLAYER" relation="IS" attribute="VISIBLE" chain="AND"></Condition>
    <Condition entity="AGGR_PLUS_HEALTH" relation="&lt;=" attribute="1.0" chain="AND"></Condition>
    <Condition entity="AGGR_PLUS_HEALTH" relation="&gt;=" attribute="0.5" chain="AND"></Condition>
    <Then behavior="ADVANCE" priority="20" />
  </Rule>

  <Rule>
    <Condition entity="PLAYER" relation="IS" attribute="VISIBLE" chain="AND"></Condition>
    <Condition entity="AGGR_PLUS_HEALTH" relation="&gt;" attribute="0.99" chain="AND"></Condition>
    <Then behavior="RUSH_TARGET" priority="25" />
  </Rule>

  <Rule>    
    <Condition entity="AGGR_PLUS_HEALTH" relation="&lt;" attribute="0.5"></Condition>
    <Then behavior="FLEE" priority="30" />
  </Rule>
  <Rule>
    <Condition entity="PLAYER" relation="IS" attribute="NOT_VISIBLE" chain="AND"></Condition>
    <Condition entity="AMBUSH_NODE" relation="IS" attribute="REACHED"></Condition>
    <Then behavior="AMBUSH_AWAIT" priority="17" />
  </Rule>
  <Rule>
    <Condition entity="PLAYER" relation="IS" attribute="VISIBLE" chain="AND"></Condition>
    <Condition entity="AMBUSH_NODE" relation="IS" attribute="NOT_REACHED"></Condition>
    <Then behavior="SEEK_AMBUSH" priority="35" />
  </Rule>
  <Rule>
    <Condition entity="PLAYER" relation="IS" attribute="VISIBLE" chain="AND"></Condition>
    <Condition entity="AMBUSH_NODE" relation="IS" attribute="REACHED"></Condition>
    <Then behavior="HOLD_POSITION" priority="40" />
  </Rule>
  <Rule>
    <Condition entity="GUARD_NODE" relation="IS" attribute="NOT_REACHED"></Condition>
    <Then behavior="SEEK_GUARD" priority="35" />
  </Rule>
</Root>