JASS代码加翻译更新(第六篇)

[GetLocalPlayer]
title = "本地玩家 [R]"
description = "本地玩家"
comment = "指代玩家自己,所以对每个玩家返回值都不一样. 如果不清楚该函数的话千万别用,因为很可能因为不同步而导致掉线."
category = TC_NOTHING
returns = player

["          "]
title = "自定义代码 [C]"
description = "代码: ${Jass代码}"
comment = "输入一行Jass代码"
category = TC_NOTHING
returns = player
keynum = 1
type1 = scriptcode

[CreateGroup]
title = "新建的单位组 [R]"
description = "新建的空单位组"
comment = "会创建单位组."
category = TC_NOTHING
returns = group

["           "]
title = "自定义代码 [C]"
description = "代码: ${Jass代码}"
comment = "输入一行Jass代码"
category = TC_NOTHING
returns = group
keynum = 1
type1 = scriptcode

[GetRandomSubGroup]
title = "单位组中随机单位"
description = "随机获取 ${Count} 个单位从 ${单位组}"
comment = "会创建单位组.该函数不能使用设置 bj_wantDestroyGroup=true来清除group,会导致该动作无效."
category = TC_NOTHING
use_in_event = 0
returns = group
keynum = 2
type1 = integer
default1 = "4"
type2 = group
default2 = "GetUnitsInRectAll"

[GetUnitsInRectAll]
title = "矩形区域内的单位"
description = "${矩形区域} 内的所有单位"
comment = "会创建单位组."
category = TC_NOTHING
returns = group
keynum = 1
type1 = rect
default1 = "GetPlayableMapRect"

[GetUnitsInRectOfPlayer]
title = "矩形区域内的玩家单位"
description = "${矩形区域} 内属于 ${Player} 的所有单位"
comment = "会创建单位组."
category = TC_NOTHING
returns = group
keynum = 2
type1 = rect
default1 = "GetPlayableMapRect"
type2 = player
default2 = "Player00"

[GetUnitsInRectMatching]
title = "矩形区域内的单位(指定条件)"
description = "${矩形区域} 内满足 ${条件} 的所有单位"
comment = "使用'匹配单位'指代条件中用于比较的单位. 会创建单位组."
category = TC_NOTHING
returns = group
keynum = 2
type1 = rect
default1 = "GetPlayableMapRect"
type2 = boolexpr

[GetUnitsInRangeOfLocAll]
title = "圆范围内单位"
description = "半径为 ${Radius} 圆心为 ${指定点} 的圆范围内所有单位"
comment = "会创建单位组."
category = TC_NOTHING
returns = group
keynum = 2
type1 = real
default1 = "512"
min1 = 0
type2 = location
default2 = "GetRectCenter"

[GetUnitsInRangeOfLocMatching]
title = "圆范围内单位(指定条件)"
description = "半径为 ${Radius} 圆心为 ${指定点} 且满足 ${条件} 的所有单位"
comment = "使用'匹配单位'指代条件中用于比较的单位. 会创建单位组."
category = TC_NOTHING
returns = group
keynum = 3
type1 = real
default1 = "512"
min1 = 0
type2 = location
default2 = "GetRectCenter"
type3 = boolexpr

[GetUnitsOfPlayerAll]
title = "玩家单位"
description = "属于 ${Player} 的所有单位"
comment = "会创建单位组."
category = TC_NOTHING
returns = group
keynum = 1
type1 = player
default1 = "Player00"

[GetUnitsOfPlayerAndTypeId]
title = "玩家单位(指定单位类型)"
description = "属于 ${Player} 的所有 ${单位类型}"
comment = "会创建单位组."
category = TC_NOTHING
returns = group
keynum = 2
type1 = player
default1 = "Player00"
type2 = unitcode
default2 = "hfoo"

[GetUnitsOfPlayerMatching]
title = "玩家单位(指定条件)"
description = "属于 ${Player} 并满足 ${条件} 的所有单位"
comment = "使用'匹配单位'指代条件中用于比较的单位. 会创建单位组."
category = TC_NOTHING
returns = group
keynum = 2
type1 = player
default1 = "Player00"
type2 = boolexpr

[GetUnitsOfTypeIdAll]
title = "所有指定类型单位"
description = "所有 ${单位类型}"
comment = "会创建单位组."
category = TC_NOTHING
returns = group
keynum = 1
type1 = unitcode
default1 = "hfoo"

[GetUnitsSelectedAll]
title = "玩家选择单位"
description = "${Player} 选择的所有单位"
comment = "不能用于触发条件. 会创建单位组."
category = TC_NOTHING
returns = group
keynum = 1
type1 = player
default1 = "Player00"

[CreateForce]
title = "新建玩家组 [R]"
description = "新建空玩家组"
comment = "会创建玩家组."
category = TC_NOTHING
returns = force

[GetPlayersAll]
title = "所有玩家"
description = "所有玩家"
comment = "包括未使用玩家和中立玩家."
category = TC_NOTHING
returns = force

[GetPlayersByMapControl]
title = "所有指定控制者的玩家"
description = "所有 ${Control Type} 控制的玩家"
comment = "会创建玩家组."
category = TC_NOTHING
returns = force
keynum = 1
type1 = mapcontrol
default1 = "MapControlComputer"

[GetPlayersMatching]
title = "所有符合条件的玩家"
description = "所有符合 ${条件} 的玩家"
comment = "使用'匹配玩家'指代条件中用于比较的玩家,包括未使用玩家和中立玩家. 会创建玩家组."
category = TC_NOTHING
returns = force
keynum = 1
type1 = boolexpr

[GetPlayersAllies]
title = "玩家的盟友"
description = "所有 ${Player} 的联盟玩家"
comment = "需要双方互为联盟状态,包括自己,不包括中立玩家. 会创建玩家组."
category = TC_NOTHING
returns = force
keynum = 1
type1 = player
default1 = "Player00"

[GetPlayersEnemies]
title = "玩家的敌人"
description = "所有 ${Player} 的敌对玩家"
comment = "对其敌对的所有玩家,不包括中立玩家. 会创建玩家组."
category = TC_NOTHING
returns = force
keynum = 1
type1 = player
default1 = "Player00"

[GetForceOfPlayer]
title = "转换玩家为玩家组"
description = "转换 ${Player} 为玩家组"
comment = "会创建玩家组."
category = TC_NOTHING
returns = force
keynum = 1
type1 = player
default1 = "Player00"

[GetPlayerRace]
title = "玩家的种族"
description = "${Player} 的种族"
comment = ""
category = TC_NOTHING
returns = race
keynum = 1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值