• 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

Question - Events, wildcards and whitespace

Soandso2

Well-known member
How does macroquest handle the #*# wildcard in event triggers? As "something" or "nothing or something"?

From the documentation:
#event stuff "Ant #*# Cat"

This would trigger with /echo Ant Bird Cat

1) Do you NEED a wildcard to be present for the event to trigger? I.e. is #*# the same as "something" or is it the same as "nothing or something".
2) If no on question 1), do you need two spaces beween And and Cat for this to trigger, or would it trigger on /echo Ant Cat

Edit: And I am asking because I am currently coding without ability to test.
 
Last edited:
#*# is literally anything in that section, so it could capture the quick brown dog jumps over the lazy fox, or it could capture 123, as long as it fit the parameters.

and if you had "Ant #*# Cat" it would match anything between Ant to Cat. /echo Ant Cat has nothing in between, I believe.
 
#*# is literally anything in that section, so it could capture the quick brown dog jumps over the lazy fox, or it could capture 123, as long as it fit the parameters.

and if you had "Ant #*# Cat" it would match anything between Ant to Cat. /echo Ant Cat has nothing in between, I believe.
And NOTHING fits within in the scope of ANYTHING?

/echo Ant Cat has a space between Ant and Cat

/echo Ant #*# Cat has two spaces between And and Cat, even if the wildcard is not present at all.

I suppose it is better to explain why I ask. :) I am trying to set up some events for when I get experience.

events
Lua:
mq.event("RegExp1","You gain experience! (#1#)",regExperience)
mq.event("RegExp2","You gain experience (with a bonus)! (#1#)",regExperience)
mq.event("RegExp3","You gain party experience! (#1#)",regExperience)
mq.event("RegExp4","You gain party experience (with a bonus)! (#1#)",regExperience)
mq.event("RegExp5","You gain raid experience! (#1#)",regExperience)
mq.event("RegExp6","You gain raid experience (with a bonus)! (#1#)",regExperience)

is what I have. The question is, if I could make this more effective (just for the sake of things). (Not sure if "with a bonus" shows up on raid experience.)

Would "You gain #*# experience!" trigger on all three: "You gain experience!", "You gain party experience!" and "You gain raid experience!"
 
Last edited:
That wouldn't trigger on you gain experience because there are two spaces around the wildcard. You could just remove the spaces there
You gain#*#experience
Exactly, that's what I thought. Thanks!

And thus, I could boil this down to two trigger lines like so:

Event triggers for experience
Lua:
mq.event("AAExp","You gain#*#experience!",aaExperience)
mq.event("RegExp","You gain#*#experience#*#(#1#)",regExperience)
 
Last edited:
Question - Events, wildcards and whitespace

Users who are viewing this thread

Back
Top
Cart