﻿<?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="NOT_HEARD" chain="AND"></Condition>
    <Condition entity="GUARD_NODE" relation="IS" attribute="REACHED"></Condition>
    <Then behavior="IDLE" priority="5" />
  </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="KISMET_GOTO" relation="IS" attribute="WANTED"></Condition>
    <Then behavior="KY_GOTO" priority="16" />	
  </Rule>
  
  <Rule>
    <Condition entity="KISMET_INTERACT" relation="IS" attribute="WANTED"></Condition>
    <Then behavior="KY_INTERACT" priority="16" />	
  </Rule>
  
  <Rule>
    <Condition entity="KISMET_FOLLOW" relation="IS" attribute="WANTED"></Condition>
    <Then behavior="KY_FOLLOW" priority="16" />	
  </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="AGGR_PLUS_HEALTH" relation="&lt;" attribute="1.5" chain="AND"></Condition>
    <Condition entity="AGGR_PLUS_HEALTH" relation="&gt;" attribute="0.5"></Condition>
    <Then behavior="ADVANCE" priority="17" />
  </Rule>
  
  <Rule>
    <Condition entity="PLAYER" relation="IS" attribute="VISIBLE" chain="AND"></Condition>
    <Condition entity="AGGR_PLUS_HEALTH" relation="&gt;" attribute="1.5" chain="AND"></Condition>
    <Then behavior="RUSH_TARGET" priority="20" />
  </Rule>

  <Rule>
    <Condition entity="PLAYER" relation="IS" attribute="VISIBLE" chain="AND"></Condition>
    <Condition entity="GUARD_NODE" relation="IS" attribute="REACHED"></Condition>
    <Then behavior="ADVANCE" priority="28" />
  </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="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="SHOOT" priority="40" />
  </Rule>
  
  <Rule>
    <Condition entity="GUARD_NODE" relation="IS" attribute="NOT_REACHED"></Condition>
    <Then behavior="SEEK_GUARD" priority="35" />
  </Rule>
  
  <Rule>
    <Condition entity="KISMET_GOTO" relation="IS" attribute="NECESSARY"></Condition>
    <Then behavior="KY_GOTO" priority="40" />	
  </Rule>
  
  <Rule>
    <Condition entity="KISMET_INTERACT" relation="IS" attribute="NECESSARY"></Condition>
    <Then behavior="KY_INTERACT" priority="40" />	
  </Rule>
  
  <Rule>
    <Condition entity="KISMET_FOLLOW" relation="IS" attribute="NECESSARY"></Condition>
    <Then behavior="KY_FOLLOW" priority="40" />	
  </Rule>
  
</Root>