项目

一般

简介

行为

changeItemUpgradeCount

设定指定装备位装备的星星数量
单件装备可升星266次

关于星星在装备tips上的显示
当前出现的空星小于10颗,下次升星会出现一颗空星
当前出现10颗空星时,下次升星会出现一颗实星加一颗空星

标签:命令定义|changeItemUpgradeCount

格式
命令名 参数1 参数2 参数3
changeItemUpgradeCount 装备位id 操作符 操作值
说明
  • 参数1: 装备位id
    • 0-16 指定id装备位中的道具
      参见 装备位id说明
    • -1
      当前打开的自定义道具栏中的道具
      当前拾取道具
  • 参数2: 操作符(+ - =)
  • 参数3: 操作值(整数)


特戒引擎脚本示例:

[@main]
#say
<衣服加星/@衣服星数(1)>\ \
<衣服减星/@衣服星数(2)>\ \
<取衣服星数/@衣服星数(3)>\ \
 
<查看衣服tips/@查看>\ \
 
[@衣服星数]
#if
equal <$dress>
#act
sendMsg 6 未穿戴衣服,穿上再试试
break
 
#if
equal <$scriptParam1> 1
#act
changeItemUpgradeCount 0 = 1
sendMsg 6 衣服星数设定为--1
 
#if
equal <$scriptParam1> 2
#act
changeItemUpgradeCount 0 = 0
sendMsg 6 衣服星数设定为--0
 
#if
equal <$scriptParam1> 3
#act
getItemStarNum 0 s0
sendMsg 6 取回衣服星数为--<$str(s0)>
 
[@查看]
#act
openSysUi 1 0

yangdefeng 更新于 大约 2 年 之前 · 2 修订