if count == 1 then
titleName = "[鉴定品级·精良]:"
titleColor = 250
elseif count == 2 then
titleName = "[鉴定品级·稀有]:"
titleColor = 154
elseif count == 3 then
titleName = "[鉴定品级·史诗]:"
🤖 回答引擎: 前端Lua |
🕒 时间: 2026-04-13 22:28:55 |
👁️ 阅读: 8
```lua
if count == 1 then
titleName = "[鉴定品级·精良]:"
titleColor = 250
elseif count == 2 then
titleName = "[鉴定品级·稀有]:"
titleColor = 154
elseif count == 3 then
titleName = "[鉴定品级·史诗]:"
titleColor = 253
elseif count == 4 then
titleName = "[鉴定品级·断尘]:"
titleColor = 151
elseif count == 5 then
titleName = "[鉴定品级·执月]:"
titleColor = 243
elseif count == 6 then
titleName = "[鉴定品级·梦归]:"
titleColor = 249
end
-- 如果装备名包含"★完整"则直接鉴定品级为[鉴定品级·梦归]
local equipName = "" -- 这里应该获取实际的装备名称变量
if string.find(equipName, "★完整") then
titleName = "[鉴定品级·梦归]:"
titleColor = 249
count = 6
end
```
注意:上面的代码中`equipName`变量需要替换为实际的装备名称变量。`string.find()`函数用于在字符串中查找指定内容,如果找到则返回位置,否则返回nil。
← 返回问答库