项目

一般

简介

SocketableItem » 历史记录 » 版本 4

tejie, 2025-07-16 15:57

1 2 tejie
h4. _*%{color:green}socketableItem%*_
2
3 1 machenhe
给指定装备位装备镶嵌宝石
4
5 3 tejie
标签:命令定义^socketableItem
6 1 machenhe
7
*格式*
8
|_.命令名	|_.参数1	|_.参数2	|_.参数3	|_.参数4	|_.参数5	|_.参数6	|_.参数7	|_.参数8	|_.参数9	|_.参数10	|
9
|socketableItem	|无效参数	|无效参数	|无效参数	|无效参数 	|装备位id	|孔位id		|无效参数	|无效参数	|宝石idx+1	|无效参数	|
10
11
*说明*
12 3 tejie
|参数1|无效参数,请写*|
13
|参数2|无效参数,请写*|
14
|参数3|无效参数,请写*|
15
|参数4|无效参数,请写*|
16 4 tejie
|参数5| *装备位id*
17 3 tejie
 0-16 指定id装备位中的道具
18 1 machenhe
参见 *[[装备位置|装备位id说明]]*
19 4 tejie
 *-1*
20 1 machenhe
当前打开的自定义道具栏中的道具
21 4 tejie
当前拾取道具
22
*装备实例id*
23
背包中道具属性变更后,需要加上 [[updItem]] 命令刷新|
24 3 tejie
|参数6|孔位id[0-4]|
25
|参数7|无效参数,请写*|
26
|参数8|无效参数,请写*|
27
|参数9|宝石idx+1
28
参见[[StdItems字段解释]] |
29
|参数10|无效参数,请写*|
30
|\2. %{color:deepPink}可镶嵌的宝石stdMode为41%|
31
|\2. %{color:deepPink}被镶嵌装备StdMode=19 20 21 23 24 5 6这几种是没有防御和魔防的,
32
如果镶嵌魔防和防御,那出现的属性是幸运、敏捷、准确等等这些属性%|
33
|\2. %{color:deepPink}宝石DB库的字段Reserved=0时 
34
Ac2 Mac2 DC2 MC2 SC2 HP MP字段的值是增加的对应的7个基本属性的值%|
35
|\2. %{color:deepPink}宝石DB库的字段Reserved>0时 
36
Ac2 Mac2 DC2 MC2 SC2 HP MP字段的值除以100,为各属性的倍数,
37
例如Ac2设置为110,人物的防御为200。 人物实际防御=110/100*200=220%|
38
|\2. tejieconfig中可配置镶嵌宝石tips显示项
39 1 machenhe
参见[[Tejieconfig配置]] 
40 3 tejie
*showGem配置项*
41 1 machenhe
showGem=0 显示具体属性
42
showGem=1 显示宝石名称
43
showGem=2 显示宝石自定义的描述([gemTips]配置项)
44 3 tejie
*[gemTips]配置项*
45 1 machenhe
;格式:道具名称 描述文字
46
举例
47
[gemTips]
48 3 tejie
攻击宝石 <超级牛逼的BUFF/fcolor=243><拥有则天下无敌/fcolor=255>|
49 1 machenhe
50
51
-
52
-
53
54 2 tejie
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
55 1 machenhe
56
bq. [<notextile>@</notextile>main]
57
#if
58
equal <$dress>
59
#act
60
messageBox 请穿戴衣服后测试
61
break
62
&nbsp;
63
#if
64
#say
65
<衣服打孔/<notextile>@</notextile>打孔>\\ \\
66
<宝石镶嵌/<notextile>@</notextile>镶嵌>\\ \\
67
<镶嵌检测/<notextile>@</notextile>镶嵌检测>\\ \\
68
<镶嵌宝石检测/<notextile>@</notextile>镶嵌宝石检测>\\ \\
69
<镶嵌数量检测/<notextile>@</notextile>镶嵌数量检测>\\ \\
70
&nbsp;
71
[<notextile>@</notextile>打孔]
72
#if
73
#act
74
[[drillHole]] <notextile>* * 0 * * 0 * 1 * *</notextile>
75
[[messageBox]] 装备位衣服_0号孔位_打孔成功
76
&nbsp;
77
[<notextile>@</notextile>镶嵌]
78
#if
79
[[checkDrillHoleCount]] 0 = 0
80
#act
81
messageBox 装备位衣服_打孔数量_等于0 \\ \\ 请先打孔
82
break
83
&nbsp;
84
#if
85
#act
86
*{color:green}socketableItem* <notextile>* * * * 0 0 * * 922 *</notextile>
87
messageBox 装备位衣服_孔位0_镶嵌完毕
88
&nbsp;
89
[<notextile>@</notextile>镶嵌检测]
90
#if
91
[[checkSocketableItemCount]] 0 = 1 
92
#act
93
messageBox 装备位衣服_镶嵌数量_等于1
94
&nbsp;
95
#if
96
checkSocketableItemCount 0 > 1 
97
#act
98
messageBox 装备位衣服_镶嵌数量_大于1
99
&nbsp;
100
#if
101
checkSocketableItemCount 0 < 1 
102
#act
103
messageBox 装备位衣服_镶嵌数量_小于1
104
&nbsp;
105
[<notextile>@</notextile>镶嵌宝石检测]
106
#if
107
[[checkSocketableItem]] 0 0 n1 s1
108
#act
109
[[dec]] n1 1
110
messageBox 装备位衣服_0号孔位_镶嵌了宝石 \\ \\ 宝石名称:<$str(s1)> \\ \\ 宝石IDX字段:<$str(n1)>
111
#elseAct
112
messageBox 装备位衣服_0号孔位_未镶嵌宝石
113
&nbsp;
114
[<notextile>@</notextile>镶嵌数量检测]
115
#if
116
[[checkStoneCount]] 镶嵌丹1 > 1
117
#act
118
messageBox 身上装备镶嵌【镶嵌丹1】数量_大于1
119
&nbsp;
120
#if
121
checkStoneCount 镶嵌丹1 = 1
122
#act
123
messageBox 身上装备镶嵌【镶嵌丹1】数量_等于1
124
&nbsp;
125
#if
126
checkStoneCount 镶嵌丹1 < 1
127
#act
128
messageBox 身上装备镶嵌【镶嵌丹1】数量_小于1