• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Conditions

Turaj Steelfist

Seasoned veteran member
Joined
Apr 3, 2020
RedCents
3,350¢
So I have been selecting ini's with conditional statements when I could and now that my toons are at max level I am wanting to fine tune them as best I can. To do this I think I need to understand more about conditions. I have searched the site and I have been unable to locate a "how to make conditions" section. Is there one that I am missing? I am a visual learner and I may be able to figure out this conditions stuff if I had a base to work from. I am going to post a condition here if someone could dissect it for me and explain each part that would be a great place for me to start. FYI I have no coding experience so if coding is needed please let me know so I don't waste everyones time.

Cond20=${Math.Calc[${Target.ID} && ${Target.PctHPs}>1 && (${Me.Song[Quiescent Gambit].ID} || ${Me.Song[Evoker's Synergy I].ID})].Int}

My assumption is that this tells the wizard to cast QG if mobs hp is over a certain point and maybe there is bard song ES going?

On a side note is there any benefit to running a bard and enc in the same group? What I am liking most about kissassist is that I get to have toons in the group for which I have zero knowledge. I have never played a bard or zerker so I am certain that the ones in my group are not optimzed, heck tbh my pally tank that I drive, main for many years, is doing more dps than my zerker. I am not by any means saying that my pally is better, it is higher lvl and better geared and a lot more AAs, but I am 100% certain that since I never learned to play a zerker I do not have an optizmed ini. Heck I struggle knowing which AAs to buy so I am just going down the list buying the melee dps ones from top to bottom.

Thank you in advance for any help.
 
What you want is to look up TLO (Top Level Objects) on the MQ2 wiki and have a read of CWTN's guide/resource > Here <

You have the ${Math.Calc [ ] } wrapped around a few other simple comparisons/checks. Math.Calc is used for ...math... several numbers that you have/are accessing from other TLO's

Target.ID is just checking if you have a target, it could be anything a PC,NPC,Pet,Familiar, targetable box/chest or something. The macro would(should) already be handling this

You have a Target.PctHPs>1 , which is a usual common check. You want your targets HP above a certain percent before actually doing something. Though above 1 seems a bit superfluous

the ( || ) with your two Song ID checks is ok, you want the spell to cast when you have a either song present and the previous check (the Target.PctHPs && Target.ID) is also true

Overall, that condition won't work... the Math.Calc can't do anything with those things inside the [ ] and will not be able to make it an integer value as indicated by the .Int after the ]

You could have a look up at this TLO builder and you can /echo these things in game to see what results you get, which at times won't be possible unless you are mid battle etc.

Also MQ2Melee was where most people started to tinker with TLO's and conditions and there are some examples of the checks in the MQ2Melee discussion thread


To get characters going in group without having to setup/improve multiple class ini's at once, you could consider looking up RGMercs

generally, people will advise bard for a melee group and enc for a caster group. the two together don't go together great since they overlap a bit. But the two can work well together if your group is otherwise balanced to allow it
 
So I am checking out that wiki and it is super helpful. I am going to put a string here and see if I am on the right track.

/if ${Target.PctHPs}>25 and <100, cast "spellname", /sit}

So first off does this look correct? second will it make my toon evaluate the target's health and if that health is higher than 25% but lower than 100% cast the spell (name) otherwise sit?
 
You need a value for each > < comparison, the simplest way to do this is
Cond1=${Target.PctHPs} > 25 & & ${Target.PctHPs} < 100

You are using these conditions for kissassist?
If you are using them for kissassist, you don't need the cast/sit. They just go to the cond#= in the condition section then you can re use the condition in different spells etc

If you are making a hot key with an If statement to either cast the spell or otherwise sit the If needs to be the If TLO


${If[${Target.PctHPs}>25 & & ${Target.PctHPs}<100,TRUE,FALSE]}

Now,you can replace TRUE and FALSE with commands you can either put a / at the very beginning of the /${If, and have the commands without the / or leave it off the start and put a slash with each command... But don't so both because it will then try and do //sit or something which won't work

So you could replace TRUE with
/cast "spell name"

And replace FALSE
/sit

To further enhance the /cast, you cast use /casting from MQ2Cast


Again, if you are using kissassist you probably need to step back from spell casting and just use the conditions as intended there. For now, using /echo in game will let you see what your TLOs are evaluating and comparing against
 
Thank you. Yes I am using kissassist right now. I am just liking this conditionals and am wanting to learn more. that wiki you suggested is amazing.
 
The best advice I can give is use /echo in game and trial and error with that as you go



I am no great expert or anything, but I learnt everything from the original mq2 manual and the wiki and simply looking at what other people were doing

Reading someone else's question/post is valuable too, since you may not be able to help initially, but seeing what they are doing and seeing the help they get you can learn plenty of things
 
Question - Conditions

Users who are viewing this thread

Back
Top
Cart