[YDWERegionMultiple]
title = "Storage Box"
description = "-------- ${Comment text} --------"
comment = ""
category = TC_COMMENT
[[.args]]
type = scriptcode


[YDWETestDebug]
title = "[YDWE] debugging"
description = "${Debug text 1} + ${Debug text 2}"
comment = "Display debugging information"
category = TC_YDBF
[[.args]]
type = string
[[.args]]
type = string


[YDWESetAnyTypeLocalVariable]
title = "Variable -- Set"
description = "[${type}] loc_${variable name} = ${null}"
comment = "Set local variables, you can specify the variable type. Under 1.24, the variable cannot be directly set to null (null)"
category = TC_YDBF
[[.args]]
type = typename
[[.args]]
type = scriptcode
[[.args]]
type = Null

[YDWESetAnyTypeLocalArray]
title = "Variable -- Set array"
description = "[${type}] loc_${variable name}[${index}] = ${null}"
comment = "Set the local variable array, note: the array cannot penetrate the sky guard timer and the sky guard trigger"
category = TC_YDBF
[[.args]]
type = typename
[[.args]]
type = scriptcode
[[.args]]
type = integer
default = 0
[[.args]]
type = Null

[YDWEForLoopLocVarMultiple]
title = "loop_"
description = "loop loop_${Loop variable name} from ${Start} to ${end}"
comment = ""
category = TC_YDBF
[[.args]]
type = scriptcode
[[.args]]
type = integer
default = "1"
[[.args]]
type = integer
default = "10"

[YDWETimerStartMultiple]
title = "Timer   -- run"
description = "run ${Timer}，Period: ${time} seconds, mode: ${mode}"
comment = "Let the timer run multiple actions. Waiting cannot be used within the timer."
category = TC_YDBF
[[.args]]
type = timer
default = "CreateTimer"
[[.args]]
type = real
default = "0.03"
min = 0
[[.args]]
type = periodicoption
default = "PeriodicOptionOneTime"

[YDWETimerStartFlush]
title = "Timer   -- Clear"
description = "Clear the current anti-sky timer"
comment = "Delete the current anti-sky timer and clear the cache or hash table."
category = TC_YDBF
[[.args]]
type = nothing

[YDWERegisterTriggerMultiple]
title = "trigger   -- registration"
description = "registration ${trigger}"
comment = "Waiting cannot be used in triggers."
category = TC_YDBF
[[.args]]
type = trigger
default = "CreateTrigger"

[YDWERegisterTriggerFlush]
title = "trigger   -- Clear"
description = "Clear current guards trigger"
comment = "Delete the current guards trigger and clear the cache or hash table."
category = TC_YDBF
[[.args]]
type = nothing

[YDWEExecuteTriggerMultiple]
title = "trigger   -- run"
description = "run ${trigger}， ${condition}"
comment = ""
category = TC_YDBF
[[.args]]
type = trigger
[[.args]]
type = tirggerexecute
default = "tirggerexecute_notcondition"

[YDWEEnumUnitsInRangeMultiple]
title = "Select unit - circle range"
description = "Select the unit within the circle with (${coordinate X}, ${coordinate Y}) as the center and ${radius} as the radius to do the action"
comment = "Select units in the range to perform actions"
category = TC_YDBF
[[.args]]
type = real
default = "0"
[[.args]]
type = real
default = "0"
[[.args]]
type = real
default = "512"

[YDWESaveAnyTypeDataByUserData]
title = "Custom value -- Set"
description = "Set the ${attribute} of [${type}] ${null} to [${type}]${null}"
comment = "Set a custom attribute of a certain data. Under 1.24, you cannot directly set the custom attribute to null, you can use it to clear it."
category = TC_YDBF
[[.args]]
type = typename
[[.args]]
type = Null
[[.args]]
type = scriptcode
[[.args]]
type = typename
[[.args]]
type = Null

[YDWEFlushAllByUserData]
title = "Custom value -- Clear all"
description = "Clear all custom properties of [${type}] ${null}."
comment = "Clear all custom attributes of a certain data."
category = TC_YDBF
[[.args]]
type = typename
[[.args]]
type = Null

[YDWEFlushAnyTypeDataByUserData]
title = "Custom value -- Clear"
description = "Clear [${Type}] ${null} of [${Type}] ${Attribute}"
comment = "Clear a custom attribute of a certain data."
category = TC_YDBF
[[.args]]
type = typename
[[.args]]
type = Null
[[.args]]
type = typename
[[.args]]
type = scriptcode

[YDWEActivateTrigger]
title = "Activation trigger"
description = "Activation ${Trigger} ( ${On/Off} Compatibility mode )"
comment = "Do not activate a trigger multiple times. Do not activate triggers that have not turned on hibernation. Turning on compatibility mode will slightly affect efficiency. If you turn off compatibility mode, please ensure that the action is after the trigger that needs to be activated, otherwise there will be syntax errors."
category = TC_TRIGGER
[[.args]]
type = trigger
[[.args]]
type = onoffoption
default = "OnOffOn"

[YDWEWaitForLocalVariable]
title = "Wait (local variables only)[YDWE]"
description = "Wait ${Time} seconds (for local variables only)"
comment = "Use the UI of the Guards series, no need to use it."
category = TC_YDHIDE
[[.args]]
type = real
default = "2"
min = 0
