[OperatorCompareBoolean]
title = "Boolean expression"
description = "${expression A} ${Operator} ${expression B}"
comment = ""
category = TC_CONDITION
[[.args]]
type = boolean
default = "IsUnitType"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = boolean
default = "true"

["             "]
title = "Custom code"
description = "code: ${Jass code}"
comment = "Local variables cannot be entered in the conditions. If necessary, global variables or GetTriggerUnit() can be used instead"
category = TC_YDHIDE
[[.args]]
type = scriptcode

[OperatorCompareTrigger]
title = "trigger"
description = "${trigger} ${Operator} ${trigger}"
comment = ""
category = TC_CONDITION
[[.args]]
type = trigger
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = trigger

[OperatorCompareUnit]
title = "unit"
description = "${Value} ${Operator} ${unit}"
comment = ""
category = TC_CONDITION
[[.args]]
type = unit
default = "GetTriggerUnit"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = unit

[OperatorCompareUnitCode]
title = "unit type"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = unitcode
default = "GetUnitTypeId"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = unitcode
default = "hfoo"

[OperatorCompareTerrainType]
title = "terrain"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = terraintype
default = "GetTerrainTypeBJ"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = terraintype
default = "TerrainTypeLdrt"

[OperatorComparePoint]
title = "point [R]"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = location
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = location

[OperatorCompareDialog]
title = "Dialog box [R]"
description = "${Dialog box} ${Operator} ${Dialog box}"
comment = ""
category = TC_CONDITION
[[.args]]
type = dialog
default = "GetClickedDialogBJ"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = dialog

[OperatorCompareButton]
title = "Dialog button"
description = "${Dialog button} ${Operator} ${Dialog button}"
comment = ""
category = TC_CONDITION
[[.args]]
type = button
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = button

[OperatorCompareMeleeDifficulty]
title = "Battle AI difficulty"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = aidifficulty
default = "GetAIDifficulty"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = aidifficulty
default = "AIDifficultyNormal"

[OperatorCompareAbilityId]
title = "skill"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = abilcode
default = "GetSpellAbilityId"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = abilcode
default = "AUan"

[OperatorCompareTimer]
title = "timer [R]"
description = "${timer} ${Operator} ${timer}"
comment = ""
category = TC_CONDITION
[[.args]]
type = timer
default = "GetExpiredTimer"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = timer

[OperatorCompareTechCode]
title = "Scientific and technological research"
description = "${Value} ${Operator} ${Technology}"
comment = ""
category = TC_CONDITION
[[.args]]
type = techcode
default = "GetResearched"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = techcode

[OperatorCompareDestructible]
title = "destructable"
description = "${destructable} ${Operator} ${destructable}"
comment = ""
category = TC_CONDITION
[[.args]]
type = destructable
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = destructable

[OperatorCompareDestructableCode]
title = "Destructible type"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = destructablecode
default = "GetDestructableTypeId"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = destructablecode
default = "LTlt"

[OperatorCompareTrackable]
title = "trackable [R]"
description = "${value} ${Operator} ${value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = trackable
default = "GetTriggeringTrackable"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = trackable
default = "GetTriggeringTrackable"

[OperatorCompareOrderCode]
title = "order ID"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = ordercode
default = "GetIssuedOrderIdBJ"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = ordercode
default = "String2OrderIdBJ"

[OperatorCompareBuffId]
title = "buff effect"
description = "${buff effect} ${Operator} ${buff effect}"
comment = ""
category = TC_CONDITION
[[.args]]
type = buffcode
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = buffcode

[OperatorCompareRegion]
title = "Area (rectangle) [R]"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = rect
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = rect

[OperatorCompareRegionR]
title = "Area (irregular) [R]"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = region
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = region

[OperatorCompareReal]
title = "Real number"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = real
default = "10"
[[.args]]
type = ComparisonOperator
default = "OperatorGreaterEq"
[[.args]]
type = real
default = "10"

[OperatorCompareDegree]
title = "angle"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = degree
default = "10"
[[.args]]
type = ComparisonOperator
default = "OperatorGreaterEq"
[[.args]]
type = degree
default = "10"

[OperatorCompareRadian]
title = "radian"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = radian
default = "10"
[[.args]]
type = ComparisonOperator
default = "OperatorGreaterEq"
[[.args]]
type = radian
default = "10"

[OperatorComparePlayer]
title = "player"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = player
default = "GetOwningPlayer"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = player
default = "Player00"

[OperatorComparePlayerColor]
title = "player color"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = playercolor
default = "GetPlayerColor"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = playercolor
default = "Color00"

[OperatorComparePlayerControl]
title = "Player controller"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = mapcontrol
default = "GetPlayerController"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = mapcontrol
default = "MapControlUser"

[OperatorComparePlayerSlotStatus]
title = "Player game state"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = playerslotstate
default = "GetPlayerSlotState"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = playerslotstate
default = "PlayerSlotStatePlaying"

[OperatorCompareItem]
title = "item"
description = "${item} ${Operator} ${item}"
comment = ""
category = TC_CONDITION
[[.args]]
type = item
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = item

[OperatorCompareItemType]
title = "Item classification"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = itemtype
default = "GetItemType"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = itemtype
default = "ItemTypePowerup"

[OperatorCompareItemCode]
title = "Item type"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = itemcode
default = "GetItemTypeId"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = itemcode
default = "texp"

[OperatorCompareHeroSkill]
title = "learning skills"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = heroskillcode
default = "GetLearnedSkillBJ"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = heroskillcode
default = "HeroSkillBlizzard"

[OperatorCompareGameDifficulty]
title = "Game difficulty"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = gamedifficulty
default = "GetGameDifficulty"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = gamedifficulty
default = "GameDifficultyNormal"

[OperatorCompareGameSpeed]
title = "Game speed"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = gamespeed
default = "GetGameSpeed"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = gamespeed
default = "GameSpeedNormal"

[OperatorCompareInteger]
title = "Integer"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = integer
default = "0"
[[.args]]
type = ComparisonOperator
default = "OperatorEqual"
[[.args]]
type = integer
default = "0"

[OperatorCompareRace]
title = "race"
description = "${Value} ${Operator} ${Value}"
comment = ""
category = TC_CONDITION
[[.args]]
type = race
default = "GetPlayerRace"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = race
default = "RaceHuman"

[OperatorCompareString]
title = "string"
description = "${Value} ${Operator} ${string}"
comment = ""
category = TC_CONDITION
[[.args]]
type = string
default = "GetEventPlayerChatString"
[[.args]]
type = EqualNotEqualOperator
default = "OperatorEqualENE"
[[.args]]
type = string

[GetBooleanAnd]
title = "And"
description = "${condition 1} and ${condition 2}"
comment = "Conditions 1 and 2 are both true."
category = TC_CONDITION
[[.args]]
type = boolcall
[[.args]]
type = boolcall

[GetBooleanOr]
title = "Or"
description = "${condition 1} or ${condition 2}"
comment = "Conditions 1 and 2 are arbitrarily true."
category = TC_CONDITION
[[.args]]
type = boolcall
[[.args]]
type = boolcall

[AndMultiple]
title = "And, Multiple conditions"
description = "And - All conditions are met"
comment = "The conditions added with this function must be under the subject."
category = TC_CONDITION
[[.args]]
type = nothing

[OrMultiple]
title = "Or, Multiple conditions"
description = "Or - Arbitrary conditions are met"
comment = "The conditions added with this function must be under the subject."
category = TC_CONDITION
[[.args]]
type = nothing
