项目

一般

简介

SetUpgradeItem » 历史记录 » 修订 9

修订 8 (yangdefeng, 2022-05-20 15:00) → 修订 9/14 (yangdefeng, 2022-05-20 15:01)

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)> 
 &nbsp; 
 [<notextile>@</notextile>关联] 
 #act 
 *{color:green}setUpgradeItem* [[CheckScriptParam|<$scriptParam1>]] <$scriptParam1> 
 &nbsp; 
 #if 
 [[equal]] <$scriptParam1> 0 
 #act 
 [[changeItemNameColor]] -1 254 
 &nbsp; 
 #if 
 equal <$scriptParam1> 1 
 #act 
 changeItemNameColor -1 222 
 &nbsp; 
 #if 
 #act 
 [[updateBoxItem]] <$scriptParam1> 
 [[messageBox]] 名字颜色修改完毕