山坡上的流氓 发表于 2023-3-7 15:02:50

a8328533 发表于 2023-3-7 02:51 PM
可以技能释放成功需要hook一些事件

指教下啊 我想做个鸟德的星火术的判断   在多少秒内如果没有触发某个Buff 就重复释放

a8328533 发表于 2023-3-7 17:33:24

山坡上的流氓 发表于 2023-3-7 03:02 PM
指教下啊 我想做个鸟德的星火术的判断   在多少秒内如果没有触发某个Buff 就重复释放

首先 获取 Buff如果找到了

if bufftime == -1 and BeeGetVariable("cd") then --没有找到buff 并且没有记录过
   BeeSetVariable("cd", time())   --记录当前时间
else --找到Buff 重置记录
   BeeSetVariable("cd", nil)
end

if BeeGetVariable("cd") and time() - BeeGetVariable("cd") > 10 then BeeRun("星火术")end    --超过十秒没有找到bufftime

首次启动 最好 BeeSetVariable("cd", nil) 设置一下初始值 不然上次可能保存过cd


山坡上的流氓 发表于 2023-3-7 17:56:54

a8328533 发表于 2023-3-7 05:33 PM
首先 获取 Buff如果找到了

if bufftime == -1 and BeeGetVariable("cd") then --没有找到buff 并 ...

有些许不一样不过这个方式我可以尝试去整理下试试谢谢哈

hps165 发表于 2023-3-9 15:13:55

if BeeTargetDeBuffTime("黑箭")<=0 then
BeeRun("黑箭");
BeeUnitCastSpellDelay("黑箭",15);
end
第三行是15秒之后再射一箭,这样写应该没问题了。
页: 1 [2]
查看完整版本: 请教大佬能不能设置时间控制