• 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 - Is there a way to set off an event based on in game text such as an emote? (1 Viewer)

calaxa

Member
Not sure where this question should go but hopefully this is the right place.

I am trying to fire off an event (be it via holy or via macro) that will be triggered by in game text such as an emote. To give a concrete example, I want someone to duck if there is an emote or to backoff if there is a different emote.

If this can be done via holies, I just need the TLO for the trigger (ie /if ${TLO} /keypress d)
 
Rich (BB code):
#event FunctionName "event text"

Sub Event_Function
/end

Then in the main body of your code you want it to do

Rich (BB code):
/doevents


So let's say your text is "Gonzo begins to cast the spell nose swipe." At which point a mob named Gonzo (love the muppets) is going to do an AE that hits anyone standing.. so you want to duck.

Rich (BB code):
#event DuckIt "Gonzo begins to cast the spell nose swipe." 

Main 
     :Loop1
      /doevents
     /goto :Loop1
/return

Sub Event_Duckit
      /if (!${Me.Ducking}) /keypress duck
/return

This code has not been tested but gives you a general idea of the event/sub structure.
 
As far as I know, it's not doable. I don't think there is any sort of event TLO that would allow you to do it anyway. Gonna do some research, maybe Maskoi or Treehugger know.
 
omg...even easier than i thought....thanks

also /duck is an emote isn't it? not the actual duck command?
 
I typed /duck in game and the toon doesn't actually duck......instead he seems to emote [toonname] ducks behind target
Just wondering if it actually ducks or I have to do /keypress d (default keybind)
 
I typed /duck in game and the toon doesn't actually duck......instead he seems to emote [toonname] ducks behind target
Just wondering if it actually ducks or I have to do /keypress d (default keybind)

There is no actual slash command to duck in eq (as far as i know of.. unless they snuck one in and never mentioned it lol).

You are correct in assuming you should have to /keypress the key that you currently have bound to duck.
 
I'm still playing around with this and can't seem to get this to trigger just yet. This is what I have:

[Duck]
trigger=You should duck.
command=/keypress d

Now the trigger will be an emote that I will have either going to main window or filtered to a new chat window (filter as other) There is leading text prior to the actual trigger. Do I need a wildcard such as #*# I'm not understanding what the variables such as #1# #2# mean in the example.

Also, I notice that when I am in melee combat, pressing d to duck doesnt seem to work. I may need a multipart command to turn attack off. Is it possible to do:

command=/multiline ; /melee off ; /keypress d

I know this is getting very specific now and I might just have to play through the encounter in mind to test this out but if anyone knows, please send me info.
 
xorrb 1 is one....another is slave driver thokk in plane of war. Both while doing manually I am successful about 95% of the times so it's very frustrating when you wipe at 5% on the mob :(
 
I'm still playing around with this and can't seem to get this to trigger just yet. This is what I have:

[Duck]
trigger=You should duck.
command=/keypress d

Now the trigger will be an emote that I will have either going to main window or filtered to a new chat window (filter as other) There is leading text prior to the actual trigger. Do I need a wildcard such as #*# I'm not understanding what the variables such as #1# #2# mean in the example.

Also, I notice that when I am in melee combat, pressing d to duck doesnt seem to work. I may need a multipart command to turn attack off. Is it possible to do:

command=/multiline ; /melee off ; /keypress d

I know this is getting very specific now and I might just have to play through the encounter in mind to test this out but if anyone knows, please send me info.

I believe the default kepress now is x, but of course you can change this in your in-game options menu (ALT+O) then select the Keys tab, it is under the movement category.
 
default is d and alternate is x.......that's why it's annoying and i was looking for a /duck command which I see is an emote. So that means some clients have to be keypress d and some keypress x depending when it was downloaded or if keys were rebinded. Of course I can go back and try to standardize it but now it's getting tedious but thanks for the heads up GPS
 
Question - Is there a way to set off an event based on in game text such as an emote?

Users who are viewing this thread

Back
Top
Cart