• 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 - How to write a condition to tell if MainAssist is in the same zone

Joined
Dec 24, 2017
RedCents
1,813¢
What would be the specific conditional language that would tell me if the Main assist was in the same zone I am in?
 
Always love folks macroing more, One of the hardest lessons i have had to learn, was to exactly this type of stuff. so here is a link to Datavars.

Group Datavar

The mq2 wiki lists tlos, And Datavariables u can use with each.
From reading it Looks like the Cmmand would be something like $Group.Mainassist.otherzone or something like Syntax always messes me up till i type it a few times and then test it. But that link will put u on the path!

So Assuming you get the Conditional Syntax mocked up right /if (!$Group.Mainassist.otherzone) { /do this } The ! means if the statement is not true SO with the context being Otherzone thus if they are not in a different zone do This.
 
Anytime P:) and if u wanna wade into the land of macros My favorite learning tool was find a macro i liked that was missing something i needed or wanted and then putting it in to it.
 
Here is a little trickier one. how would I /echo the Group assists target?

${Group.MainAssist..Name} comes up with the name of the assist, but can not figure out how to tell his target and I am trying /sigh
 
I have a second tank who just does dps unless my main tank (MA) is over 100 range:

!${Spawn[pc radius 100 MyTanksName]}

I like it because if I am pulling and something aggroes my group then the second tank will just step up. And in big fights if MA dies, second tank steps up. Checking the zone would be good though too, I might do some testing on which they react to faster.
 
I found both the wiki and the original mq2 manual earlier on invaluable resources, but I wouldn't of gotten anywhere without looking through other peoples macro code.

If I didn't know how to do something, or couldn't work out how I should do something I would look up similar macros and read through them. As you learn more and more, reading more macros you tend to be reading for how your logic should work as opposed to how the TLO's are used etc.

I credit pretty much everything I know to the people on this site and some others.

I am not a coder/IT guy by profession, I am a nurse... so glad for all the documentation and information sharing here and elsewhere.
 
Ya I totally Agree. The tlos and the Manual are wonderful. But i also really Find seeing others macros and how they work to be helpful.
${Spawn[${Spawn[id ${assistid}].AssistName}] is handy if your Not using the Group TLO. but want to use a Var to set the MT. in Ihc we use assistid. and not the Group.mainassist for example.

When they Start to get Inside each other like this i find it gets a to be a bit Eyewhelming counting brackets LOL
 
Question - How to write a condition to tell if MainAssist is in the same zone

Users who are viewing this thread

Back
Top
Cart