LUACN论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
热搜: YJWOW MagicStone BoL
查看: 88|回复: 2

[wowbee] 求助,在使用 BeeGroupMinScript报错

[复制链接]
发表于 2025-2-13 23:55:41 | 显示全部楼层 |阅读模式
本帖最后由 行了行了 于 2025-2-14 12:00 AM 编辑

[Lua] 纯文本查看 复制代码
local grouptype=""
if GetNumRaidMembers()>0 then
    grouptype="raid"
else
    grouptype="party"
end


local inUnit= BeeGroupMinScript('BeeUnitHealth(unit,"%")<=100 and BeeRange(unit)<=40  and BeeUnitBuff("奥术智慧",unit,2,1)<0 andBeeUnitBuff("强效奥术智慧",unit,2,1)<0  and not UnitIsDeadOrGhost(unit) ',"BeeUnitHealth(unit,'%')",grouptype)


if inUnit  and BeeIsRun("奥术智慧",inUnit)  then
    BeeRun("奥术智慧",inUnit)
end

上述代码运行后就报错,错误信息为:
Interface\AddOns\WBE\WowBee.Functions.lua:2020: attempt to call global 'TEMP_BeeGroupMin' (a nil value)

请教大佬是怎么回事,代码哪里有错误
谢谢
回复

使用道具 举报

发表于 2025-2-14 10:19:28 | 显示全部楼层
第9行 andBeeUnitBuff("强效奥术智慧",unit,2,1) 中and后面缺个空格。
导致BeeGroupMinScript函数内部注册TEMP_BeeGroupMin函数失败,所以报 'TEMP_BeeGroupMin' (a nil value)错误
回复 支持 反对

使用道具 举报

 楼主| 发表于 2025-2-14 23:40:10 | 显示全部楼层
blxyz521 发表于 2025-2-14 10:19 AM
第9行 andBeeUnitBuff("强效奥术智慧",unit,2,1) 中and后面缺个空格。
导致BeeGroupMinScript函数内部注册 ...

太感谢了,看的真细,我都没发现
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

小黑屋|手机版|Archiver|LUACN论坛

GMT+8, 2025-5-2 02:14 AM , Processed in 0.048716 second(s), 18 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表