项目

一般

简介

装备改造 » 历史记录 » 版本 1

yangdefeng, 2022-05-07 19:40

1 1 yangdefeng
-
2
-
3
4
*模块说明*
5
* 根据条件,筛选出装备列表
6
* 自定义对话框指定位置,生成上述装备列表
7
* 点击装备列表某个单元,
8
** 选中单元对应装备放入自定义装备位1
9
** 改造后的装备会出现在自定义装备位2
10
** 改造后 *[[自定义装备属性]]* 效果会显示在装备tips中,替换原有自定义装备属性
11
12
-
13
-
14
15
*相关命令*
16
|设置装备列表模板			|[[setModule]]				|
17
|将指定实例化装备,放入指定itemBox	|[[putinBox]]				|
18
|根据筛选条件,取出装备列表		|[[getEquipList]]			|
19
|取出装备列表中第1件装备的实例化id	|[[getEquipListFirst]]			|
20
|设置装备自定义属性tips显示名称		|[[changeCustomItemText]]		|
21
|设置装备自定义属性tips显示属性文本	|[[changeCustomItemabil]]		|
22
|设置装备自定义属性数值			|[[changeCustomItemValue]]		|
23
|\2.										|
24
|装备列表模板定义项			|[[dlg_itemInsId_|<itemInsId:]]		|
25
|装备列表模板定义项			|[[dlg_itemBoxEx_|<itemBoxEx:]]		|
26
|自定义对话框中显示装备列表的属性配置	|[[dlg_equipList_|<equipList:]]		|
27
|预览装备tips中自定义装备属性文本设定	|[[dlg_tipsPreview_|<tipsPreview:]]	|
28
29
-
30
-
31
32
*注意事项*
33
#say命令中出现以下命令时,
34
<temList:
35
<itemGrid:
36
<equipList:
37
%{color:deepPink}#say中<>模块必须以“\”结尾%
38
参见以下脚本示例
39
40
41
-
42
-
43
44
*%{color:deepskyblue}特戒引擎脚本示例:%*
45
46
47
*使用前提1*
48
请开启配置开关\"isUseCustomOKPanel\"
49
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
50
|配置节点|[[tjconfig|[tjconfig]]]			|
51
|配置项  |isUseCustomOkPanel=1				|
52
53
54
*使用前提2*
55
请配置补丁资源\"lc\",即找到以下配置项,加入 %{color:deeppink}lc%
56
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
57
|配置节点|[tjconfig]					|
58
|配置项  |patch=aa,bb,lc				|
59
60
61
*使用前提3*
62
配置装备类型名称与显示序号
63
|配置文件|...\Mir200\Tejieconfig\Tejieconfig.txt	|
64
|配置节点|[[upGradeItem|[upGradeItem]]]			|
65
66
配置举例
67
[upGradeItem]
68
5 1 武器
69
10 2 衣服[男]
70
11 3 衣服[女]
71
15 4 头盔
72
19 5 项链
73
26 6 手镯
74
22 7 戒指
75
64 8 腰带
76
62 9 鞋子
77
78
-
79
-
80
81
bq. [<notextile>@</notextile>main]
82
%{color:lightGrey};--设置装备列表模板,可配置部件坐标信息.--%
83
#act
84
[[mov]] s$module (<[[dlg_itemSize_|itemSize]]:400:150:index>
85
[[inc]]	s$module <[[dlg_itemToggle_|itemToggle]]:huishouwupin_xuanzhongkuang:denglu_liebiao_weixuanzhong/<notextile>@</notextile>装备列表点击> %{color:lightGrey};--定义装备列表单元选中与未选中图片--%
86
inc	s$module <[[dlg_itemInsId_|itemInsId]]:instanceId> %{color:lightGrey};--道具实例id:程序项,无须定义--%
87
inc s$module <[[dlg_itemBoxEx_|itemBoxEx]]:itemId:instanceId:sourceType:equipplace:20:20:wupinkuang:looks:effectname:animation> %{color:lightGrey};--定义道具图标在装备列表单元中的坐标--%
88
inc s$module <[[dlg_text_|text]]:itemName{scolor=168}:140:30> %{color:lightGrey};--定义道具名称在装备列表单元中的文本属性--%
89
inc s$module <text:itemType{scolor=25}:160:90>) %{color:lightGrey};--定义道具部位名称在装备列表单元中的文本属性--%
90
*[[setModule]]* s$module
91
&nbsp;
92
%{color:lightGrey};--设定\"身上\"与\"背包\"切换按钮--%
93
mov s$切换按钮 (
94
inc s$切换按钮 <[[dlg_itemIndex_|itemIndex]]:1>
95
inc s$切换按钮 <itemToggle:lc_shijieliaotian_xuanzhong:lc_shijieliaotian_weixuanzhong/<notextile>@</notextile>身背切换(1)>
96
inc s$切换按钮 <text:身上装备{scolor=150}:75:50>
97
inc s$切换按钮 )
98
&nbsp;
99
inc s$切换按钮 (
100
inc s$切换按钮 <itemIndex:2>
101
inc s$切换按钮 <itemToggle:lc_shijieliaotian_xuanzhong:lc_shijieliaotian_weixuanzhong/<notextile>@</notextile>身背切换(2)>
102
inc s$切换按钮 <text:背包装备{scolor=150}:75:50>
103
inc s$切换按钮 )
104
&nbsp;
105
mov s$激活列表 1
106
goto <notextile>@</notextile>获取装备列表
107
&nbsp;
108
[<notextile>@</notextile>获取装备列表]
109
#act
110
*[[getEquipList]]* 1 <$str(s$激活列表)> s$装备列表
111
*[[getEquipListFirst]]* s$装备列表
112
goto <notextile>@</notextile>右侧刷新
113
goto <notextile>@</notextile>显示界面
114
goto <notextile>@</notextile>装备列表点击
115
&nbsp;
116
%{color:lightGrey};-----------------------------------------------------------------------------%
117
%{color:lightGrey};--右侧改造界面显示数据处理--%
118
%{color:lightGrey};--此处为固定显示示例,真实应用请根据业务实例做相应改造--%
119
%{color:lightGrey};--参考装备自定义属性相关命令--%
120
%{color:lightGrey};-----------------------------------------------------------------------------%
121
[<notextile>@</notextile>右侧刷新]
122
#if
123
[[equal]] [[自定义道具栏返回变量|<notextile><$boxItem[0].name></notextile>]]
124
#act
125
mov s$改造属性1 [改造属性]+0
126
#elseAct
127
mov s$改造属性1 <$boxItem<notextile>[0]</notextile>.customText>
128
&nbsp;
129
#if
130
#act
131
mov s$改造属性2 [改造属性]+23
132
&nbsp;
133
mov s$item1 (<itemsize:500:325>
134
inc s$item1 <text:<$str(s$改造属性1)>:45:10>
135
inc s$item1 <text:<$str(s$改造属性2)>:275:10>
136
inc s$item1 <text:生命值:0:50:100>    
137
inc s$item1 \"<text:魔  防:0-0:50:150>\"
138
inc s$item1 \"<text:防  御:0-0:50:200>)\"
139
&nbsp;
140
mov s$itemList <$str(s$item1)>
141
&nbsp;
142
%{color:lightGrey};--定义预览tips显示块--%
143
%{color:lightGrey};--原始装备tips内容中自定义属性,替换为以下文本内容--%
144
mov s$改造属性2 [改造属性]+23
145
mov s$item2 (<itemsize:500:325>	
146
inc s$item2 <[[dlg_tipsPreview_|tipsPreview]]:1:<$str(s$改造属性2)>>
147
inc s$item2 <text:生命值:49342{scolor=250}:200:100>    
148
inc s$item2 \"<text:魔  防:444-1035{scolor=250}:200:150>\"
149
inc s$item2 \"<text:防  御:1147-2677{scolor=250}:200:200>)\"
150
&nbsp;
151
mov s$itemList2 <$str(s$item2)>
152
&nbsp;
153
[[refreshItem]] 当前属性 1 s$item1 0
154
refreshItem 预览属性 1 s$item2 0
155
&nbsp;
156
[<notextile>@</notextile>装备列表点击]
157
#if
158
not [[equal]] <$str(s$装备列表)>
159
#act
160
%{color:lightGrey};--putinBox 物品唯一id itemBox编号 位置类型(1身上,2背包)--%
161
*[[putinBox]]* <$str(s0)>  0 <$str(s$激活列表)>
162
putinBox <$str(s0)>  1 <$str(s$激活列表)>
163
goto <notextile>@</notextile>右侧刷新
164
#elseAct
165
[[returnBoxItem]] 0
166
returnBoxItem 1
167
&nbsp;
168
[<notextile>@</notextile>显示界面]
169
#act
170
[[openMerchantBigDlg]] lc_chuangti 4 0 0 1 0 0
171
#say 
172
<[[dlg_panelsize_|panelsize]]:700:600>\
173
<[[dlg_itemGrid_|itemGrid]]:<$str(s$切换按钮)>:切换按钮,<$str(s$激活列表)>,0,1:10:70:220,85:1,2,90,0:1>\
174
<[[dlg_equipList_|equipList]]:<$str(s$装备列表)>:身上装备改造,1:20:160:1,715,1:0> \
175
&nbsp;
176
<[[dlg_itemBox_|itemBox]]:0:-100001:0:780:120:50:50:*:251>\
177
<itemBox:1:-100001:0:1000:120:50:50:*:251>\
178
<[[dlg_imgButton_|imgButton]]:lc_anniu01:750:720:装备改造/<notextile>@</notextile>装备改造>\
179
&nbsp;
180
#if
181
not equal <$str(s$装备列表)>
182
#say
183
<[[dlg_itemList_|itemList]]:<$str(s$itemList2)>:预览属性:800:200:1,300,0:5>\
184
<itemList:<$str(s$itemList)>:当前属性:700:200:1,310,0:5>\
185
#elseSay
186
<text:没有可改造装备:840:300>
187
&nbsp;
188
[<notextile>@</notextile>身背切换]
189
#if
190
not equal s$激活列表 [[checkScriptParam|<$scriptParam1>]]
191
#act
192
mov s$激活列表 <$scriptParam1>
193
goto <notextile>@</notextile>获取装备列表
194
&nbsp;
195
%{color:lightGrey};-----------------------------------------------------------------------------%
196
%{color:lightGrey};--改造逻辑处理--%
197
%{color:lightGrey};--只支持changeCustomItem系列命令--%
198
%{color:lightGrey};--此处为固定显示示例,真实应用请根据业务实例做相应改造--%
199
%{color:lightGrey};-----------------------------------------------------------------------------%
200
[<notextile>@</notextile>装备改造]
201
#act
202
[[changeCustomItemText]] -1 [改造属性]+1
203
&nbsp;
204
[[changeCustomItemabil]] -1 0 1 1
205
changeCustomItemabil -1 1 1 2
206
changeCustomItemabil -1 5 1 6
207
&nbsp;
208
changeCustomItemabil -1 0 0 255
209
changeCustomItemabil -1 1 0 255
210
changeCustomItemabil -1 5 0 255
211
&nbsp;
212
[[changeCustomItemValue]] -1 0 = 10
213
changeCustomItemValue -1 1 = 10
214
changeCustomItemValue -1 5 = 100
215
&nbsp;
216
goto <notextile>@</notextile>装备列表点击 %{color:lightGrey};<notextile>--刷新box中的道具tips--</notextile>%