<?xml version="1.0" encoding="utf-8"?>

<blockdefinitions>

  <predefined_values id="alignmentToCharacterHorizontal">
    <value>Left</value>
    <value>Right</value>
    <value>FacingDirection</value>
    <value>Centre</value>
  </predefined_values>

  <predefined_values id="alignmentToCharacterVertical">
    <value>Top</value>
    <value>Bottom</value>
    <value>Centre</value>
  </predefined_values>

  <predefined_values id="animationLocation">
    <value>HUD</value>
    <value>WORLD</value>
    <value>START_RELATIVE_TO_CHARACTER</value>
    <value>FOLLOW_CHARACTER</value>
  </predefined_values>

  <predefined_values id="buttons">
    <value>FACE_BOTTOM</value>
    <value>FACE_RIGHT</value>
    <value>FACE_LEFT</value>
    <value>FACE_TOP</value>
    <value>SHOULDER_LEFT</value>
    <value>SHOULDER_RIGHT</value>
    <value>TRIGGER_LEFT</value>
    <value>TRIGGER_RIGHT</value>
    <value>DPAD_LEFT</value>
    <value>DPAD_RIGHT</value>
    <value>DPAD_UP</value>
    <value>DPAD_DOWN</value>
    <value>BACK</value>
  </predefined_values>

  <predefined_values id="actionButtons">
    <value>ABT_NONE</value>
    <value>ABT_BACK</value>
    <value>ABT_START</value>
    <value>ABT_CONFIRM</value>
    <value>ABT_CANCEL</value>
    <value>ABT_SHOULDER_LEFT</value>
    <value>ABT_SHOULDER_RIGHT</value>
    <value>ABT_TRIGGER_LEFT</value>
    <value>ABT_TRIGGER_RIGHT</value>
    <value>ABT_UP</value>
    <value>ABT_DOWN</value>
    <value>ABT_LEFT</value>
    <value>ABT_RIGHT</value>
    <value>ABT_FACE_TOP</value>
    <value>ABT_FACE_BOTTOM</value>
    <value>ABT_FACE_LEFT</value>
    <value>ABT_FACE_RIGHT</value>
    <value>ABT_UP_2</value>
    <value>ABT_DOWN_2</value>
    <value>ABT_LEFT_2</value>
    <value>ABT_RIGHT_2</value>
    <value>ABT_DOWNJUMP</value>
    <value>ABT_TOGGLE_JUMP_SKILL</value>
    <value>ABT_GAME_COMMAND_UP</value>
    <value>ABT_GAME_COMMAND_RIGHT</value>
    <value>ABT_GAME_COMMAND_DOWN</value>
    <value>ABT_GAME_COMMAND_LEFT</value>
    <value>ABT_HELP</value>
    <value>ABT_OPEN_PAUSE_MENU</value>
    <value>ABT_CLOSE_PAUSE_MENU</value>
    <value>ABT_OPEN_SHOP</value>
    <value>ABT_CLOSE_SHOP</value>
    <value>ABT_TOGGLE_SCOREBOARD</value>
    <value>ABT_OPEN_CHAT</value>
    <value>ABT_SHOW_PROFILE</value>
    <value>ABT_MUTE_PLAYER</value>
  </predefined_values>

  <predefined_values id="characterVariables">
    <value>character.width</value>
    <value>character.height</value>
    <value>character.position.x</value>
    <value>character.position.y</value>
    <value>character.maxHealth</value>
    <value>target.width</value>
    <value>target.height</value>
    <value>target.position.x</value>
    <value>target.position.y</value>
    <value>target.maxHealth</value>
  </predefined_values>

  <predefined_values id="collison groups">
    <value>PLAYERS</value>
    <value>CREEPS</value>
    <value>NAMED_AREAS</value>
    <value>INVINCIBLE_OBSTACLES</value>
    <value>DESTROYABLE_OBSTACLES</value>
    <value>PROJECTILES</value>
    <value>SHOPS</value>
    <value>JUMPPADS</value>
  </predefined_values>

  <predefined_values id="missionCompletionDelay">
    <value>INSTANT</value>
  </predefined_values>

  <predefined_values id="missionEvent">
    <value>KILL</value>
  </predefined_values>

  <predefined_values id="missionTarget">
    <value>SELF</value>
    <value>HERO</value>
    <value>CREEP</value>
    <value>TURRET</value>
    <value>BASE</value>
    <value>WORM</value>
    <value>DAMAGE_AREA</value>
    <value>ANY</value>
  </predefined_values>

  <predefined_values id="goldPickupType">
    <value>ANY</value>
    <value>PICKUP</value>
    <value>AI</value>
    <value>LATEBONUS</value>
    <value>SHOP</value>
    <value>DEATH</value>
  </predefined_values>

  <predefined_values id="distance check">
    <value>NONE</value>
    <value>CLOSEST</value>
    <value>FURTHEST</value>
  </predefined_values>

  <predefined_values id="ping">
    <value>ATTACK</value>
    <value>DEFEND</value>
    <value>HELP</value>
    <value>TURRET_UNDER_ATTACK</value>
    <value>TURRET_ALMOST_DESTROYED</value>
    <value>BASE_UNDER_ATTACK</value>
    <value>BASE_ALMOST_DESTROYED</value>
  </predefined_values>

  <predefined_values id="target groups">
    <value>PLAYERS</value>
    <value>CREEPS</value>
    <value>DESTROYABLE_OBSTACLES</value>
  </predefined_values>

  <predefined_values id="target receive groups">
    <value>PLAYERS</value>
    <value>CREEPS</value>
  </predefined_values>

  <predefined_values id="target relatives">
    <value>TARGET_IS_UNRELATED</value>
    <value>TARGET_IS_PARENT</value>
    <value>TARGET_IS_CHILD</value>
  </predefined_values>

  <predefined_values id="directions">
    <value>UP</value>
    <value>DOWN</value>
    <value>LEFT</value>
    <value>RIGHT</value>
    <value>FORWARD</value>
    <value>BACKWARD</value>
  </predefined_values>

  <predefined_values id="offsetposition">
    <value>ABOVE</value>
    <value>BACK</value>
    <value>FRONT</value>
    <value>BELOW</value>
    <value>HORIZONTAL EQUAL</value>
    <value>VERTICAL EQUAL</value>
  </predefined_values>

  <predefined_values id="forwardbackward">
    <value>FORWARD</value>
    <value>BACKWARD</value>
  </predefined_values>

  <predefined_values id="frontback">
    <value>FRONT</value>
    <value>BACK</value>
  </predefined_values>

  <predefined_values id="leftright">
    <value>LEFT</value>
    <value>RIGHT</value>
  </predefined_values>

  <predefined_values id="ownenemy">
    <value>OWN_TEAM</value>
    <value>ENEMY_TEAM</value>
  </predefined_values>

  <predefined_values id="teams">
    <value>OWN_TEAM</value>
    <value>ENEMY_TEAM</value>
    <value>NEUTRAL_TEAM</value>
  </predefined_values>

  <predefined_values id="teamswithtarget">
    <value>OWN_TEAM</value>
    <value>ENEMY_TEAM</value>
    <value>NEUTRAL_TEAM</value>
    <value>TARGET</value>
  </predefined_values>

  <predefined_values id="teamswithnumbers">
    <value>OWN_TEAM</value>
    <value>ENEMY_TEAM</value>
    <value>NEUTRAL_TEAM</value>
    <value>ZERO_TEAM</value>
    <value>ONE_TEAM</value>
    <value>ANY_TEAM</value>
  </predefined_values>

  <predefined_values id="timeunits">
    <value>seconds</value>
    <value>minutes</value>
    <value>milliseconds</value>
    <value>hours</value>
  </predefined_values>

  <predefined_values id="yesno">
    <value>no</value>
    <value>yes</value>
  </predefined_values>

  <predefined_values id="targetself">
    <value>self</value>
    <value>target</value>
  </predefined_values>

  <predefined_values id="flagtoggle">
    <value>no</value>
    <value>yes</value>
    <value>toggle</value>
  </predefined_values>

  <predefined_values id="scoretype">
    <value>KILLS</value>
    <value>DEATHS</value>
    <value>CREEPKILLS</value>
  </predefined_values>

  <predefined_values id="valuecompare">
    <value>less</value>
    <value>less or equal</value>
    <value>equal</value>
    <value>greater or equal</value>
    <value>greater</value>
  </predefined_values>

  <predefined_values id="valuecompare2">
    <value>less</value>
    <value>less or equal</value>
    <value>equal</value>
    <value>greater or equal</value>
    <value>greater</value>
    <value>lowest</value>
    <value>highest</value>
  </predefined_values>

  <predefined_values id="valueadjust">
    <value>set</value>
    <value>add</value>
    <value>multiply</value>
    <value>divide</value>
  </predefined_values>

  <predefined_values id="charactervaluesAdjustable">
    <value>health</value>
    <value>health percentage</value>
    <value>gold</value>
    <value>goldWithoutXp</value>
  </predefined_values>

  <predefined_values id="charactervaluesCheckable">
    <value>health</value>
    <value>health percentage</value>
    <value>gold</value>
    <value>gold_total_earned</value>
    <value>AI skill</value>
    <value>health minus dot</value>
    <value>health minus dot percentage</value>
  </predefined_values>

  <predefined_values id="targetvalues">
    <value>not important</value>
    <value>lowest health</value>
    <value>highest health</value>
    <value>lowest mana</value>
    <value>highest mana</value>
    <value>lowest gold</value>
    <value>highest gold</value>
  </predefined_values>

  <predefined_values id="TurretLocations">
    <value>TOP BACK</value>
    <value>TOP FRONT</value>
    <value>BOTTOM BACK</value>
    <value>BOTTOM FRONT</value>
    <value>BACK</value>
    <value>FRONT</value>
  </predefined_values>

  <predefined_values id="emitvalues">
    <value>health</value>
    <value>mana</value>
    <value>gold</value>
  </predefined_values>

  <predefined_values id="characterflags">
    <value>isSilenced</value>
    <value>isStunned</value>
    <value>isBlinded</value>
    <value>isSlowed</value>
    <value>isSnared</value>
    <value>isUnderAnyEffect</value>
    <value>isStealth</value>
    <value>isChained</value>
    <value>hasDotEffect</value>
    <value>isOutofCombat</value>
    <value>ignoresCharacterCollision</value>
    <value>isUnderStealthRevealingEffect</value>
  </predefined_values>

  <predefined_values id="variableTypes">
    <value>bool</value>
    <value>int</value>
    <value>float</value>
  </predefined_values>

  <action>

    <action name="addAmmo">
      <int name="amount"/>
      <string name="ammoSettingsIdentifier"/>
    </action>

    <action name="adjustCharacterValue">
      <string name="property" values="charactervaluesAdjustable" defaultvalue="health"/>
      <float name="value"/>
      <string name="adjust method" values="valueadjust" defaultvalue="set"/>
    </action>

    <action name="adjustAIVariable">
      <string name="example character variables" values="characterVariables"/>
      <string name="variable type" values="variableTypes" defaultvalue="float"/>
      <string name="variable"/>
      <string name="value"/>
      <string name="adjust method" values="valueadjust" defaultvalue="set"/>
    </action>

    <action name="adjustCounter">
      <string name="id"/>
      <string name="value"/>
      <string name="adjust method" values="valueadjust" defaultvalue="set"/>
    </action>

    <action name="adjustMissionCounter">
      <string name="id"/>
      <string name="value"/>
      <string name="adjust method" values="valueadjust" defaultvalue="set"/>
    </action>

    <action name="aimStickAtTarget">
      <float name="duration seconds"/>
      <string name="only aim when needed" values="yesno" defaultvalue="no"/>
      <string name="use rotation speed limits" values="yesno" defaultvalue="no" shortName="use limits"/>
      <float name="min rotation speed per second in degrees" shortName="min speed"/>
      <float name="max rotation speed per second in degrees" shortName="max speed"/>
      <float name="use min rotation speed when angle to target under" shortName="min to target under"/>
      <float name="use max rotation speed when angle to target over" shortName="max to target over"/>
    </action>

    <action name="buyUpgrade">
      <string name="upgrade name" shortName="upgrade"/>
    </action>

    <action name="completeMission">
      <string name="delay" values="missionCompletionDelay" defaultvalue="INSTANT"/>
    </action>

    <action name="emitMessageInArea">
      <string name="id"/>
      <string name="receive groups" values="target receive groups" multiselect="true"/>
      <string name="receive relatives" values="target relatives" multiselect="true"/>
      <string name="teams" values="teamswithtarget" multiselect="true"/>
      <float name="xOffset"/>
      <float name="yOffset"/>
      <float name="width"/>
      <float name="height"/>
      <string name="horizontal alignment to character" values="alignmentToCharacterHorizontal" defaultvalue="Centre"/>
      <string name="vertical alignment to character" values="alignmentToCharacterVertical" defaultvalue="Centre"/>
      <string name="debugAreaColour" defaultvalue="255 0 0 51"/>
      <string name="ignore invisibility" values="yesno" defaultvalue="yes"/>
      <string name="never detect invisible targets without character collision" values="yesno" defaultvalue="no" shortName="ignr invis no cllsn"/>
      <string name="check line of sight" values="yesno" defaultvalue="no"/>
    </action>

    <action name="emitTargetInArea">
      <string name="receive groups" values="target receive groups" multiselect="true"/>
      <string name="teams" values="teams" multiselect="true"/>
      <float name="xOffset"/>
      <float name="yOffset"/>
      <float name="width"/>
      <float name="height"/>
      <string name="horizontal alignment to character" values="alignmentToCharacterHorizontal" defaultvalue="Centre"/>
      <string name="vertical alignment to character" values="alignmentToCharacterVertical" defaultvalue="Centre"/>
      <string name="debugAreaColour" defaultvalue="0 255 0 51"/>
    </action>

    <action name="enableUpgrade">
      <string name="condition" values="yesno" defaultvalue="yes"/>
      <string name="upgrade name" shortName="upgrade"/>
    </action>

    <action name="executeBehaviourTree">
      <string name="fileName" shortName="file"/>
    </action>

    <action name="generateLoadout">
      <string name="isTutorial" values="yesno" defaultvalue="no"/>
      <string name="className" defaultvalue="cowboy"/>
    </action>

    <action name="getTeamLevel">
      <string name="team" values="teamswithnumbers" defaultvalue="OWN_TEAM"/>
      <string name="counter"/>
    </action>

    <action name="lockPlayerInput">
      <string name="shouldLock" values="yesno" defaultvalue="no"/>
    </action>

    <action name="lockPlayerInputSpecificButtons">
      <string name="shouldLock" values="yesno" defaultvalue="no"/>
      <string name="buttons to (un)lock" values="actionButtons" multiselect="true"/>
    </action>

    <action name="log">
      <string name="text"/>
      <string name="counter"/>
      <string name="bool"/>
    </action>

    <action name="logMetric">
      <string name="MetricIdentifier"/>
      <string name="AdditionalKeyValuePairsString"/>
      <string name="AdditionalKeyValuePairsInt"/>
      <string name="AdditionalKeyValuePairsBool"/>
      <string name="AdditionalKeyValuePairsFloat"/>
      <string name="addReplayID" values="yesno" defaultvalue="yes"/>
      <string name="countersToAdd" defaultvalue=""/>
    </action>

    <action name="missionGetScore">
      <string name="class"/>
      <string name="type" values="scoretype" defaultvalue="KILLS"/>
      <string name="store in"/>
    </action>

    <action name="pauseGame">
      <string name="endOnButtonPress" values="yesno" defaultvalue="yes"/>
      <string name="endOnAnimationFinished" values="yesno" defaultvalue="no"/>
      <string name="endOnTimeElapsed" values="yesno" defaultvalue="no"/>
      <float name="endOnTimeElapsedTime"/>
      <string name="animationName"/>
      <string name="loopAnimation" values="yesno" defaultvalue="no"/>
      <float name="animationXPosition"/>
      <float name="animationYPosition"/>
      <float name="animationSize"/>
      <string name="animationNameBasedOnInputHardware" values="yesno" defaultvalue="no"/>
      <string name="animationTextsBasedOnInputHardware" values="yesno" defaultvalue="yes"/>
    </action>

    <action name="playAnimation">
      <string name="animationName"/>
      <string name="location" values="animationLocation" defaultvalue="HUD"/>
      <string name="dummyToFollow"/>
      <float name="xPosition"/>
      <float name="yPosition"/>
      <float name="xHudOnlyAnchorPosition"/>
      <float name="yHudOnlyAnchorPosition"/>
      <float name="scale"/>
      <float name="depth"/>
      <string name="mirrorX" values="yesno" defaultvalue="no"/>
      <string name="team" values="teams" defaultvalue="OWN_TEAM"/>
      <string name="addOverlayPrefix" values="yesno" defaultvalue="no"/>
      <string name="allowRotating" values="yesno" defaultvalue="yes"/>
      <string name="textReplace1TextID"/>
      <string name="textReplace1Replacement"/>
      <string name="textReplace1ReplacementIsLocalizationID" values="yesno" defaultvalue="yes"/>
      <string name="textReplace2TextID"/>
      <string name="textReplace2Replacement"/>
      <string name="textReplace2ReplacementIsLocalizationID" values="yesno" defaultvalue="yes"/>
      <string name="textureReplace1VisualName"/>
      <string name="textureReplace1ReplacementName"/>
      <string name="textureReplace2VisualName"/>
      <string name="textureReplace2ReplacementName"/>
    </action>

    <action name="playSound">
      <string name="soundGroup"/>
      <string name="forcePlay"/>
    </action>

    <action name="pressButton">
      <string name="button" values="buttons" defaultvalue="FACE_BOTTOM"/>
      <float name="duration in seconds"/>
    </action>

    <action name="pressStick">
      <string name="direction" values="directions" defaultvalue="UP"/>
      <float name="duration in seconds"/>
    </action>

    <action name="randomizeMissionCounter">
      <string name="id"/>
      <string name="low"/>
      <string name="high"/>
    </action>

    <action name="receiveTarget"></action>

    <action name="removeTarget"></action>

    <action name="resetMissionVariables"></action>

    <action name="selectDestWaypoint">
      <string name="name"/>
      <string name="team" values="ownenemy" defaultvalue="ENEMY_TEAM"/>
    </action>

    <action name="selectLocalPlayerTarget">
      <int name="localPlayerIndex" defaultvalue="0"/>
    </action>

    <action name="selectPingWaypoint">
      <string name="ping" values="ping" defaultvalue="ATTACK"/>
    </action>

    <action name="selectTarget">
      <string name="groups to select" values="target groups" multiselect="true"/>
      <string name="teams" values="teams" multiselect="true"/>
      <string name="class"/>
      <string name="only check parent" values="yesno" defaultvalue="no"/>
      <string name="remove if not found" values="yesno" defaultvalue="no"/>
      <float name="xOffset"/>
      <float name="yOffset"/>
      <float name="width"/>
      <float name="height"/>
      <string name="horizontal alignment to character" values="alignmentToCharacterHorizontal" defaultvalue="Centre"/>
      <string name="vertical alignment to character" values="alignmentToCharacterVertical" defaultvalue="Centre"/>
      <string name="debugAreaColour" defaultvalue="0 255 255 51"/>
      <string name="compare method" values="valuecompare2" defaultvalue="greater or equal" shortName="compare"/>
      <float name="health value"/>
      <string name="distance check" values="distance check" defaultvalue="NONE"/>
      <string name="check line of sight" values="yesno" defaultvalue="no"/>
      <string name="ignore invisibility" values="yesno" defaultvalue="no"/>
      <string name="never detect invisible targets without character collision" values="yesno" defaultvalue="no" shortName="ignr invis no cllsn"/>
    </action>

    <action name="selectTargetWaypoint"></action>

    <action name="setBool">
      <string name="id"/>
      <string name="value" values="flagtoggle" defaultvalue="no"/>
    </action>

    <action name="setLevelButton">
      <string name="button"/>
      <string name="down" values="yesno" defaultvalue="no"/>
    </action>

    <action name="setMissionBool">
      <string name="id"/>
      <string name="value" values="flagtoggle" defaultvalue="no"/>
    </action>

    <action name="spawnCharacter">
      <string name="className"/>
      <string name="aiFileName"/>
      <string name="team" values="teamswithnumbers" defaultvalue="OWN_TEAM"/>
      <float name="count"/>
      <string name="spawnPositionNodeID"/>
      <float name="spawnPositionOffsetX"/>
      <float name="spawnPositionOffsetY"/>
    </action>

    <action name="startCameraSequence">
      <string name="areaNames"/>
      <string name="transitionTimes"/>
      <string name="holdTimes"/>
      <string name="cameraHeights"/>
    </action>

    <action name="stopAnimation">
      <string name="animationName"/>
    </action>

    <action name="stopSound">
      <string name="soundGroup"/>
    </action>

    <action name="triggerSkill">
      <string name="skillSettingsIdentifier"/>
      <string name="skillActionButton" values="actionButtons" defaultvalue="ABT_NONE"/>
      <float name="triggerDuration"/>
    </action>

    <action name="wait">
      <float name="time"/>
    </action>

    <action name="writeToTextbox">
      <string name="localizationID"/>
      <float name="transparency"/>
      <string name="texture"/>
      <float name="duration"/>
    </action>
  </action>

  <condition>

    <condition name="areGoldCoinsInArea">
      <string name="compare value"/>
      <string name="compare method" values="valuecompare" defaultvalue="greater or equal" shortName="compare"/>
      <float name="xOffset"/>
      <float name="yOffset"/>
      <float name="width"/>
      <float name="height"/>
      <string name="horizontal alignment to character" values="alignmentToCharacterHorizontal" defaultvalue="Centre"/>
      <string name="vertical alignment to character" values="alignmentToCharacterVertical" defaultvalue="Centre"/>
      <string name="debugAreaColour" defaultvalue="153 255 76 51"/>
      <string name="check line of sight" values="yesno" defaultvalue="no"/>
    </condition>

    <condition name="branch"></condition>

    <condition name="canPayUpgrade">
      <string name="upgrade name" shortName="upgrade"/>
    </condition>

    <condition name="checkBaseHealth">
      <string name="BaseTeam" values="ownenemy"/>
      <string name="check health percentage" values="yesno" defaultvalue="yes"/>
      <string name="comparison" values="valuecompare" defaultvalue="equal" shortName="compare"/>
      <string name="value"/>
    </condition>

    <condition name="checkCharacterFlag">
      <string name="property" values="characterflags" defaultvalue="isUnderAnyEffect"/>
      <string name="condition" values="yesno" defaultvalue="yes"/>
      <string name="check on" values="targetself" defaultvalue="self"/>
    </condition>

    <condition name="checkCharacterValue">
      <string name="property" values="charactervaluesCheckable" defaultvalue="health"/>
      <string name="value"/>
      <string name="compare method" values="valuecompare" defaultvalue="equal" shortName="compare"/>
      <string name="check on" values="targetself" defaultvalue="self"/>
    </condition>

    <condition name="checkClass">
      <string name="check on" values="targetself" defaultvalue="self"/>
      <string name="class"/>
    </condition>

    <condition name="checkCounter">
      <string name="id"/>
      <string name="value"/>
      <string name="compare method" values="valuecompare" defaultvalue="equal" shortName="compare"/>
    </condition>

    <condition name="checkGameTime">
      <float name="time in seconds"/>
      <string name="compare method" values="valuecompare" defaultvalue="equal" shortName="compare"/>
    </condition>

    <condition name="checkMissionCounter">
      <string name="id"/>
      <string name="value"/>
      <string name="compare method" values="valuecompare" defaultvalue="equal" shortName="compare"/>
    </condition>

    <condition name="checkSkin">
      <string name="check on" values="targetself" defaultvalue="self"/>
      <string name="class"/>
      <string name="skinIdentifier"/>
    </condition>

    <condition name="checkTurretArea">
      <string name="minimum Count For Success"/>
      <string name="result counter"/>
      <string name="TurretLocations" values="TurretLocations" multiselect="true"/>
      <string name="TurretTeams" values="ownenemy" multiselect="true"/>
      <string name="Live Turrets Only" values="yesno" defaultvalue="yes"/>

      <string name="surroundingGroups" values="target receive groups" multiselect="true"/>
      <string name="surroundingTeams" values="ownenemy" multiselect="true"/>
      <string name="surroundingClasses"/>
      <string name="count characters out of combat" values="yesno" defaultvalue="yes" shortName="count out of combat"/>
      <string name="debugAreaColour" defaultvalue="153 255 76 51"/>
      <string name="check line of sight" values="yesno" defaultvalue="no"/>
      <string name="ignore invisibility" values="yesno" defaultvalue="no"/>
      <string name="never detect invisible targets without character collision" values="yesno" defaultvalue="no" shortName="ignr invis no cllsn"/>
    </condition>

    <condition name="checkTurretHealth">
      <string name="TurretLocation" values="TurretLocations"/>
      <string name="TurretTeam" values="ownenemy"/>
      <string name="check health percentage" values="yesno" defaultvalue="yes"/>
      <string name="comparison" values="valuecompare" defaultvalue="equal" shortName="compare"/>
      <string name="value"/>
    </condition>

    <condition name="compareBools">
      <string name="id1"/>
      <string name="id2"/>
    </condition>

    <condition name="compareCounters">
      <string name="counter1"/>
      <string name="comparison" values="valuecompare" defaultvalue="equal" shortName="compare"/>
      <string name="counter2"/>
    </condition>

    <condition name="compareMissionBools">
      <string name="id1"/>
      <string name="id2"/>
    </condition>

    <condition name="directionToEnemyBase">
      <string name="direction" values="forwardbackward" defaultvalue="FORWARD"/>
    </condition>

    <condition name="doesClassExist">
      <string name="teams" values="teams" multiselect="true"/>
      <string name="class"/>
    </condition>

    <condition name="getBoolEquals">
      <string name="id"/>
      <string name="value" values="yesno" defaultvalue="no"/>
    </condition>

    <condition name="getMissionBoolEquals">
      <string name="id"/>
      <string name="value" values="yesno" defaultvalue="no"/>
    </condition>

    <condition name="hasDestWaypoint"></condition>

    <condition name="hasTarget">
      <string name="condition" values="yesno" defaultvalue="yes"/>
    </condition>

    <condition name="hasUpgrade">
      <string name="class"/>
      <string name="team" values="teamswithnumbers" defaultvalue="OWN_TEAM"/>
      <string name="upgrade name" shortName="upgrade"/>
    </condition>

    <condition name="isAtDestWaypoint"></condition>

    <condition name="isButtonDown">
      <string name="button" values="buttons" defaultvalue="FACE_BOTTOM"/>
      <string name="actionButton" values="actionButtons" defaultvalue="ABT_NONE"/>
    </condition>

    <condition name="isCharacterInArea">
      <string name="groups" values="target receive groups" multiselect="true"/>
      <string name="teams" values="teams" multiselect="true"/>
      <string name="class"/>
      <string name="only check parent" values="yesno" defaultvalue="no"/>
      <string name="only check children" values="yesno" defaultvalue="no"/>
      <string name="count characters out of combat" values="yesno" defaultvalue="yes" shortName="count out of combat"/>
      <string name="condition" values="charactervaluesCheckable" defaultvalue="health"/>
      <string name="comparison" values="valuecompare" defaultvalue="greater or equal" shortName="compare"/>
      <string name="value"/>
      <string name="character minimum"/>
      <float name="xOffset"/>
      <float name="yOffset"/>
      <float name="width"/>
      <float name="height"/>
      <string name="horizontal alignment to character" values="alignmentToCharacterHorizontal" defaultvalue="Centre"/>
      <string name="vertical alignment to character" values="alignmentToCharacterVertical" defaultvalue="Centre"/>
      <string name="debugAreaColour" defaultvalue="153 255 76 51"/>
      <string name="check line of sight" values="yesno" defaultvalue="no"/>
      <string name="ignore invisibility" values="yesno" defaultvalue="no"/>
      <string name="never detect invisible targets without character collision" values="yesno" defaultvalue="no" shortName="ignr invis no cllsn"/>
    </condition>

    <condition name="isCustomMatch"/>

    <condition name="isFromTeam">
      <string name="team" values="teamswithnumbers" defaultvalue="OWN_TEAM"/>
      <string name="check on" values="targetself" defaultvalue="self"/>
    </condition>

    <condition name="isInArea">
      <string name="condition" values="yesno" defaultvalue="yes"/>
      <string name="collision groups" values="collison groups" multiselect="true"/>
      <string name="check green obstacles only" values="yesno" defaultvalue="no" shortName="green obstacles only"/>
      <string name="count characters out of combat" values="yesno" defaultvalue="yes" shortName="count out of combat"/>
      <string name="teams" values="teams" multiselect="true"/>
      <string name="areaName" defaultvalue=""/>
      <float name="xOffset"/>
      <float name="yOffset"/>
      <float name="width"/>
      <float name="height"/>
      <string name="horizontal alignment to character" values="alignmentToCharacterHorizontal" defaultvalue="Centre"/>
      <string name="vertical alignment to character" values="alignmentToCharacterVertical" defaultvalue="Centre"/>
      <string name="debugAreaColour" defaultvalue="255 255 255 51"/>
      <string name="check line of sight" values="yesno" defaultvalue="no"/>
      <string name="ignore invisibility" values="yesno" defaultvalue="no"/>
      <string name="never detect invisible targets without character collision" values="yesno" defaultvalue="no" shortName="ignr invis no cllsn"/>
    </condition>

    <condition name="isInNamedArea">
      <string name="area name"/>
      <string name="team" values="ownenemy" defaultvalue="OWN_TEAM"/>
      <string name="who" values="targetself" defaultvalue="self"/>
    </condition>

    <condition name="IsLevelButtonDown">
      <string name="buttons"/>
    </condition>

    <condition name="isMissionCompleted">
      <string name="mission"/>
    </condition>

    <condition name="isNextWaypointInArea">
      <float name="xOffset"/>
      <float name="yOffset"/>
      <float name="width"/>
      <float name="height"/>
      <string name="horizontal alignment to character" values="alignmentToCharacterHorizontal" defaultvalue="Centre"/>
      <string name="vertical alignment to character" values="alignmentToCharacterVertical" defaultvalue="Centre"/>
      <string name="debugAreaColour" defaultvalue="255 255 127 255"/>
    </condition>

    <condition name="isNextWaypointPosition">
      <string name="position" values="offsetposition" defaultvalue="back"/>
    </condition>

    <condition name="isOnCreepTurner">
      <string name="condition" values="yesno" defaultvalue="yes"/>
      <string name="direction" values="forwardbackward" defaultvalue="FORWARD"/>
    </condition>

    <condition name="isOnGround">
      <string name="condition" values="yesno" defaultvalue="yes"/>
      <string name="check on" values="targetself" defaultvalue="self"/>
    </condition>

    <condition name="isOnlineMatch"/>

    <condition name="isPickupAtWaypoint">
      <string name="name"/>
      <string name="team" values="ownenemy" defaultvalue="ENEMY_TEAM"/>
    </condition>

    <condition name="isPracticeMatch"/>

    <condition name="isShopOpen"/>

    <condition name="isSkillOnButtonAvailable">
      <string name="button" values="buttons" defaultvalue="FACE_BOTTOM"/>
    </condition>

    <condition name="isSlowWolfUnlocked"/>

    <condition name="isTargetInArea">
      <string name="condition" values="yesno" defaultvalue="yes"/>
      <float name="xOffset"/>
      <float name="yOffset"/>
      <float name="width"/>
      <float name="height"/>
      <string name="horizontal alignment to character" values="alignmentToCharacterHorizontal" defaultvalue="Centre"/>
      <string name="vertical alignment to character" values="alignmentToCharacterVertical" defaultvalue="Centre"/>
      <string name="debugAreaColour" defaultvalue="0 0 255 51"/>
      <string name="check line of sight" values="yesno" defaultvalue="no"/>
      <string name="ignore invisibility" values="yesno" defaultvalue="no"/>
      <string name="never detect invisible targets without character collision" values="yesno" defaultvalue="no" shortName="ignr invis no cllsn"/>
    </condition>

    <condition name="isTargetInSkillRange">
      <string name="condition" values="yesno" defaultvalue="yes"/>
      <string name="skillSettingsIdentifier"/>
      <string name="skillActionButton" values="actionButtons" defaultvalue="ABT_NONE"/>
      <string name="rangeFractionToSucceed" defaultvalue="1"/>
      <string name="debugAreaColour" defaultvalue="153 255 76 51"/>
      <string name="check line of sight" values="yesno" defaultvalue="no"/>
      <string name="ignore invisibility" values="yesno" defaultvalue="no"/>
      <string name="never detect invisible targets without character collision" values="yesno" defaultvalue="no" shortName="ignr invis no cllsn"/>
    </condition>

    <condition name="isTargetPosition">
      <string name="condition" values="yesno" defaultvalue="yes"/>
      <string name="target position" values="offsetposition" defaultvalue="back"/>
    </condition>

    <condition name="isTargetType">
      <string name="condition" values="yesno" defaultvalue="yes"/>
      <string name="target groups" values="target groups" multiselect="true"/>
    </condition>

    <condition name="isTurretInArea">
      <string name="teams" values="teams" multiselect="true"/>
      <string name="health comparison" values="valuecompare" defaultvalue="less"/>
      <string name="health"/>
      <float name="xOffset"/>
      <float name="yOffset"/>
      <float name="width"/>
      <float name="height"/>
      <string name="horizontal alignment to character" values="alignmentToCharacterHorizontal" defaultvalue="Centre"/>
      <string name="vertical alignment to character" values="alignmentToCharacterVertical" defaultvalue="Centre"/>
      <string name="debugAreaColour" defaultvalue="153 255 76 51"/>
      <string name="check line of sight" values="yesno" defaultvalue="no"/>



    </condition>

    <condition name="isTutorialMatch"/>

    <condition name="isUpgradeEnabled">
      <string name="condition" values="yesno" defaultvalue="yes"/>
      <string name="upgrade name" shortName="upgrade"/>
    </condition>

    <condition name="once"></condition>

    <condition name="onEffectivePrestigeLevel">
      <string name="compare method" values="valuecompare" defaultvalue="less or equal" shortName="compare"/>
      <string name="value"/>
    </condition>

    <condition name="onGameStarted"></condition>

    <condition name="onGoldCollected">
      <string name="collector" values="missionTarget" defaultvalue="SELF"/>
      <string name="team" values="teamswithnumbers" defaultvalue="OWN_TEAM"/>
      <string name="class"/>
      <string name="type" values="goldPickupType" defaultvalue="ANY"/>
      <string name="compare method" values="valuecompare" defaultvalue="greater" shortName="compare"/>
      <string name="value" defaultvalue="0"/>
      <string name="store in"/>
    </condition>

    <condition name="onGoldSpent">
      <string name="spender" values="missionTarget" defaultvalue="SELF"/>
      <string name="team" values="teamswithnumbers" defaultvalue="OWN_TEAM"/>
      <string name="class"/>
      <string name="compare method" values="valuecompare" defaultvalue="greater" shortName="compare"/>
      <string name="value" defaultvalue="0"/>
      <string name="store in"/>
    </condition>

    <condition name="onKill">
      <string name="killer" values="missionTarget" defaultvalue="SELF"/>
      <string name="killer team" values="teamswithnumbers" defaultvalue="OWN_TEAM"/>
      <string name="killer class"/>
      <string name="killer skin"/>
      <string name="victim" values="missionTarget" defaultvalue="HERO"/>
      <string name="victim team" values="teamswithnumbers" defaultvalue="ENEMY_TEAM"/>
      <string name="victim class"/>
      <string name="victim skin"/>
      <string name="compare method" values="valuecompare" defaultvalue="greater" shortName="compare"/>
      <string name="value" defaultvalue="0"/>
      <string name="store in"/>
    </condition>

    <condition name="onWin">
      <string name="team" values="teamswithnumbers" defaultvalue="OWN_TEAM"/>
    </condition>

    <condition name="random">
      <string name="amount"/>
    </condition>

    <condition name="receivedMessage">
      <string name="id"/>
    </condition>

    <condition name="receivedPing">
      <string name="ping" values="ping" defaultvalue="ATTACK"/>
    </condition>

    <condition name="receivedTarget">
      <string name="if of group" values="target groups" multiselect="true"/>
    </condition>

    <condition name="skin">
      <float name="skinIndex"/>
      <string name="condition" values="yesno" defaultvalue="yes"/>
      <string name="check on" values="targetself" defaultvalue="self"/>
    </condition>

    <condition name="timePassed">
      <string name="timeunit" values="timeunits" defaultvalue="seconds"/>
      <float name="time"/>
    </condition>

    <condition name="timer">
      <string name="timeunit" values="timeunits" defaultvalue="seconds"/>
      <float name="time"/>
      <string name="execute first time" values="yesno" defaultvalue="no"/>
    </condition>
  </condition>

  <logic>
    <logic name="orblock" useNameAttributeAsTagName="1" displayName="Or">
    </logic>
    <logic name="andblock" useNameAttributeAsTagName="1" displayName="And">
    </logic>
  </logic>

  <other>
    <other name="sequence" useNameAttributeAsTagName="1" displayName="Sequence">
      <string name="Is blocking" values="yesno" defaultvalue="no"/>
    </other>
    <root name="root" hidden="1" useNameAttributeAsTagName="1" preventInteraction="1">
    </root>
  </other>

</blockdefinitions>
