项目

一般

简介

SetUpgradeItem » 历史记录 » 版本 9

yangdefeng, 2022-05-20 15:01

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