• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Retrieve MQ2DataVars to Lua?

Joined
Dec 21, 2020
RedCents
30¢
In an MQNext macro, I declare a user-defined variable as: /declare foo string global value

Then in a Lua script, how would i retrieve the value of foo?

In the MacroScript to Lua 0.2 guide, 5c. Mixing Lua and Macro, I tried value = mq.TLO.Macro.Variable('foo')(), but that always returns nil
 
I will admit that my knowledge of the existing macro system is limited but I was able to retrieve values from variables declared as outer within a Lua script so perhaps it is the global keyword that is causing the issue?

IE:
/declare foo string outer testValue
...
/lua parse mq.TLO.Macro.Variable('foo')()
result: testValue
 
Question - Retrieve MQ2DataVars to Lua?

Users who are viewing this thread

Back
Top
Cart