Create Immunity

MissKerrigan

Active Member
Reaction score
23
Hi Guys

I know how to create an immunity for an 'effect'.
Just set the target filter in the 'search' menu.

Now I want to make an immunity for a behavoir
So I created an effect called 'apply behavoir' but can't find the search filter anywhere

help pls

MissKerrigan
 

Dave312

Censored for your safe viewing
Reaction score
269
You need to create a behaviour (of the type buff) that you want to apply and set that in the Behaviour: Behaviour field on the effect. On the bahaviour, you can use the Behaviour: Modification + property to make units with the buff invulnerable by checking Invulnerable in the State Flags under the behaviour tab.


EDIT: I may have misunderstood the question. Are you trying to make a unit invulnerable through a behaviour?
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
set the damage reduction to 100% with a behavior?

or did you want them to be immune to a behavior? be less vague please
 

Dave312

Censored for your safe viewing
Reaction score
269
set the damage reduction to 100% with a behavior?
Interestingly enough, 100% damage reduction doesn't actually stop the unit from receiving damage (the unit tends to take 1 damage from all attacks).
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
that depends, in game data there is a minimum damage field, it is 0.5, you can change this to 0.0 if you want the unit to be capable of taking no damage
 

MissKerrigan

Active Member
Reaction score
23
I try to create an immunity for a behavoir I try to explain better, damn my english sometimes :)

I programmed the Immortal unit with 2 effects:

1. Effect/Immortal (Phrase Disrupters) - Phase Disrupters (Damage) = just 10 damage
2. Effect/Stun Apply Behavoir (5% chance in this one) - Behavoir/stun (stun unit for 2.5 seconds)

Now what I try to create is an immune for this, so ONLY the numbe 1 up here must hit the enemy target and not the number 2



Well I noticed I can make an immunity for the queen poison:

1. Effect/Acid Spines (Launch Missile) - Acid Spines (Damage) = 5 damage
2. Effect/Poison Apply Behavoir (5% chance in this one) - Effect/Poison Damage (5 damage a second for 10 seconds)

So I went to the text editor and created a game attribute 'Immune for poison' and gave it to some enemy creeps
Ofcourse I had to set the Effect/Poison Damage up here the next: target filters - Immune poison excluded

But I don't know how to get the immunity for the stun effect (or also the slow, teleport and confuse effect I have)

OMG long story haha!!
Hope to think it's worth the time to read

Any help pls

Thxzzzz x
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
trigger the stun or make it so that the stun only targets non-(something) targets... ie: it cant target: massive; biological; armored; w/e you want it to not target, then change the unit between that and not that
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
trigger the stun or make it so that the stun only targets non-(something) targets... ie: it cant target: massive; biological; armored; w/e you want it to not target, then change the unit between that and not that

This most likely involves changing the attributes, something that might not be acceptable. It's also ugly :p Also, you can do it without triggers with target filters. You can also change the unit attributes(massive, biological and armored and such) with the data editor.

I would use a validator if there's not a lot of unite types that will be immune to the stun.

Open the validator tab in the data editor and make a new one of type unit-type.


Change Validator:Value to the unit type of the immune target.

Uncheck Validator:Find, otherwise it will ONLY target the immune unit type.

Then go find the stun effect, edit the Effect:Validators and add the validator you created.

Maybe you don't want a specific unit-type to be immune but maybe some hero unit uses an ability to become immune. In this case, you would make the ability apply an "immune" behavior, you would then make the validator of type "Unit compare Behavior Count". Change Validator:Behavior to the "Immune" behavior and the Validator:Value to 1.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
was only spitballing, and why is changing game constants so ugly in this? i have no problem with it in wc3
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
We're not talking about editing the gameplay constants. We're talking about unit attributes, this is things like "massive", "armored" and "mechanical". Since these attributes are shown when you select the unit and you need an attribute that is not used in some other way in your map. So you take some remote attribute, like "hover". In that case, people will see that the unit that is immune against the stun is "hover".

This is quite ugly and a way without having to give the unit a specific unit an attribute is better.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
i was meaning the constants for the invulnerablility comment, setting the minimum damage taken to 0.0 rather than 0.5

i could see how editing a unit could get ugly
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top