• 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

Problem with Hud

Mikiky

Member
Hi all, this is my very first attempt to put together my own Hud for my SK. I keep getting this error message :

Unmatched bracket or invalid character following bracket found in index: "

Maybe I am just tired because I cant see the problem and it's probably staring me in the face :p

Other than the spamming of the error message, the Hud itself looks pretty damn good if I do say so myself!!!
 
The easiest way to troubleshoot this is to go line by line and comment every line out, reloading the hud every time. Once the error message stops spamming you, you've found the line the error is on. I'd do it myself, but sadly I don't really have the time to :( I work too much.
 
Never messed with a HUD in my entire life but I just skimmed through and I think I may have found the problem. Do this right here..

Rich (BB code):
Change:
GameTime4=3,250,110,0,240,240,${If[${String[${GameTime.Night}].Equal["TRUE"]},Night,Day]}

To:
GameTime4=3,250,110,0,240,240,${If[${String[${GameTime.Night}].Equal["TRUE"]},Night] } else { ${If[${String[${GameTime.Night}].NotEqual["TRUE"]},Day }}

Hud syntax is pretty different than macros that I'm used to so I'm not sure if that will work. But here's another idea, instead of saying why don't you just put

Rich (BB code):
Night: ${String[${GameTime.Night}]

That way it will just show up TRUE if it's night or FALSE if it's daytime. The reason I think this is the problem your having is because you have night, day after the if statement which doesn't make any sense. You can say if true then say night and else if false then say day. But again, I've never messed with HUDs before and I could be wrong let me know if that worked.

-UnKnoWn
 
Never messed with a HUD in my entire life but I just skimmed through and I think I may have found the problem. Do this right here..

Rich (BB code):
Change:
GameTime4=3,250,110,0,240,240,${If[${String[${GameTime.Night}].Equal["TRUE"]},Night,Day]}

To:
GameTime4=3,250,110,0,240,240,${If[${String[${GameTime.Night}].Equal["TRUE"]},Night] } else { ${If[${String[${GameTime.Night}].NotEqual["TRUE"]},Day }}

Hud syntax is pretty different than macros that I'm used to so I'm not sure if that will work. But here's another idea, instead of saying why don't you just put

Rich (BB code):
Night: ${String[${GameTime.Night}]

That way it will just show up TRUE if it's night or FALSE if it's daytime. The reason I think this is the problem your having is because you have night, day after the if statement which doesn't make any sense. You can say if true then say night and else if false then say day. But again, I've never messed with HUDs before and I could be wrong let me know if that worked.

-UnKnoWn

Hmm, editing with what you have in the first line did not work at all, it just returned a value of "null", so changed it back to the original line and it does give the correct values of "day" or "night"

Thank you for looking at this Sid and Unknown.. I'll see if I can figure it out by going through it one line at a time. The bummer of it all is there is no obvious errors that stand out as it runs as it seems to run ok and show all values correctly on the Hud itself as it runs.
 
Well, to narrow it down quickly, I'd comment out a section or two at a time. The moment it stops giving errors you know its in the section you commented out, then you can start uncommenting a few lines, etc then recomment a line or two until you narrow your search to where the problem is.
Troubleshooting FTL!
 
the problem is here
Rich (BB code):
${If[!${Me.AltAbilityReady[Fortify Companion}

change to

Rich (BB code):
${If[!${Me.AltAbilityReady[Fortify Companion]}

..... nice work ... looks nice


this one is fixed i think lol
 
Last edited:
the problem is here
Rich (BB code):
${If[!${Me.AltAbilityReady[Fortify Companion}

change to

Rich (BB code):
${If[!${Me.AltAbilityReady[Fortify Companion]}

..... nice work ... looks nice


this one is fixed i think lol

lol, that fixed it!!

And to think that I actually looked over it all twice! Thank you again for help zxcvbb and the compliment as well!!

Thank you too Sidd for ideas on how to do this :)

Does anyone else like this Hud? I can try my hand at making others if you like it this way :)
 
Problem with Hud

Users who are viewing this thread

Back
Top
Cart