How could you make a unit untargetable by any abilities and thus spell immune?
I thought the easiest way would be classify the unit as something such as 'Robotic' and then make all abilities unable to target that field. This would however force all spell immune to carry the Robotic field on them thou right?
If I could customize it to 'Spell Immune' it would be great but doesn't not possible right?
Well, you could do it the same way blizzard did for the unstunnable ultralisk: Add a behavior to the unit and use a validator to all spells. However, this would not be an improvement.
I don't know of a way, which is significantly better than the one you suggested.
For spell damage immunity, you could always add a behavior, which modifies incoming spell damage to 0, but you most likely want the spell effects to not occur, either.
Nop... Either use something like robotic, or use a combination of behavior and validator to check whether it has the behavior... (I could be wrong, i'd rather be wrong than right in this case)
Altough, if you want it to be spell-damage immune, you can just give it a behavior that reduces all spell damage to 0, but itll still be targeted by spells. Its a rather crappy but quick solution.
i made an Anti Magic Shield (wc3 like) that makes an unit spell immune.
its just an behaviour that lasts 30 seconds, having some shield actor.
after that a validator on the spell that i want to be immune against that checks if the behaviour is active.
works fine, only problem is the spell is still castable on that unit - not like the real anti magic shield that made the unit untargetable.
but it still works very well.
You can replace any attributes name in text editor. Even though it's not very flexible (you can't change units attributes in-game I believe) it'll work like you originally thought and will look pretty cool.
How could you make a unit untargetable by any abilities and thus spell immune?
I thought the easiest way would be classify the unit as something such as 'Robotic' and then make all abilities unable to target that field. This would however force all spell immune to carry the Robotic field on them thou right?
If I could customize it to 'Spell Immune' it would be great but doesn't not possible right?
is there another way?
Well, you could do it the same way blizzard did for the unstunnable ultralisk: Add a behavior to the unit and use a validator to all spells. However, this would not be an improvement.
I don't know of a way, which is significantly better than the one you suggested.
For spell damage immunity, you could always add a behavior, which modifies incoming spell damage to 0, but you most likely want the spell effects to not occur, either.
Nop... Either use something like robotic, or use a combination of behavior and validator to check whether it has the behavior... (I could be wrong, i'd rather be wrong than right in this case)
Altough, if you want it to be spell-damage immune, you can just give it a behavior that reduces all spell damage to 0, but itll still be targeted by spells. Its a rather crappy but quick solution.
Edit: Kueken beat me to it...
i made an Anti Magic Shield (wc3 like) that makes an unit spell immune.
its just an behaviour that lasts 30 seconds, having some shield actor.
after that a validator on the spell that i want to be immune against that checks if the behaviour is active.
works fine, only problem is the spell is still castable on that unit - not like the real anti magic shield that made the unit untargetable.
but it still works very well.
You can replace any attributes name in text editor. Even though it's not very flexible (you can't change units attributes in-game I believe) it'll work like you originally thought and will look pretty cool.
Just reduce all spell dmg to zero and run an instant dispel for all negative buffs.
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