求助团队DEBUFF函数问题
比如奶骑在TOC中的团队成员中了血肉成灰、刺骨之寒DEBUFF的函数如何写,中了血肉第一优先级圣光刷掉,求大佬支援。方案1:这个和驱散原理是一样得,把驱散代码中关于buff判定得部分直接更改为血肉成灰、刺骨之寒就能识别出来。用BeeGroupCountScript函数返回,
方案2:利用数组:BeeGroupMaxScript('BeeRange(unit)<=40 and BeeUnitHealth(unit,"%")<=100 and ......and not BeeStringFind("血肉成灰、刺骨之寒等buff",BeeUnitBuffList(unit))',"BeeUnitHealth(unit,nil,1)",grouptype),类似这种也可以。 本帖最后由 grady 于 2023-4-21 05:18 PM 编辑
aoyq2007 发表于 2023-4-21 02:49 PM
方案1:这个和驱散原理是一样得,把驱散代码中关于buff判定得部分直接更改为血肉成灰、刺骨之寒就能识别出 ...
grouptype="";
if GetNumRaidMembers()>0
then
grouptype="raid"
else
grouptype="party"
end
local n,qusan = BeeGroupCountScript('BeeRange(unit)<=40 and BeeUnitHealth(unit,"%")<=100 andBeeIsRun("圣光术",unit)',"BeeUnitBuffInfo(unit,2,'血肉成灰,刺骨之寒',0)>0and not UnitIsDeadOrGhost(unit) and BeeUnitBuff('圣光术',unit,2,1)<1 " ,grouptype)
if n>0 and BeeIsRun("圣光术",qusan)
then
BeeRun("圣光术",qusan);
return;
end
大佬,这样就可以么? {:5_240:}{:5_240:}{:5_240:}{:5_240:}{:5_240:}{:5_240:}{:5_254:}{:5_254:}
页:
[1]