项目

一般

简介

SetUpgradeItem » 历史记录 » 修订 5

修订 4 (yangdefeng, 2022-05-20 11:10) → 修订 5/14 (yangdefeng, 2022-05-20 14:46)

_*%{color:green}setUpgradeItem%*_ 

 用于关联itembox中的物品,关联后对物品的修改、检测可生效 

 标签:命令定义|setUpgradeItem 

 *格式* 
 |命令名 		 |参数1 		 | 
 |setUpgradeItem 	 |ItemBox编号 	 | 

 说明: 
 * 参数1: ItemBox编号 

 h4. *%{color:deepskyblue}特戒引擎脚本示例:%* *%{color:deepskyblue}脚本示例:%* 

 bq. [<notextile>@</notextile>main] 
 #act 
 #say 
 <itemBox:0:0:0:0:0:40:40:*:tips> <[[dlg_itemBox_|itemBox]]:0:0:0:0:0:40:40:*:tips> 
 <itemBox:1:0:0:200:0:40:40:*:tips> 
 \ \ \ \<左边格子内道具名称设置为蓝色/<notextile>@</notextile>关联(0)> 
 \ \<右边格子内道具名称设置为绿色/<notextile>@</notextile>关联(1)> 
 &nbsp; 
 

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