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