FAQ  •  Register  •  Login

Target Logic Operator "&"

Moderator: MiRai

<<

gSe7eN

Posts: 9

Joined: Sun Feb 22, 2015 12:03 pm

Post Sun Feb 22, 2015 12:43 pm

Target Logic Operator "&"

So I have my key map all set up and it does its job as expected. I added a new action to step 1 that makes some of my characters /sit (via hotkey in game, this isn't the issue.) Works nicely for the most part. EXCEPT... I don't want my bard to sit. My bard is a member of ATG Melee, Debuffs, and Bards. So here is my actual target for this action:

Caster DPS&Melee&Tank&Healer&~Self&~Bards

Makes sense to me. But it's not working. SOOO, off to the console I go.

Attempt one:
Code:
RelayTargets "Caster DPS&Melee&Tank&Healer&~Self&~Bards":
Relay Targets in 'Caster DPS&Melee&Tank&Healer&~Self&~Bards':
. . .  0 Relay Targets


Not quite the result I expected. So I started experimenting with different variations. Attached is a screen shot of the actual output.

What am I doing wrong with the & operator??
Attachments
2015-02-22 12_33_45-Inner Space Uplink.png
2015-02-22 12_33_45-Inner Space Uplink.png (6.05 KiB) Viewed 11965 times
<<

bob

User avatar

League of Extraordinary Multiboxers

Posts: 4653

Joined: Sat Feb 15, 2014 11:14 am

Location: In the dining room, with the lead pipe.

Post Sun Feb 22, 2015 1:19 pm

Re: Target Logic Operator "&"

So, I know some of the examples that use very specific keywords have spaces in the advanced target examples, e.g. other, local, all...

But aside from using those specific keywords, I have found in if I put spaces in the ATG names then it either gives very unpredictable results or just doesn't work (IIRC, for me it just doesn't work, but maybe your's does).

So, I'd update your "Caster DPS" group to be Caster_DPS or CasterDPS, or something without a space, and try it again. The rest looks reasonable, except the lack of further info about who is in what group.


edit: Actually I see that when using the union (OR) operator, the spaces are ok, but the intersect (AND) operator it is not. So perhaps the processing of the intersect op has a bug with the spaces?
Last edited by bob on Sun Feb 22, 2015 1:24 pm, edited 1 time in total.
<<

gSe7eN

Posts: 9

Joined: Sun Feb 22, 2015 12:03 pm

Post Sun Feb 22, 2015 1:24 pm

Re: Target Logic Operator "&"

Fair point, I should do that anyway. However, ignoring the caster group...for example:

RelayTargets "Melee&Tank" or "Bards&Healers" etc etc, any combo thereof, also returns 0.
<<

bob

User avatar

League of Extraordinary Multiboxers

Posts: 4653

Joined: Sat Feb 15, 2014 11:14 am

Location: In the dining room, with the lead pipe.

Post Sun Feb 22, 2015 1:25 pm

Re: Target Logic Operator "&"

That implies that one of those groups don't have anyone in them that is in the other group.

&/intersect means that the character needs to be in both of the groups to either side of the operator.
<<

gSe7eN

Posts: 9

Joined: Sun Feb 22, 2015 12:03 pm

Post Sun Feb 22, 2015 1:34 pm

Re: Target Logic Operator "&"

That means I'm using an entirely wrong syntax, then. Just tested "RelayTargets "Healer&Curers" and it did return is2 as you stated it would.

So that clears up that, I was using & incorrectly, or rather understanding it completely incorrectly.

So I want my target to be "Caster_DPS AND Melee AND Tank AND Healer BUT NOT Self AND NOT Bards". How should I code this?
<<

bob

User avatar

League of Extraordinary Multiboxers

Posts: 4653

Joined: Sat Feb 15, 2014 11:14 am

Location: In the dining room, with the lead pipe.

Post Sun Feb 22, 2015 1:44 pm

Re: Target Logic Operator "&"

There are many ways to skin a cat....

If you mean what you wrote, then I'd do (Caster_DPS&Melee&Tank&Healer)&~(self,Bards).

If you mean that the first bunch of AND's could be "in this group, or that this other group, or even this other group", then I'd do (Caster_DPS,Melee,Tank,Healer)&~(self,Bards).

, | can both be used for OR, or union, or simply if you are in this group OR that other group then you are selected.




edit: put a little s on self.
Last edited by bob on Sun Feb 22, 2015 2:02 pm, edited 1 time in total.
<<

gSe7eN

Posts: 9

Joined: Sun Feb 22, 2015 12:03 pm

Post Sun Feb 22, 2015 1:47 pm

Re: Target Logic Operator "&"

My intent is to send the keystroke action to everyone belonging in those groups but NOT self or bards (My bards are members of bards and melee). So, let me play around with this information and see if this achieves my goal.
<<

bob

User avatar

League of Extraordinary Multiboxers

Posts: 4653

Joined: Sat Feb 15, 2014 11:14 am

Location: In the dining room, with the lead pipe.

Post Sun Feb 22, 2015 1:51 pm

Re: Target Logic Operator "&"

Ok, that'd be the second option then.

Having done VB programming for a while AND has meaning to me so writing it the way you did made my brain drop into VB mode :D .
<<

lax

User avatar

Site Admin

Posts: 7304

Joined: Tue Nov 17, 2009 9:32 pm

Post Sun Feb 22, 2015 1:55 pm

Re: Target Logic Operator "&"

I wrote this out before the last 4 replies and got pulled away, so I'm sending it anyway.

Yes the problem here is you're thinking of & as "this and that" instead of INTERSECT. :)

When you want to add things together, use either | or , -- so you wouldn't want Tank&Healer because you probably don't have anyone that is both a tank AND A healer, you clearly meant tanks AND ALSO healers. So here you want Tank|Healer, or Tank,Healer.

At the end you want to use & to filter the results against self and also bards.

(Caster_DPS|Melee|Tank|Healer)&~(self,Bards)

Return to Key Maps

Who is online

Users browsing this forum: No registered users and 0 guests

cron