CheckDrillHole » 历史记录 » 版本 1
machenhe, 2022-05-11 11:23
1 | 1 | machenhe | _*%{color:green}checkDrillHole%*_ |
---|---|---|---|
2 | 检测指定装备位装备,是否已打孔 |
||
3 | |||
4 | 标签:命令定义|checkDrillHole |
||
5 | |||
6 | *格式* |
||
7 | |_.命令名 |_.参数1 |_.参数2| |
||
8 | |checkDrillHole |装备位id |孔位id | |
||
9 | |||
10 | *说明* |
||
11 | * 参数1: 装备位id |
||
12 | ** 0-16 指定id装备位中的道具 |
||
13 | 参见 *[[装备位置|装备位id说明]]* |
||
14 | ** -1 |
||
15 | 当前打开的自定义道具栏中的道具 |
||
16 | 当前拾取道具 |
||
17 | |||
18 | * 参数2: 孔位id[0-4] |
||
19 | |||
20 | - |
||
21 | - |
||
22 | |||
23 | *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
24 | |||
25 | bq. [@main] |
||
26 | #if |
||
27 | [[equal]] <$dress> |
||
28 | #act |
||
29 | [[messageBox]] 请穿戴衣服后测试 |
||
30 | break |
||
31 | |
||
32 | #if |
||
33 | #say |
||
34 | <衣服打孔/<notextile>@</notextile>打孔>\\ \\ |
||
35 | <打孔检测/<notextile>@</notextile>打孔检测>\\ \\ |
||
36 | <打孔数量检测/<notextile>@</notextile>打孔数量检测>\\ \\ |
||
37 | |
||
38 | [<notextile>@</notextile>打孔] |
||
39 | #if |
||
40 | #act |
||
41 | [[drillHole]] <notextile>* * 0 * * 0 * 1 * *</notextile> |
||
42 | messageBox 装备位衣服_0号孔位_打孔成功 |
||
43 | |
||
44 | [<notextile>@</notextile>打孔检测] |
||
45 | #if |
||
46 | *%{color:green}checkDrillHole%* 0 0 |
||
47 | #act |
||
48 | messageBox 装备位衣服_0号孔位_已打孔 |
||
49 | |
||
50 | [<notextile>@</notextile>打孔数量检测] |
||
51 | #if |
||
52 | [[checkDrillHoleCount]] 0 = 1 |
||
53 | #act |
||
54 | messageBox 装备位衣服_打孔数量_等于1 |
||
55 | |
||
56 | #if |
||
57 | checkDrillHoleCount 0 > 1 |
||
58 | #act |
||
59 | messageBox 装备位衣服_打孔数量_大于1 |
||
60 | |
||
61 | #if |
||
62 | checkDrillHoleCount 0 < 1 |
||
63 | #act |
||
64 | messageBox 装备位衣服_打孔数量_小于1 |