项目

一般

简介

SetUpgradeItem » 历史记录 » 版本 5

yangdefeng, 2022-05-20 14:46

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