• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Click "RG3" at the very bottom-left of this page to change it. To dismiss this notice, click the X --->

Question - Testing conditions (1 Viewer)

Joined
Sep 16, 2020
RedCents
588¢
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
INI:
/echo ${Group.MainTank.PctHPs
will output "100" (an actual percentage).

However, if I try to evaluate an expression, like this
INI:
/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
INI:
/echo ${Group.MainTank.PctHPs
will output "100" (an actual percentage).

However, if I try to evaluate an expression, like this
INI:
/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...

Sic

[sic]
Moderator
Joined
May 5, 2016
RedCents
23,352¢
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
INI:
/echo ${Group.MainTank.PctHPs
will output "100" (an actual percentage).

However, if I try to evaluate an expression, like this
INI:
/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
Joined
Sep 16, 2020
RedCents
588¢
use the macroquest expression evaluator

control+`
View attachment 42014

View attachment 42017

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
Thanks Sic! That's exactly what I was looking for. Either solution will work perfectly.
 

Users who are viewing this thread

Top