I got a Text Event that just wont trigger, and I have no idea why.
The idea is to trigger some custom code when the last mob in the XTarget list dies. So, I have created a Text Event that triggers on the sentence
Unfortunately, the event does not trigger. I have tried other Text combinations such as
What am I doing wrong? Thanks!

The idea is to trigger some custom code when the last mob in the XTarget list dies. So, I have created a Text Event that triggers on the sentence
You have gained (#1#) party experience! (#2#), and the code inside the event is...
Code:
local mq = require('mq')
if not package.loaded['events'] then
end
local function on_load()
end
local function event_handler(line, exp, exppct)
if mq.TLO.Me.XTarget() == 0 then
print("Success!")
end
end
return {eventfunc=event_handler}
Unfortunately, the event does not trigger. I have tried other Text combinations such as
You have gained * , You have gained (*) party experience! (*) or * party experience *, but no luck. The print("Success!") just doesnt get printed.What am I doing wrong? Thanks!

Last edited:




