• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Lua - No Lua access to MQ2 Global Variables

Within Lua, mq.TLO.Macro.Variable('macro_variable_name')() exposes an outer MQ2DataVar, but not a global variable. Can the global variables please also be exposed because it forces a macro to be running at all times (and not changed) in order to carry variables to exchange data between peers? Since global variables persist beyond a given macro, Lua scripts could communicate independently of whatever macro happens to be running at the time.
 
We don’t have a bug report for this and I wasn’t aware this was an issue. Can you give an example?
from any Lua script

mq.cmd('/declare myVarName int global 99')
val = mq.TLO.Macro.Variable('myVarName')()

this returns val as nil.

However, if you have a macro running then

mq.cmd('/declare myVarName int outer 99')
val = mq.TLO.Macro.Variable('myVarName')()

will return 99 for val.
 
Lua - No Lua access to MQ2 Global Variables

Users who are viewing this thread

Back
Top
Cart