I have an effect set that only should be applied to units that aren't enemy to the casting player.
It's part of a healing ability. But it shouldn't be able to heal "enemies in disguise"
(= caster is allied to them, but they aren't allied to you).
I thought there were validators for that. So I tried to fiddle with "player alliance" validators and "player requirement", but I had no success.
Does anyone know how to set that up to work?
I could workaround that with 2 heal abilities: one for teamA and one for teamB and then check for disguise behavior for team A and team B, but such a validator might be pretty good to have.
Well that first sentence is a paradox, how can it only target non enemy units to thethe caster? Do you mean like a taunt ability that forces them to attack the caster?
Just exclude the mimic morphed units since they are different from the originals via a Unit Type validator.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Situation:
- A has a passive healing behavior that targets his allies with a search effect.
- B has a spell that will change the alliance settings per trigger for A for a few seconds which allows him that A cannot attack B. Other players can attack B normally. So basically B is sort of disguised.
Alliance situation in that case:
A is allied with B.
B is enemy with A.
- B needs to destroy A to win, but A accidentally heals B, so other players have a hard time stopping him from doing that (basically he needs to reach A and kill A to win because A heals him.).
So I would like to have the Healing Effect Set to only apply to units that are allied to the casting player.
Basically I don't want to heal people that can kill you.
Also, I can't disable the healing to B when he is disguised because there is a player C which is there to heal him.
I just got the idea that I could add a behavior to the healers to which team they belong to and 1 in disguise behaviors for each team. Then I can use the combination of 2 validator groups as the healing validator: (isTeam1 AND notInDisguiseOf2 ) or (isTeam2 AND notInDisguiseOf1).
@DrSuperEvil: Go
That's already needed to make A not heal A's enemys from A's sight of the alliance.
Problem is that B is the friend of A in A's point of view. I just want the behavior to be more clever and check if B is allied to A, too. (Search effect applies the set to everyone who is allied, set should filter out who isn't a real friend).
Alliances can be one sided (!) and that flags only check the source's point of view at the alliance. :S
The perfect solution would be a validator that returns true, if NOT( TARGET sees SOURCE as ENEMY).
I would need 2 validators here, one that negates the result (easy) and one that checks the alliance from the target's point of view.
But I just don't understand alliance checks in the validators in first place. :S
edit:
Worked around my problem with team belonging behavior + disguise behaviors for each team and validators checking if any disguise behavior exists that you belong to the correct team.
Also could have just used a middle effect that applies an effect to the one player and uses it as the source for the ally frame of reference, but your method also can work.
I have an effect set that only should be applied to units that aren't enemy to the casting player.
It's part of a healing ability. But it shouldn't be able to heal "enemies in disguise"
(= caster is allied to them, but they aren't allied to you).
I thought there were validators for that. So I tried to fiddle with "player alliance" validators and "player requirement", but I had no success.
Does anyone know how to set that up to work?
I could workaround that with 2 heal abilities: one for teamA and one for teamB and then check for disguise behavior for team A and team B, but such a validator might be pretty good to have.
Well that first sentence is a paradox, how can it only target non enemy units to thethe caster? Do you mean like a taunt ability that forces them to attack the caster?
Just exclude the mimic morphed units since they are different from the originals via a Unit Type validator.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go 2 Players: A and B.
Situation:
- A has a passive healing behavior that targets his allies with a search effect.
- B has a spell that will change the alliance settings per trigger for A for a few seconds which allows him that A cannot attack B. Other players can attack B normally. So basically B is sort of disguised.
Alliance situation in that case:
A is allied with B.
B is enemy with A.
- B needs to destroy A to win, but A accidentally heals B, so other players have a hard time stopping him from doing that (basically he needs to reach A and kill A to win because A heals him.).
So I would like to have the Healing Effect Set to only apply to units that are allied to the casting player.
Basically I don't want to heal people that can kill you.
Also, I can't disable the healing to B when he is disguised because there is a player C which is there to heal him.
I just got the idea that I could add a behavior to the healers to which team they belong to and 1 in disguise behaviors for each team. Then I can use the combination of 2 validator groups as the healing validator: (isTeam1 AND notInDisguiseOf2 ) or (isTeam2 AND notInDisguiseOf1).
I presume you use a Search Area effect, just set the filters on that to friendly.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go That's already needed to make A not heal A's enemys from A's sight of the alliance.
Problem is that B is the friend of A in A's point of view. I just want the behavior to be more clever and check if B is allied to A, too. (Search effect applies the set to everyone who is allied, set should filter out who isn't a real friend).
Alliances can be one sided (!) and that flags only check the source's point of view at the alliance. :S
The perfect solution would be a validator that returns true, if NOT( TARGET sees SOURCE as ENEMY).
I would need 2 validators here, one that negates the result (easy) and one that checks the alliance from the target's point of view.
But I just don't understand alliance checks in the validators in first place. :S
edit:
Worked around my problem with team belonging behavior + disguise behaviors for each team and validators checking if any disguise behavior exists that you belong to the correct team.
Also could have just used a middle effect that applies an effect to the one player and uses it as the source for the ally frame of reference, but your method also can work.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg