CheckBoxItemCount » 历史记录 » 版本 2
tejie, 2024-11-06 16:17
1 | 2 | tejie | h4. _*%{color:green}checkBoxItemCount%*_ |
---|---|---|---|
2 | 1 | machenhe | |
3 | 检测指定itemBox中的物品数量是否满足条件 |
||
4 | |||
5 | 2 | tejie | 标签:命令定义|checkBoxItemCount>checkBoxItemCount |
6 | 1 | machenhe | |
7 | *格式* |
||
8 | |命令名 |参数1 |参数2 | |
||
9 | |checkBoxItemCount |itemBox编号 |物品数量 | |
||
10 | |||
11 | 说明: |
||
12 | * 参数1 |
||
13 | itemBox编号 |
||
14 | |||
15 | * 参数2 |
||
16 | 物品数量,仅可堆叠物品有效 |
||
17 | |||
18 | |||
19 | *%{color:deepskyblue}脚本示例:%* |
||
20 | |||
21 | bq. [<notextile>@</notextile>main] |
||
22 | #ACT |
||
23 | #say |
||
24 | <ITEMBOX:0:0:0:0:0:40:40:*:tips> |
||
25 | <ITEMBOX:1:0:0:200:0:40:40:*:tips> |
||
26 | |||
27 | bq. <text:检测0:0:200/<notextile>@</notextile>检测0> |
||
28 | <text:检测1:200:200/<notextile>@</notextile>检测1> |
||
29 | |||
30 | bq. [<notextile>@</notextile>检测0] |
||
31 | #if |
||
32 | checkBoxItemCount 0 3 |
||
33 | #act |
||
34 | sendmsg 6 0框中物品数量大于等于3 |
||
35 | #elseact |
||
36 | sendmsg 6 没东西或不够3 |
||
37 | |||
38 | bq. [<notextile>@</notextile>检测1] |
||
39 | #if |
||
40 | checkBoxItemCount 1 30 |
||
41 | #act |
||
42 | sendmsg 6 1框中物品数量大于等于30 |
||
43 | #elseact |
||
44 | sendmsg 6 没东西或不够30 |