[YDWECustomScriptCode]
title = "Custom code"
description = "${Jass code}"
comment = "You can enter a line of code wherever there is a return value. For example: kill (custom code: GetTriggerUnit())."
category = TC_YDBF
returns = AnyReturnType
[[.args]]
type = scriptcode

[YDWEGetAnyTypeLocalVariable]
title = "variable -- Read"
description = "loc_${variable name}"
comment = "Any type of local variable can be obtained."
category = TC_YDBF
returns = AnyReturnType
[[.args]]
type = scriptcode

[YDWEGetAnyTypeLocalArray]
title = "variable -- Read array"
description = "loc_${variable name}[${index}]"
comment = "Any type of local variable array can be obtained."
category = TC_YDBF
returns = AnyReturnType
[[.args]]
type = scriptcode
[[.args]]
type = integer
default = 0

[YDWEForLoopLocVarIndex]
title = "loop -- Read(Loop variable)"
description = "loop_${variable name}"
comment = "Used to get the number of loops in the current loop, it is a real Jass local variable."
category = TC_YDBF
returns = integer
[[.args]]
type = scriptcode

[YDWELoadAnyTypeDataByUserData]
title = "Custom value -- Read"
description = "[${type}] ${null} ${Attributes}"
comment = "Get a custom value from some data, such as [unit] Demon Hunter's hit rate."
category = TC_YDBF
returns = AnyReturnType
[[.args]]
type = typename
[[.args]]
type = Null
[[.args]]
type = scriptcode

[YDWEHaveSavedAnyTypeDataByUserData]
title = "Custom value -- it exist or not"
description = "[${Type}] ${null} has [${type}] ${attribute}"
comment = "Determine whether there is a custom value for a certain data, such as [Unit] Demon Hunter has [Item] Holy Sword."
category = TC_YDBF
returns = boolean
[[.args]]
type = typename
[[.args]]
type = Null
[[.args]]
type = typename
[[.args]]
type = scriptcode
