﻿<?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="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="KISMET_DIALOGUE" relation="IS" attribute="WANTED"></Condition>
    <Then behavior="KY_DIALOGUE" priority="16" />
  </Rule>
  <Rule>
    <Condition entity="KISMET_USE_TURRET" relation="IS" attribute="WANTED"></Condition>
    <Then behavior="KY_USE_TURRET" priority="16" />
  </Rule>
  <Rule>
    <Condition entity="KISMET_MULTI_DIALOGUE" relation="IS" attribute="WANTED"></Condition>
    <Then behavior="KY_MULTI_DIALOGUE" priority="16" />
  </Rule>
  <Rule>
    <Condition entity="KISMET_MULTI_DIALOGUE" relation="IS" attribute="WANTED"></Condition>
    <Then behavior="KY_SHOOT_AT" priority="16" />
  </Rule>
  <Rule>
    <Condition entity="KISMET_HOLD_POSITION" relation="IS" attribute="WANTED"></Condition>
    <Then behavior="KY_HOLD_POSITION" priority="16" />
  </Rule>

  <Rule>
    <Condition entity="PLAYER" relation="IS" attribute="VISIBLE"></Condition>    
    <Then behavior="ADVANCE" priority="20" />
  </Rule>
  
  <Rule>
    <Condition entity="PLAYER" relation="IS" attribute="VISIBLE" chain="AND"></Condition>
    <Condition entity="HEALTH" relation="&gt;" attribute="0.80" chain="AND"></Condition>
	<Condition entity="NEAREST_ENEMY_DISTANCE" relation="&lt;" attribute="490000"></Condition>  
    <Then behavior="LUNGE_TARGET" priority="23" />
  </Rule>

  <Rule>
	<Condition entity="PLAYER" relation="IS" attribute="VISIBLE" chain="AND"></Condition>
	<Condition entity="PLAYER_HEALTH" relation="&lt;" attribute="0.3" chain="AND"></Condition>
	<Condition entity="NEAREST_ENEMY_DISTANCE" relation="&lt;" attribute="1000000"></Condition>
	<Then behavior="LUNGE_TARGET" priority="23" />
  </Rule>	
	
  <Rule>
    <Condition entity="JUMP_NODE" relation="IS" attribute="NOT_REACHED"></Condition>
    <Then behavior="HIGH_JUMP" priority="25" />
  </Rule>

  <Rule>
    <Condition entity="JUMP_NODE" relation="IS" attribute="REACHED"></Condition>
    <Then behavior="HOLD_POSITION" priority="25" />
  </Rule>

  <Rule>
    <Condition entity="JUMP_NODE" relation="IS" attribute="WANTED"></Condition>
    <Then behavior="JUMP_DOWN" priority="25" />
  </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>
  <Rule>
    <Condition entity="KISMET_DIALOGUE" relation="IS" attribute="NECESSARY"></Condition>
    <Then behavior="KY_DIALOGUE" priority="40" />
  </Rule>
  <Rule>
    <Condition entity="KISMET_HOLD_POSITION" relation="IS" attribute="NECESSARY"></Condition>
    <Then behavior="KY_HOLD_POSITION" priority="40" />
  </Rule>
  <Rule>
    <Condition entity="KISMET_USE_TURRET" relation="IS" attribute="NECESSARY"></Condition>
    <Then behavior="KY_USE_TURRET" priority="40" />
  </Rule>
  <Rule>
    <Condition entity="KISMET_MULTI_DIALOGUE" relation="IS" attribute="NECESSARY"></Condition>
    <Then behavior="KY_MULTI_DIALOGUE" priority="40" />
  </Rule>
  <Rule>
    <Condition entity="KISMET_SHOOT_AT" relation="IS" attribute="NECESSARY"></Condition>
    <Then behavior="KY_SHOOT_AT" priority="40" />
  </Rule>
  
</Root>