Is there another example other than the Frenzy that you know of?
Basically what I'm trying to do is create something I don't think anyone has done yet. The hero in my map has something similar to a profession. If he wants to build structures or create items, he needs to gather items or in my case materials, then in his command card page 2 select "build campfire".
I'll try the trigger, but I don't know what kind of event to use for it and how to go about disabling the ability or immediately canceling it after the hero is ordered to build or craft something.
I dont see what that has to do with anything. I Made a combo point system that Uses dummy Behavior Buffs, and it uses the Validator I described just fine.
'Unit Compare Behavior Count' is the exact Validator type in the Editor.
You can make a requirement check for buffs on the unit that is building. Here's a map for reference.
I gave the probe an ability that applies a self buff that is required to build buildings, and changed all protoss buildings to require this buff to be set. The requirement need to count behaviors completed at unit of this type. All in the data editor.
Just ask if there's anything unclear in the map.
Edit: Sorry, didn't see Lilianna already gave you the answer.
Choose your behavior and say Equals To 1, or Greater then 1 depending on the type of Behavior.
I actually tried this earlier today and have been poking around trying to find a solution.
The validator that has the "Has Flint" behavior and says Equal to 1 disables my "Build Campfire" ability even though I can clearly see my hero has the "Has Flint" buff. I looked at the item, behavior, and validator data type and I really have no idea how to pin point the problem.
I'm just going to try builderbobs requirement approach.
This is probably the last time I tried doing something as complex as this in the data editor. This thing is missing so many tooltips i have no idea what the hell some of the fields do.
You can make a requirement check for buffs on the unit that is building. Here's a map for reference.
I gave the probe an ability that applies a self buff that is required to build buildings, and changed all protoss buildings to require this buff to be set. The requirement need to count behaviors completed at unit of this type. All in the data editor.
Just ask if there's anything unclear in the map.
Edit: Sorry, didn't see Lilianna already gave you the answer.
Thanks! it works perfectly now!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
How do I make a validator that checks if the casting unit has a specific behavior or a specific buff? or could I do with with a requirement?
@cinicraft: Go
You can do it via trigger. this is easier
Or you can take a look at Frenzy. Frenzy's validator is checking if a unit has lists of behavior.
To Check if a Unit has a Behavior the Validator you want is Unit Behavior Count.
Choose your behavior and say Equals To 1, or Greater then 1 depending on the type of Behavior.
@Maknyuzz: Go
Is there another example other than the Frenzy that you know of?
Basically what I'm trying to do is create something I don't think anyone has done yet. The hero in my map has something similar to a profession. If he wants to build structures or create items, he needs to gather items or in my case materials, then in his command card page 2 select "build campfire".
I'll try the trigger, but I don't know what kind of event to use for it and how to go about disabling the ability or immediately canceling it after the hero is ordered to build or craft something.
The behavior is a buff with no effects. I feel like its the best way to do it via the data editor.
@cinicraft: Go
I dont see what that has to do with anything. I Made a combo point system that Uses dummy Behavior Buffs, and it uses the Validator I described just fine.
'Unit Compare Behavior Count' is the exact Validator type in the Editor.
You can make a requirement check for buffs on the unit that is building. Here's a map for reference.
I gave the probe an ability that applies a self buff that is required to build buildings, and changed all protoss buildings to require this buff to be set. The requirement need to count behaviors completed at unit of this type. All in the data editor.
Just ask if there's anything unclear in the map.
Edit: Sorry, didn't see Lilianna already gave you the answer.
Its just this data editor can be very... difficult to read and comprehend.
I actually tried this earlier today and have been poking around trying to find a solution.
The validator that has the "Has Flint" behavior and says Equal to 1 disables my "Build Campfire" ability even though I can clearly see my hero has the "Has Flint" buff. I looked at the item, behavior, and validator data type and I really have no idea how to pin point the problem.
I'm just going to try builderbobs requirement approach.
This is probably the last time I tried doing something as complex as this in the data editor. This thing is missing so many tooltips i have no idea what the hell some of the fields do.
Thanks! it works perfectly now!