I need to convert this to Lua. Can anyone smarter than me help?
/if (${Spawn[=${EventArg1}].ID}==${Me.ID})
I am trying to write Lua event for Griklor chase part.
Thanks.
This is the answer:
For this event, Griklor only names and does not target you.
Also, he only names you on one of the emotes.
When he points at you, that is the only time you can get a name from him. This gave me headaches because I thought my code was not working.
This is the code for my question above, for those learning Lua.
----------------------------------------------------------------------
Use name if you want to know what name he picked.
local function event_handler(line, name)
if name == mq.TLO.Me.CleanName() then
-----------------------------------------------------------------------
Use target if you want to know what target he picked.
local function event_handler(line, target)
if target == mq.TLO.Me.CleanTarget() then
----------------------------------------------------------------------
/if (${Spawn[=${EventArg1}].ID}==${Me.ID})
I am trying to write Lua event for Griklor chase part.
Thanks.
This is the answer:
For this event, Griklor only names and does not target you.
Also, he only names you on one of the emotes.
When he points at you, that is the only time you can get a name from him. This gave me headaches because I thought my code was not working.
This is the code for my question above, for those learning Lua.
----------------------------------------------------------------------
Use name if you want to know what name he picked.
local function event_handler(line, name)
if name == mq.TLO.Me.CleanName() then
-----------------------------------------------------------------------
Use target if you want to know what target he picked.
local function event_handler(line, target)
if target == mq.TLO.Me.CleanTarget() then
----------------------------------------------------------------------
Last edited:

