[YDWEPlatformIsInPlatform]
title = "Basic-Map on 11 platforms [JAPI]"
description = "The map is currently running on 11 platforms"
comment = "Determine whether the map is on the 11 platform; this function can make differentiated operations based on the platform where the map is located. Special note: This operation contains waiting."
category = TC_YYPT
returns = boolean

[YDWEIsEventPhysicalDamage]
title = "It is physical damage [JAPI]"
description = "The damage suffered by the unit is physical damage"
comment = "Responding to'damaged' unit events, cannot be used after waiting"
category = TC_EVENTRESPONSE
returns = boolean

[YDWEIsEventAttackDamage]
title = "It is attack damage [JAPI]"
description = "The damage suffered by the unit is attack damage"
comment = "Responding to'damaged' unit events, cannot be used after waiting"
category = TC_EVENTRESPONSE
returns = boolean

[YDWEIsEventRangedDamage]
title = "It is long-range damage [JAPI]"
description = "The damage suffered by the unit is long-range damage"
comment = "Responding to'damaged' unit events, cannot be used after waiting"
category = TC_EVENTRESPONSE
returns = boolean

[YDWEIsEventDamageType]
title = "Damage type [JAPI]"
description = "The damage type of the unit's damage is ${damage type}"
comment = "Responding to'damaged' unit events, cannot be used after waiting"
category = TC_EVENTRESPONSE
returns = boolean
[[.args]]
type = damagetype
default = "DamageTypeNormal"

[YDWEIsEventWeaponType]
title = "Weapon type [JAPI]"
description = "The weapon type the unit suffered is ${weapon type}"
comment = "Responding to'damaged' unit events, cannot be used after waiting"
category = TC_EVENTRESPONSE
returns = boolean
[[.args]]
type = weapontype
default = "WEAPON_TYPE_WHOKNOWS"

[YDWEIsEventAttackType]
title = "Attack type [JAPI]"
description = "The attack type of the unit's damage is ${attack type}"
comment = "Responding to'damaged' unit events, cannot be used after waiting"
category = TC_EVENTRESPONSE
returns = boolean
[[.args]]
type = attacktype
default = "AttackTypeNormal"

[YDWEGetObjectPropertyInteger]
title = "Object attributes (integer) [JAPI]"
description = "[${Type}]${property name} of ${object}"
comment = "The attribute name is the English name seen after pressing Ctrl+D in the object editor"
category = TC_UNIT
use_in_event = 0
returns = integer
[[.args]]
type = objecttype
default = "objecttype00_abilcode"
[[.args]]
type = Null
default = "AHhb"
[[.args]]
type = string
default = "\"levels\""

[YDWEGetObjectPropertyReal]
title = "Object attributes (real numbers) [JAPI]"
description = "[${Type}]${property name} of ${object}"
comment = "The attribute name is the English name seen after pressing Ctrl+D in the object editor"
category = TC_UNIT
use_in_event = 0
returns = real
[[.args]]
type = objecttype
default = "objecttype00_abilcode"
[[.args]]
type = Null
default = "AHhb"
[[.args]]
type = string
default = "\"Rng1\""

[YDWEGetObjectPropertyString]
title = "Object attributes (string) [JAPI]"
description = "[${Type}]${property name} of ${object}"
comment = "The attribute name is the English name seen after pressing Ctrl+D in the object editor"
category = TC_UNIT
use_in_event = 0
returns = string
[[.args]]
type = objecttype
default = "objecttype00_abilcode"
[[.args]]
type = Null
default = "AHhb"
[[.args]]
type = string
default = "\"Name\""

[YDWERecordGetI]
title = "11RPG Archive-Get [JAPI]"
description = "11RPG Archive-Read 〖${data name}〗 in ${player}"
comment = "To obtain data from the player's 11RPG archive, you need to fill in the correct data name."
category = TC_YYPT
returns = integer
[[.args]]
type = player
default = "Player00"
[[.args]]
type = string
default = "EverguoIsHandsome"

[YDWERPGGetKey]
title = "Points-read user points [JAPI]"
description = "Read 〖${point item name}〗 in ${player} points"
comment = "To query and obtain a certain point item data from 11RPG points, you need to fill in the correct point item name."
category = TC_YYPT
returns = integer
[[.args]]
type = player
default = "Player00"
[[.args]]
type = string
default = "EverguoIsHandsome"

[YDWERPGBillingGetStatus]
title = "Item-Number of read status (time item) [JAPI]"
description = "Read the number of states [${state name}] in ${player}"
category = TC_YYPT
returns = integer
[[.args]]
type = player
default = "Player00"
[[.args]]
type = string
default = "EverguoIsHandsome"

[YDWERPGBillingGetItem]
title = "Props-read the number of props (time type props) [JAPI]"
description = "Read the number of items [${item name}] in ${player}"
category = TC_YYPT
returns = integer
[[.args]]
type = player
default = "Player00"
[[.args]]
type = string
default = "EverguoIsHandsome"

[YDWERPGBillingHasStatus]
title = "Props-existence status (time props) [JAPI]"
description = "Query whether there is a state in ${player}〖${state name}〗"
category = TC_YYPT
returns = boolean
[[.args]]
type = player
default = "Player00"
[[.args]]
type = string
default = "EverguoIsHandsome"

[YDWERPGBillingHasItem]
title = "Props-Existing props (number props) [JAPI]"
description = "Query whether an item exists in ${player}〖${item name}〗"
category = TC_YYPT
returns = boolean
[[.args]]
type = player
default = "Player00"
[[.args]]
type = string
default = "EverguoIsHandsome"

[YDWEGetUnitAbilityState]
title = "Skill attributes [JAPI]"
description = "${unit} ${skills} ${status}"
comment = ""
category = TC_UNIT
use_in_event = 0
returns = real
[[.args]]
type = unit
default = "GetTriggerUnit"
[[.args]]
type = abilcode
[[.args]]
type = AbilityState
default = "ABILITY_STATE_COOLDOWN"

[YDWEGetUnitAbilityDataInteger]
title = "Skill data (integer) [JAPI]"
description = "${unit}'s ${skill} ${level} level ${data}"
comment = ""
category = TC_UNIT
use_in_event = 0
returns = integer
[[.args]]
type = unit
default = "GetTriggerUnit"
[[.args]]
type = abilcode
[[.args]]
type = integer
default = "1"
min = 1
[[.args]]
type = AbilityDataInteger
default = "ABILITY_DATA_COST"

[YDWEGetUnitAbilityDataReal]
title = "Skill data (real number) [JAPI]"
description = "${unit}'s ${skill} ${level} level ${data}"
comment = "Data A~Data I is the DataA~DataI seen after pressing Ctrl+D in the object editor"
category = TC_UNIT
use_in_event = 0
returns = real
[[.args]]
type = unit
default = "GetTriggerUnit"
[[.args]]
type = abilcode
[[.args]]
type = integer
default = "1"
min = 1
[[.args]]
type = AbilityDataReal
default = "ABILITY_DATA_COOL"

[YDWEGetUnitAbilityDataString]
title = "Skill data (string) [JAPI]"
description = "${unit}'s ${skill} ${level} level ${data}"
comment = ""
category = TC_UNIT
use_in_event = 0
returns = string
[[.args]]
type = unit
default = "GetTriggerUnit"
[[.args]]
type = abilcode
[[.args]]
type = integer
default = "1"
min = 1
[[.args]]
type = AbilityDataString
default = "ABILITY_DATA_TIP"

[YDWEGetItemDataString]
title = "Item data (string) [JAPI]"
description = "${data} of ${item}"
comment = ""
category = TC_ITEM
use_in_event = 0
returns = string
[[.args]]
type = itemcode
default = "ches"
[[.args]]
type = ItemDataString
default = "ITEM_DATA_TIP"

[EXGetEffectX]
title = "X coordinate [JAPI]"
description = "X coordinate of ${special effect}"
comment = ""
category = TC_SPECIALEFFECT
use_in_event = 0
returns = real
[[.args]]
type = effect
default = "bj_lastCreatedEffect"

[EXGetEffectY]
title = "Y coordinate [JAPI]"
description = "Y coordinate of ${special effect}"
comment = ""
category = TC_SPECIALEFFECT
use_in_event = 0
returns = real
[[.args]]
type = effect
default = "bj_lastCreatedEffect"

[EXGetEffectZ]
title = "height [JAPI]"
description = "${special effect} height"
comment = ""
category = TC_SPECIALEFFECT
use_in_event = 0
returns = real
[[.args]]
type = effect
default = "bj_lastCreatedEffect"

[EXGetEffectSize]
title = "size [JAPI]"
description = "The size of ${special effect}"
comment = ""
category = TC_SPECIALEFFECT
use_in_event = 0
returns = real
[[.args]]
type = effect
default = "bj_lastCreatedEffect"

[EXNetCommonConsume]
title = "Item-Demon beans are deducted directly from the map [JAPI]"
description = "${Players} Spend Monster Beans ${how much}"
comment = "If the player purchases the product, it returns true if it succeeds, false returns if it fails"
category = TC_YYPT
returns = boolean
[[.args]]
type = player
default = "Player00"
[[.args]]
type = integer

[EXNetConsume]
title = "Billing-consumption map currency [JAPI]"
description = "${player}consumption map currency ${how much}"
comment = "The player purchases goods for consumption (abandoned), returns true if successful, false returns if failed"
category = TC_YYPT
returns = boolean
[[.args]]
type = player
default = "Player00"
[[.args]]
type = integer

[EXNetUseItem]
title = "Props-Deduction of the number of props [JAPI]"
description = "${player} consumes item [${item ID}] ${quantity}"
comment = "Players request to consume common items, return true if successful, false if failed"
category = TC_YYPT
returns = boolean
[[.args]]
type = player
default = "Player00"
[[.args]]
type = string
default = "EverguoIsHandsome"
[[.args]]
type = integer
min = 1

[EXGetPlayerRealName]
title = "Basic-Get the player platform nickname in the map [JAPI]"
description = "Get ${player}11 platform nickname"
comment = "EXGetPlayerRealName(player)，get the player platform nickname"
category = TC_YYPT
returns = string
[[.args]]
type = player
default = "Player00"

[YDWEGetRPGRankName]
title = "Points-Ranking-Display the name of the current ranking [JAPI]"
description = "YDWEGetRPGRankName()"
comment = "Display the name of the current ranking"
category = TC_YYPT
returns = string

[YDWEGetRPGTopName]
title = "Points-Ranking-Display the name of the player ranked in the ranking [JAPI]"
description = "The name of the player who ranked ${ranking} in the leaderboard"
comment = "YDWEGetRPGTopName(rank)，display the name of the player with the rank in the leaderboard, or an empty string if it does not exist"
category = TC_YYPT
returns = string
[[.args]]
type = integer
min = 1

[YDWEGetRPGTopScore]
title = "Points-Ranking-Displays the score of the player ranked in the ranking [JAPI]"
description = "Scores of players ranked ${ranking} on the leaderboard"
comment = "YDWEGetRPGTopScore(rank)，display the score of the player ranked in the rank of the leaderboard, or return if it does not exist-1"
category = TC_YYPT
returns = integer
[[.args]]
type = integer
min = 1

[YDWEGetPalyerRPGRank]
title = "Points-Ranking-Display the player's ranking of points[JAPI]"
description = "Get ${player}'s point ranking"
comment = "YDWEGetPalyerRPGRank(player)，display the player's ranking, if not exist, return-1"
category = TC_YYPT
returns = integer
[[.args]]
type = player
default = "Player00"

[YDWEGetPalyerRPGRankScore]
title = "Points-Ranking-displays the player's ranking score [JAPI]"
description = "Earn points for ${player}"
comment = "YDWEGetPalyerRPGRankScore(player)，Show the player's score, return if it doesn't exist-1"
category = TC_YYPT
returns = integer
[[.args]]
type = player
default = "Player00"

[YDWERPGBillingGetCommonCurrency]
title = "Item-read the number of players [JAPI]"
description = "Read the number of demon beans for ${player}"
comment = "YDWERPGBillingGetCommonCurrency(player)，get the number of player demon beans"
category = TC_YYPT
returns = integer
[[.args]]
type = player
default = "Player00"

[YDWERPGBillingGetCurrency]
title = "Billing-get player map currency balance [JAPI]"
description = "Get the map currency balance of ${player}"
comment = "YDWERPGBillingGetCurrency(playerId)，get player map currency balance"
category = TC_YYPT
returns = integer
[[.args]]
type = player
default = "Player00"

[EXNetGetTime]
title = "Basics-time function [JAPI]"
description = "Get current time"
comment = "EXNetGetTime()，time function"
category = TC_YYPT
returns = string

[YDWERPGGetMapConfig]
title = "Configuration-Get map configuration [JAPI]"
description = "Get the configuration of the map ${XXX} item"
comment = "YDWERPGGetMapConfig(key)，get map configuration"
category = TC_YYPT
returns = string
[[.args]]
type = string

[YDWEStatRemoteData]
title = "Test-Statistical Citation [JAPI]"
description ="Set ${statistics} of ${player}=${XXX}"
comment = "EXNetStatRemoteData(player, key ,value) Statistical reference, return true if successful, false if failed"
category = TC_YYPT
returns = boolean
[[.args]]
type = player
default = "Player00"
[[.args]]
type = string
[[.args]]
type = string

[YDWERPGGetRemoteData]
title = "Archive-read user data [JAPI]"
description ="Read the ${XXX} archive of ${player}"
comment = "YDWERPGGetRemoteData(player,key)，read user archive data"
category = TC_YYPT
returns = string
[[.args]]
type = player
default = "Player00"
[[.args]]
type = string

[YDWESaveRemoteData]
title = "Archive-save user data [JAPI]"
description ="Store ${XXX} of ${player}=${XXX}"
comment = "YDWESaveRemoteData(player, key ,value) Save user archived data returns true on success, false on failure"
category = TC_YYPT
returns = boolean
[[.args]]
type = player
default = "Player00"
[[.args]]
type = string
[[.args]]
type = string
