GetBoxItemNum » 历史记录 » 版本 1
machenhe, 2022-05-10 19:03
1 | 1 | machenhe | _*%{color:green}getBoxItemNum%*_ |
---|---|---|---|
2 | |||
3 | 获取指定itemBox中的物品数量 |
||
4 | |||
5 | 标签:命令定义|getBoxItemNum |
||
6 | |||
7 | *格式* |
||
8 | |命令名 |参数1 |参数2 | |
||
9 | |getBoxItemNum |itemBox编号 |获取返回值的变量 | |
||
10 | |||
11 | 说明: |
||
12 | * 参数1 |
||
13 | itemBox编号 |
||
14 | |||
15 | * 参数2 |
||
16 | 获取返回值的变量 |
||
17 | |||
18 | *%{color:deepskyblue}脚本示例:%* |
||
19 | |||
20 | bq. [<notextile>@</notextile>main] |
||
21 | #ACT |
||
22 | #say |
||
23 | <ITEMBOX:0:0:0:0:0:40:40:*:tips> |
||
24 | <ITEMBOX:1:0:0:200:0:40:40:*:tips> |
||
25 | |||
26 | bq. <text:获取0:0:300/<notextile>@</notextile>获取0> |
||
27 | <text:获取1:200:300/<notextile>@</notextile>获取1> |
||
28 | |||
29 | bq. [<notextile>@</notextile>获取0] |
||
30 | #act |
||
31 | getBoxItemNum 0 p0 |
||
32 | sendmsg 6 数量:<$str(p0)> |
||
33 | |||
34 | bq. [<notextile>@</notextile>获取1] |
||
35 | #act |
||
36 | getBoxItemNum 1 p1 |
||
37 | sendmsg 6 数量:<$str(p1)> |