﻿<?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_HOLD_POSITION" relation="IS" attribute="WANTED"></Condition>
    <Then behavior="KY_HOLD_POSITION" 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="PLAYER" relation="IS" attribute="VISIBLE"></Condition>
    <Then behavior="BE_AN_AUTOMAN" 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_MULTI_DIALOGUE" relation="IS" attribute="NECESSARY"></Condition>
    <Then behavior="KY_MULTI_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_SHOOT_AT" relation="IS" attribute="NECESSARY"></Condition>
    <Then behavior="KY_SHOOT_AT" priority="40" />
  </Rule>

  <Rule>
    <Condition entity="SELF" relation="IS" attribute="INSTUN"></Condition>
    <Then behavior="STUNNED" priority="60" />
  </Rule>
  
</Root>