[MapInitializationEvent]
title = "Map initialization"
description = "Map initialization"
comment = "The event occurred while reading the map."
category = TC_NOTHING
[[.args]]
type = nothing

[YDWESyStemAnyUnitDamagedRegistTrigger]
title = "Any unit damage event"
description = "Any unit receives damage"
comment = "If there is an action that causes damage to the unit in the trigger action, it will cause an infinite loop. It is best to add condition judgment or close the current trigger before the damage. Not recommended for novices."
category = TC_YDET

[YDWESyStemItemUnmovableRegistTrigger]
title = "Any unit moving item event"
description = "Any unit moves items in the inventory"
comment = "If there is an action of moving the item in the trigger action, it will cause an endless loop. It is best to put the action of moving the item in another trigger or close the current trigger before moving the item."
category = TC_YDET

[YDWESyStemItemCombineRegistTrigger]
title = "Any unit synthetic item event"
description = "Any unit can be combined into an item"
comment = "It is used to respond to the item synthesis system. When an item is synthesized, it can be captured with the 'last synthesized item'; the unit that synthesized the item can be captured with the 'trigger unit'"
category = TC_YDET

[YDWESyStemAbilityCastingOverRegistTrigger]
title = "Any unit releases special skills and ends"
description = "Any unit releases special skills ${special skills} ends"
comment = "Used to respond to special skills provided by YDWE, such as jumping, circling, hooking, etc. You can use the ‘unit that ended the casting of special skills’ to capture the skill unit"
category = TC_YDET
[[.args]]
type = abilevent
default = "abileventA"

[TriggerRegisterUnitEvent]
title = "Designated unit event"
description = "${Designated unit} ${event}"
comment = ""
category = TC_UNIT
[[.args]]
type = unit
[[.args]]
type = unitevent
default = "UnitEventDeath"

[TriggerRegisterPlayerUnitEventSimple]
title = "Player unit events"
description = "${Player} unit ${Event}"
comment = ""
category = TC_UNIT
[[.args]]
type = player
default = "Player00"
[[.args]]
type = playerunitevent
default = "PlayerUnitEventDeath"

[TriggerRegisterAnyUnitEventBJ]
title = "Any unit event"
description = "Any unit ${Event}"
comment = ""
category = TC_UNIT
[[.args]]
type = playerunitevent
default = "PlayerUnitEventDeath"

[TriggerRegisterEnterRectSimple]
title = "Unit enters a rectangular area"
description = "Any unit enters ${rectangular area}"
comment = "Use'Event Response-Entered Units' to respond to the units entering the area. In fact, it is to create irregular areas and register units to enter the irregular area events, so changing the rectangular area afterwards will not have any impact on the event."
category = TC_UNIT
[[.args]]
type = rect

[TriggerRegisterLeaveRectSimple]
title = "Unit leaves the rectangular area"
description = "Any unit leaves ${rectangular area}"
comment = "Use'Event Response-Leaving Units' to respond to the units that left the area. In fact, create an irregular area and register the unit to leave the irregular area event, so subsequent changes to the rectangular area will not have any impact on the event."
category = TC_UNIT
[[.args]]
type = rect

[TriggerRegisterEnterRegionSimple]
title = "Unit enters irregular area [R]"
description = "Any unit enters ${area}"
comment = "Use'Event Response- Entered unit' to respond to the unit entering the area. This event needs to be added for other triggers."
category = TC_UNIT
[[.args]]
type = region

[TriggerRegisterLeaveRegionSimple]
title = "Unit leaves irregular area [R]"
description = "Any unit leaves ${area}"
comment = "Use'Event Response- 'Leaving unit' responds to the unit leaving the area. This event needs to be added for other triggers."
category = TC_UNIT
[[.args]]
type = region

[TriggerRegisterEnterRegion]
title = "Unit enters irregular area(Specify conditions) [R]"
description = "Unit enters ${area} and meets ${conditions}"
comment = "Use'Event Response- Entered unit' to respond to the unit entering the area. This event needs to be added for other triggers."
category = TC_UNIT
[[.args]]
type = region
[[.args]]
type = boolexpr
default = "BoolExprNull"

[TriggerRegisterLeaveRegion]
title = "Unit leaves irregular area(Specify conditions) [R]"
description = "Unit leaves ${area} and meets ${conditions}"
comment = "Use'Event Response- 'Leaving unit' responds to the unit leaving the area. This event needs to be added for other triggers."
category = TC_UNIT
[[.args]]
type = region
[[.args]]
type = boolexpr
default = "BoolExprNull"

[TriggerRegisterUnitInRangeSimple]
title = "Enter the range of the specified unit"
description = "Any unit enters ${range} within the range centered on ${Unit}"
comment = "Get the unit that enters the range through'Event Response-Trigger Unit'."
category = TC_UNIT
[[.args]]
type = real
default = "0"
[[.args]]
type = unit

[TriggerRegisterUnitLifeEvent]
title = "Health changes"
description = "The life value of ${specified unit} becomes ${Operation} ${Value}"
comment = "The event is triggered when it changes from invalid to valid. Note: The reference value is determined to be a constant when the event is registered and will not change."
category = TC_UNIT
[[.args]]
type = unit
[[.args]]
type = limitop
default = "LimitOpLessThan"
[[.args]]
type = real
default = "50"

[TriggerRegisterUnitManaEvent]
title = "Mana changes"
description = "The mana value of ${specified unit} becomes ${Operation} ${Value}"
comment = "The event is triggered when it changes from invalid to valid. Note: The reference value is determined to be a constant when the event is registered and will not change."
category = TC_UNIT
[[.args]]
type = unit
[[.args]]
type = limitop
default = "LimitOpLessThan"
[[.args]]
type = real
default = "50"

[TriggerRegisterDialogEventBJ]
title = "Dialog is clicked"
description = "${Dialog} is clicked"
comment = "Operate the dialog box in the event through'Event Response-Clicked Dialog'."
script_name = TriggerRegisterDialogEvent
category = TC_DIALOG
[[.args]]
type = dialog

[TriggerRegisterDialogButtonEvent]
title = "Dialog button is clicked [R]"
description = "${Dialog button} is clicked"
comment = "The specified dialog button is clicked, this event generally needs to be added for other triggers."
category = TC_DIALOG
[[.args]]
type = button

[TriggerRegisterDeathEvent]
title = "Destructible death"
description = "${Destructible} death"
comment = "Use'Event Response- 'Destructible' to get dead objects."
category = TC_DESTRUCT
[[.args]]
type = destructable

[TriggerRegisterDestDeathInRegionEvent]
title = "Destructible objects die in the area (rectangular area)"
description = "Destructible objects die within ${rectangular area}"
comment = "By default, this event can only monitor up to 64 destructible objects. You can use'set bj_destInRegionDiesCount' to set this value. It is not recommended for novices to use this trigger."
category = TC_DESTRUCT
[[.args]]
type = rect

[TriggerRegisterTrackableHitEvent]
title = "Mouse click traceable [R]"
description = "Mouse click ${traceable}"
comment = ""
category = TC_TRACKABLE
[[.args]]
type = trackable

[TriggerRegisterTrackableTrackEvent]
title = "Move the mouse to the tracked object [R]"
description = "Mouse move to ${traceable}"
comment = ""
category = TC_TRACKABLE
[[.args]]
type = trackable

[TriggerRegisterTimerEventSingle]
title = "Game timing (single time)"
description = "When the game elapses ${Time} seconds"
comment = "Start timing from the moment the event began."
category = TC_TIME
[[.args]]
type = real
default = "5"
min = 0

[TriggerRegisterTimerEventPeriodic]
title = "Game timing (loop)"
description = "Whenever the game elapses ${Time} seconds"
comment = "Start timing from the moment the event starts, and restart the timing until the timing is over."
category = TC_TIME
[[.args]]
type = real
default = "2"
min = 0

[TriggerRegisterTimerExpireEventBJ]
title = "Timer expired"
description = "${Timer} expired"
comment = "The event is triggered when the timer reaches 0. The cycle timer can trigger the event multiple times. Use'Event Response- expired timer' to get the timer."
script_name = TriggerRegisterTimerExpireEvent
category = TC_TIME
[[.args]]
type = timer

[TriggerRegisterPlayerChatEvent]
title = "Enter chat information"
description = "${Player} input ${Text}, information filtering method ${Match Type}"
comment = "The event ID is(096)"
category = TC_PLAYER
[[.args]]
type = player
default = "Player00"
[[.args]]
type = string
[[.args]]
type = chatmatchtype
default = "ChatMatchTypeExact"

[TriggerRegisterPlayerEventEndCinematic]
title = "Press Esc"
description = "${Player} press Esc (skip movie)"
comment = "This event is triggered when the player presses the'Escape' key (maybe the player wants to skip the currently playing movie)."
category = TC_PLAYER
[[.args]]
type = player
default = "Player00"

[TriggerRegisterPlayerSelectionEventBJ]
title = "Select unit event"
description = "${Player} ${Selects/Deselects} an unit"
comment = "The unit selected by the player through the'Event Response-Trigger Unit' operation."
category = TC_PLAYER
[[.args]]
type = player
default = "Player00"
[[.args]]
type = seldeseloption
default = "SelDeselOptionSel"

[TriggerRegisterPlayerKeyEventBJ]
title = "Keyboard events"
description = "${Player} ${Presses/Releases} ${Key} "
comment = "Currently the game only supports'Up/Down/Left/Right'Four direction keys."
category = TC_PLAYER
[[.args]]
type = player
default = "Player00"
[[.args]]
type = keyeventtype
default = "KeyEventTypeDepress"
[[.args]]
type = keyeventkey
default = "KeyEventKeyLeft"

[TriggerRegisterPlayerStateEvent]
title = "Property event"
description = "${Player} ${Property} Property ${Operation} ${value}"
comment = ""
category = TC_PLAYER
[[.args]]
type = player
default = "Player00"
[[.args]]
type = playerstate
default = "PlayerStateGold"
[[.args]]
type = limitop
default = "LimitOpGreaterThanOrEqual"
[[.args]]
type = real
default = "1000"

[TriggerRegisterPlayerEventAllianceChanged]
title = "Alliance state event (any state)"
description = "${Player} Change alliance status setting"
comment = ""
category = TC_PLAYER
[[.args]]
type = player
default = "Player00"

[TriggerRegisterPlayerAllianceChange]
title = "Alliance status change (designated items)"
description = "${Player} change ${Alliance Type} setting"
comment = "When changing the item to [Shared Unit], (Trigger Player) will not take effect. At this time, it is not recommended to use the [Any Player] event."
category = TC_PLAYER
[[.args]]
type = player
default = "Player00"
[[.args]]
type = alliancetype
default = "AllianceTypePassive"

[TriggerRegisterPlayerEventVictory]
title = "Game victory"
description = "${Player} Leave the game after victory"
comment = ""
category = TC_PLAYER
[[.args]]
type = player
default = "Player00"

[TriggerRegisterPlayerEventDefeat]
title = "game over"
description = "${Player} Leave the game after failure"
comment = ""
category = TC_PLAYER
[[.args]]
type = player
default = "Player00"

[TriggerRegisterPlayerEventLeave]
title = "Leave the game"
description = "${Player} Leave the game"
comment = "This event starts when the player leaves the game."
category = TC_PLAYER
[[.args]]
type = player
default = "Player00"

[TriggerRegisterItemDeathEvent]
title = "Item is destroyed [R]"
description = "${Item} is destroyed "
comment = ""
script_name = TriggerRegisterDeathEvent
category = TC_ITEM
[[.args]]
type = item

[TriggerRegisterGameStateEventTimeOfDay]
title = "Game time event"
description = "When game time ${Operation} ${time}"
comment = "The game time adopts a 24-hour system. It starts at 6:00 AM and 18:00 PM."
category = TC_GAME
[[.args]]
type = limitop
default = "LimitOpEqual"
[[.args]]
type = real
default = "12"
min = 0
max = 24

[TriggerRegisterVariableEvent]
title = "Real variable event"
description = "${Variable} value ${Operation} ${value}"
comment = "This event only applies to variables of real number type."
category = TC_GAME
[[.args]]
type = VarAsString_Real
[[.args]]
type = limitop
default = "LimitOpEqual"
[[.args]]
type = real
default = "0"

[TriggerRegisterGameLoadedEventBJ]
title = "Game reading"
description = "Read game save"
comment = "When the game is read, the event takes effect."
category = TC_GAME
[[.args]]
type = nothing

[TriggerRegisterGameSavedEventBJ]
title = "Game archive"
description = "Save game archive"
comment = "This event takes effect before switching to the save game interface."
category = TC_GAME
[[.args]]
type = nothing

[TriggerRegisterShowSkillEventBJ]
title = "Hero skill button is clicked"
description = "Hero skill button is clicked"
comment = ""
category = TC_GAME
[[.args]]
type = nothing

[TriggerRegisterBuildSubmenuEventBJ]
title = "Build building button is clicked"
description = "Build building button is clicked"
comment = ""
category = TC_GAME
[[.args]]
type = nothing

[TriggerRegisterGameEvent]
title = "Game event"
description = "The game will end after ${Event Type}"
comment = "This event only appears in automatic matching games on Battle.net."
category = TC_GAME
[[.args]]
type = gameevent
default = "GameEventTourneyNow"
