WoW Classic(1.13)插件事件:COMBAT_TEXT_UPDATE。如何修正我的代码?

问题描述 投票:-1回答:1

我最近才开始研究《魔兽世界》的LUA和附加组件。我想在聊天中显示魔术学校和伤害程度,但是我的代码不起作用。请查看我在做什么错。

local Congrats_EventFrame = CreateFrame("Frame")
CombatTextSetActiveUnit("player")
Congrats_EventFrame:RegisterEvent("COMBAT_TEXT_UPDATE")
Congrats_EventFrame:SetScript("OnEvent",
    function(arg1, arg2, arg3)
        print(arg1 .. ' - ' .. arg2 .. ' - ' .. arg3)
    end)
lua add-on world-of-warcraft
1个回答
0
投票

请参见SPELL_DAMAGEhttps://wow.gamepedia.com/COMBAT_LOG_EVENT的“金额”参数>

© www.soinside.com 2019 - 2024. All rights reserved.