项目

一般

简介

SetUpgradeItem » 历史记录 » 版本 13

yangdefeng, 2022-05-20 15:05

1 6 yangdefeng
h4. _*%{color:green}setUpgradeItem%*_
2 7 yangdefeng
3 13 yangdefeng
对话框中有多个[[dlg_itemBox_|itemBox]]时,用于关联itemBox的id,
4 6 yangdefeng
关联后对自定义道具栏(-1)操作时,目标为上述关联道具栏中的对象。
5 1 machenhe
6
标签:命令定义|setUpgradeItem
7
8
*格式*
9
|命令名		|参数1		|
10 6 yangdefeng
|setUpgradeItem	|itemBox编号	|
11 1 machenhe
12
说明:
13 6 yangdefeng
* 参数1: itemBox编号
14 1 machenhe
15 10 yangdefeng
-
16
-
17
18 5 yangdefeng
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
19 1 machenhe
20
bq. [<notextile>@</notextile>main]
21
#say
22 8 yangdefeng
<[[dlg_itemBox_|itemBox]]:0:-1:-1:25:15:-1:-1:*:tips>
23
<itemBox:1:-1:-1:200:15:-1:-1:*:tips>
24 5 yangdefeng
\ \ \ \<左边格子内道具名称设置为蓝色/<notextile>@</notextile>关联(0)>
25
\ \<右边格子内道具名称设置为绿色/<notextile>@</notextile>关联(1)>
26
&nbsp;
27
[<notextile>@</notextile>关联]
28 1 machenhe
#act
29 9 yangdefeng
*{color:green}setUpgradeItem* [[CheckScriptParam|<$scriptParam1>]]
30 5 yangdefeng
&nbsp;
31
#if
32
[[equal]] <$scriptParam1> 0
33
#act
34
[[changeItemNameColor]] -1 254
35
&nbsp;
36
#if
37
equal <$scriptParam1> 1
38
#act
39
changeItemNameColor -1 222
40
&nbsp;
41
#if
42
#act
43
[[updateBoxItem]] <$scriptParam1>
44
[[messageBox]] 名字颜色修改完毕