• 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 - Some general macro writing quiestions - arrays / comparing different variables

Rooster

Well-known member
First, Is there a way to ${If[1>${String},TRUE,FALSE]} ? All i really want to know is if ${String} is in fact a number , so it just needs to be any value. Or is there a way to type cast my variable from string to int to avoid unparsable and the type cast just makes it zero?


Second, the macro itself is using an array where it pulls a number of sections from the ini and 4 keys from each.. so a simple 2 dimensional array with [X ,4] elements where X is how many sections the user created or wants to create for the ini, how big an array is too big (the macro itself is very small ) I would prefer to do some HDD reads less by using a large array for most information, there will still be information pulled from the ini on each main loop iteration as it progresses? where each loop is for every X ultimately
 
Will

Rich (BB code):
${Int[${Me.Name}]}

produce a 0 or a >0 number if there are numeric chars in the string as in your name (gse7en) or will any non numeric in the string produce a 0?

Thanks.
 
Thanks , I'll have a play with what I have tomorrow night probably.

Will be sharing the macro when finished, I don't want to share something that could be non user friendly and also poor use of arrays if I let it be too large.
 
Question - Some general macro writing quiestions - arrays / comparing different variables

Users who are viewing this thread

Back
Top
Cart