SetUpgradeItem » 历史记录 » 修订 7
修订 6 (yangdefeng, 2022-05-20 14:50) → 修订 7/14 (yangdefeng, 2022-05-20 14:51)
h4. _*%{color:green}setUpgradeItem%*_
对话框中有多个itemBox时,用于关联itemBox的id,
关联后对自定义道具栏(-1)操作时,目标为上述关联道具栏中的对象。
标签:命令定义|setUpgradeItem
*格式*
|命令名 |参数1 |
|setUpgradeItem |itemBox编号 |
说明:
* 参数1: itemBox编号
h4. *%{color:deepskyblue}特戒引擎脚本示例:%*
bq. [<notextile>@</notextile>main]
#say
<itemBox:0:0:0:0:0:40:40:*:tips>
<itemBox:1:0:0:200:0:40:40:*:tips>
\ \ \ \<左边格子内道具名称设置为蓝色/<notextile>@</notextile>关联(0)>
\ \<右边格子内道具名称设置为绿色/<notextile>@</notextile>关联(1)>
[<notextile>@</notextile>关联]
#act
*{color:green}setUpgradeItem* <$scriptParam1>
#if
[[equal]] <$scriptParam1> 0
#act
[[changeItemNameColor]] -1 254
#if
equal <$scriptParam1> 1
#act
changeItemNameColor -1 222
#if
#act
[[updateBoxItem]] <$scriptParam1>
[[messageBox]] 名字颜色修改完毕