• 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 - Testing conditions

blahblahblah84

Well-known member
I've been trying to get better at developing conditions, but I can't figure out how to test the conditions properly. I'm hoping someone can help me out here.

I can use echo to output information from the object hierarchy. For example
Code:
/echo ${Group.MainTank.PctHPs
will output "100" (an actual percentage).

However, if I try to evaluate an expression, like this
Code:
/echo ${Group.MainTank.PctHPs} < 25
will output "100 < 25" as opposed to outputting the actual evaluation that I would like which should be "false".

Is there a way to test these expressions in conditions without just adding them to the kissassist .ini and then hoping they work? I've looked at the ChatWithThisName guide here (Guide 1), but it doesn't mention how to test the code expressions.
 
Solution
I've been trying to get better at developing conditions, but I can't figure out how to test the conditions properly. I'm hoping someone can help me out here.

I can use echo to output information from the object hierarchy. For example
Code:
/echo ${Group.MainTank.PctHPs
will output "100" (an actual percentage).

However, if I try to evaluate an expression, like this
Code:
/echo ${Group.MainTank.PctHPs} < 25
will output "100 < 25" as opposed to outputting the actual evaluation that I would like which should be "false".

Is there a way to test these expressions in conditions without just adding them to the kissassist .ini and then hoping they work? I've looked at the ChatWithThisName guide here (Guide 1), but it doesn't mention...
I've been trying to get better at developing conditions, but I can't figure out how to test the conditions properly. I'm hoping someone can help me out here.

I can use echo to output information from the object hierarchy. For example
Code:
/echo ${Group.MainTank.PctHPs
will output "100" (an actual percentage).

However, if I try to evaluate an expression, like this
Code:
/echo ${Group.MainTank.PctHPs} < 25
will output "100 < 25" as opposed to outputting the actual evaluation that I would like which should be "false".

Is there a way to test these expressions in conditions without just adding them to the kissassist .ini and then hoping they work? I've looked at the ChatWithThisName guide here (Guide 1), but it doesn't mention how to test the code expressions.
use the macroquest expression evaluator

control+`
1663711165497.png

1663711307574.png

you will want to use either ${Bool[condition]}

or if you're just wanting to type stuff and not use the expression evaluator you need to /if (${Target.PctHPs} > 25) /echo True
you can also use ${If for an if/else
 
Solution
Macros like KissAssist and MuleAssist have conditions that get evaluated to decide whether to perform some action. like a condition whether to cast a heal might check if the target is below some % HP. A condition to use an AOE might check the number of mobs on XTarget.

Macro expression evaluator is a window that lets you enter macro expressions and see what they resolve to when MQ evaluates them. So, if you wanted to test a condition you might use for KA or MA, you could plug it in there and see if it has the sort of result you expect.
 
Question - Testing conditions

Users who are viewing this thread

Back
Top
Cart