SetUpgradeItem » 历史记录 » 版本 6
yangdefeng, 2022-05-20 14:50
1 | 6 | yangdefeng | h4. _*%{color:green}setUpgradeItem%*_ |
---|---|---|---|
2 | 对话框中有多个itemBox时,用于关联itemBox的id, |
||
3 | 关联后对自定义道具栏(-1)操作时,目标为上述关联道具栏中的对象。 |
||
4 | 1 | machenhe | |
5 | 标签:命令定义|setUpgradeItem |
||
6 | |||
7 | *格式* |
||
8 | |命令名 |参数1 | |
||
9 | 6 | yangdefeng | |setUpgradeItem |itemBox编号 | |
10 | 1 | machenhe | |
11 | 说明: |
||
12 | 6 | 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 | |
||
23 | [<notextile>@</notextile>关联] |
||
24 | 1 | machenhe | #act |
25 | 5 | yangdefeng | *{color:green}setUpgradeItem* <$scriptParam1> |
26 | |
||
27 | #if |
||
28 | [[equal]] <$scriptParam1> 0 |
||
29 | #act |
||
30 | [[changeItemNameColor]] -1 254 |
||
31 | |
||
32 | #if |
||
33 | equal <$scriptParam1> 1 |
||
34 | #act |
||
35 | changeItemNameColor -1 222 |
||
36 | |
||
37 | #if |
||
38 | #act |
||
39 | [[updateBoxItem]] <$scriptParam1> |
||
40 | [[messageBox]] 名字颜色修改完毕 |