Hi. I have marine. He must can shot any other Allyed marines, but mustnt able shot any other Enemy marines. At the same time he must able shot any other units(enemy or allyed). Combine Validator(Enemy is Target and Is Marine validators inside, switch is AND) on Damage effect of gauss rifle didnt help me, enemy validating part breaks all. How I can do it
Could you detail the problem a bit more. From what I understand from the main post, you want the marine to be able to attack allied marines, not attack enemy marines, but be able to attack allied and enemy marines. Is the marine using an aoe attack?
-> D: unit filter validator with player, neutral, allied
-> B: combine validator with negation
. . . |-> C: unit type validator: target unit, marine
So, 4 valdiators ABCD. A contains B and D.
B negates C making it pass for everything that is not a marine.
D checks if it is player owned or neutral or allied.
Is Allied (Unit Filters) its like for search effect..
Is Allied Switch (Condition) :
(if) Is Allied And Marine (Is the unit a allied marine?)
If yes return TRUE.
So a hostile marine will return FALSE
(else) Is Not Marine (Its hostile, but it is a marine?)
If yes return TRUE
If no return FALSE
So in short... you combine "Is allied" and "hes marine" to check if hes a allied marine. So only the allied marine will return TRUE. What about the hostile marine? We don't want them. We set a "Else" to check if that a marine. If not we are golden. If he is, return FALSE then don't allow the attack.
I copy this... but when I try attack allyed marine my own just run to it without any errors... >< where my fault?)
Found. All ok. Last question. What if it can be not 1 type, but array? for example ling and rine types cant attack each other but can any other targets how I must change preset? or its too hard way? what if add custom atribute like massive and validate any enemy massive units as untargetable, as array of units I think can be too big to solve this only with validators
In tech alias just put in a string for units you want to share the same alias like the zerg hive/hatchery. You can then get validators or requirements to refer to that alias.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hi. I have marine. He must can shot any other Allyed marines, but mustnt able shot any other Enemy marines. At the same time he must able shot any other units(enemy or allyed). Combine Validator(Enemy is Target and Is Marine validators inside, switch is AND) on Damage effect of gauss rifle didnt help me, enemy validating part breaks all. How I can do it
Could you detail the problem a bit more. From what I understand from the main post, you want the marine to be able to attack allied marines, not attack enemy marines, but be able to attack allied and enemy marines. Is the marine using an aoe attack?
No. You wrong. What I want:
1) Marine can attack and be attacked by allied marines
2) Marine cant attack and be attacked by enemy marines
3) Marine can attack and be attacked by any enemy units which are not marine type of unit
4) Marine use standart gauss rifle weapon with standart damage effect
bump!
Validator:
A: combine OR:
. . . |-> C: unit type validator: target unit, marine
So, 4 valdiators ABCD. A contains B and D.
B negates C making it pass for everything that is not a marine.
D checks if it is player owned or neutral or allied.
I supose you want something like that?
Yes! Exactly! Can you tell me how works this. Cant just copy this, want figure out how it works. Anyway very very thanks!
Is Allied And Marine (Combine) :
Is Allied Switch (Condition) :
So a hostile marine will return FALSE
If no return FALSE
So in short... you combine "Is allied" and "hes marine" to check if hes a allied marine. So only the allied marine will return TRUE. What about the hostile marine? We don't want them. We set a "Else" to check if that a marine. If not we are golden. If he is, return FALSE then don't allow the attack.
I copy this... but when I try attack allyed marine my own just run to it without any errors... >< where my fault?)
Found. All ok. Last question. What if it can be not 1 type, but array? for example ling and rine types cant attack each other but can any other targets how I must change preset? or its too hard way? what if add custom atribute like massive and validate any enemy massive units as untargetable, as array of units I think can be too big to solve this only with validators
Everyone happy New Year and X-Mass
Use a tech alias for the 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
You mean if I in field Tech Allias of Marine add some units they are will also validate as "Marine" and same unit type will dont attack them?
In tech alias just put in a string for units you want to share the same alias like the zerg hive/hatchery. You can then get validators or requirements to refer to that alias.
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