项目

一般

简介

DrillHole » 历史记录 » 版本 4

tejie, 2025-07-16 16:04

1 2 tejie
h4. _*%{color:green}drillHole%*_
2 1 machenhe
3 2 tejie
指定装备位装备,指定孔位打孔.
4 1 machenhe
5 2 tejie
标签:命令定义^drillHole
6
7 1 machenhe
*格式*
8
|_.命令名	|_.参数1	|_.参数2	|_.参数3|_.参数4	|_.参数5	|_.参数6	|_.参数7	|_.参数8	|_.参数9	|_.参数10	|
9
|drillHole	|无效参数	|无效参数	|装备位 |无效参数 	|无效参数	|孔位id		|无效参数	|是否开孔	|无效参数	|无效参数	|
10
11
*说明*
12 2 tejie
|参数1|无效参数,请写*|
13
|参数2|无效参数,请写*|
14 4 tejie
|^.参数3|装备位id 或 装备实例id
15
*0-16* 
16
指定id装备位中的道具
17 1 machenhe
参见 *[[装备位置|装备位id说明]]*
18 3 tejie
*-1*
19 1 machenhe
当前打开的自定义道具栏中的道具
20 3 tejie
当前拾取道具
21
*装备实例id*
22
背包中道具属性变更后,需要加上 [[updItem]] 命令刷新|
23 2 tejie
|参数4|无效参数,请写*|
24
|参数5|无效参数,请写*|
25
|参数6|孔位id[0-4]|
26
|参数7|无效参数,请写*|
27
|^.参数8|是否开孔
28
 0, 不开孔
29
 1, 开孔|
30
|参数9|无效参数,请写*|
31
|参数10|无效参数,请写*|
32 1 machenhe
33
-
34
-
35
36 2 tejie
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
37 1 machenhe
38
bq. [@main]
39
#if
40
[[equal]] <$dress>
41
#act
42
[[messageBox]] 请穿戴衣服后测试
43
break
44
&nbsp;
45
#if
46
#say
47
<衣服打孔/<notextile>@</notextile>打孔>\\ \\
48
<打孔检测/<notextile>@</notextile>打孔检测>\\ \\
49
<打孔数量检测/<notextile>@</notextile>打孔数量检测>\\ \\
50
&nbsp;
51
[<notextile>@</notextile>打孔]
52
#if
53
#act
54
*{color:green}drillHole* * * 0 * * 0 * 1 * *
55
messageBox 装备位衣服_0号孔位_打孔成功
56
&nbsp;
57
[<notextile>@</notextile>打孔检测]
58
#if
59
[[checkDrillHole]] 0 0
60
#act
61
messageBox 装备位衣服_0号孔位_已打孔
62
&nbsp;
63
[<notextile>@</notextile>打孔数量检测]
64
#if
65
[[checkDrillHoleCount]] 0 = 1
66
#act
67
messageBox 装备位衣服_打孔数量_等于1
68
&nbsp;
69
#if
70
checkDrillHoleCount 0 > 1
71
#act
72
messageBox 装备位衣服_打孔数量_大于1
73
&nbsp;
74
#if
75
checkDrillHoleCount 0 < 1
76
#act
77
messageBox 装备位衣服_打孔数量_小于1