马上注册,下载996引擎,与更多游戏开发者交流。
您需要 登录 才可以下载或查看,没有账号?注册
×
捡取鉴定,txt是绑定-1位置,然后修改-1位置,如果用lua写的话,-1应该怎么写,官方命令给的位置参数没有说明-1位置相关的,下方是官方例子:
local itemobj = linkbodyitem(actor,1)
local itemidx = getiteminfo(actor,itemobj,2)
local itemName = getstditeminfo(itemidx,1)
local weizhi = 0
local attrIndex = 4
local attrValue = 100
release_print(itemName,"修改属性",attrIndex .."+" .. attrValue)
changecustomitemtext(actor, itemobj, "[自定义属性测试]:", 0)
changecustomitemtextcolor(actor, itemobj, 253, 0)
changecustomitemabil(actor,itemobj,weizhi,0,214,0)
changecustomitemabil(actor,itemobj,weizhi,1,attrIndex,0)
-- changecustomitemabil(actor,itemobj,weizhi,2,1,0)
-- changecustomitemabil(actor,itemobj,weizhi,3,0,0)
changecustomitemabil(actor,itemobj,weizhi,4,weizhi,0)
changecustomitemvalue(actor,itemobj,weizhi,"+",attrValue,0)
refreshitem(actor,itemobj)
|