项目

一般

简介

GetUserItemName » 历史记录 » 版本 1

machenhe, 2022-05-11 14:32

1 1 machenhe
_*%{color:green}getUserItemName%*_
2
获取指定装备位装备的名称,返回给指定变量
3
4
标签:命令定义|getUserItemName
5
6
*格式*
7
|命令名		|参数1		|参数2		|
8
|getUserItemName|装备位id	|返回变量	|
9
10
*说明*
11
* 参数1: 装备位id
12
** 0-16 指定id装备位中的道具
13
参见装备位id说明[[装备位置]]
14
** -1
15
当前打开的自定义道具栏中的道具
16
当前拾取道具
17
18
* 参数2: 返回变量,存储道具名称
19
如对应装备位没有道具,会返回\"未佩戴装备\"
20
21
-
22
-
23
24
*%{color:deepskyblue}特戒引擎脚本示例:%*
25
26
bq. [<notextile>@</notextile>main]
27
#say
28
<检查衣服装备位道具名称/<notextile>@</notextile>衣服>\\ \\
29
<自定义装备位道具名称/<notextile>@</notextile>自定义装备位>\\ \\
30
&nbsp;
31
[<notextile>@</notextile>衣服]
32
#act
33
*%{color:green}getUserItemName%* 0 s0
34
%{color:lightGrey};print命令在控制台输出文件内容%
35
print s0
36
&nbsp;
37
&nbsp;
38
[<notextile>@</notextile>自定义装备位]
39
#say
40
<拖个道具上来,查看名称>
41
<itemBox:0:0:0:50:50:200:200:*>\\ \\ \\ \\ \\ \\ \\
42
<查看:/<notextile>@</notextile>查看>
43
&nbsp;
44
[<notextile>@</notextile>查看]
45
#act
46
#act
47
getUserItemName -1 s0
48
%{color:lightGrey};print命令在控制台输出文件内容%
49
print s0