I need help in creating a basic tower that slows down movement speed of any unit that comes in range. if anyone knows a tutorial that has something like that or if you can help me out that would be great thanks.
I can't tell you exactly how to do this, but I can give you some useful advice. Whenever you're trying to figure out how to do something like this, try to think of a unit from the melee mode of StarCraft (or the campaign) that has something kind of like what you want to do.
From your question, I thought that the Protoss Sentry unit has an aoe bubble called Guardian Shield. Take a look at the effects for that, you'll see three:
Sentry - Guardian Shield (Apply Behavior)
Sentry - Guardian Shield (Create Persistent)
Sentry - Guardian Shield (Search Area)
So from these abilities, you can look at them and see how they reference one another. I can see that the Create Persistent effect runs 30 times every .5 seconds (so 15 seconds), and each time it runs it is invoking Search Area. Look at Search Area to see how it's looking for nearby units, and then runs Apply Behavior to give a behavior to allied units.
The next step is to create a behavior that slows enemy units, so your search area will want to look for enemies rather than allies and you'll have to make a behavior that slows movement speed. You can look at the behavior Marauder - Slow, and copy that and change the values.
The unfortunate truth is that it takes a lot of time to explain this type of stuff, and your best bet to get skilled with the editor is to figure out how to figure this stuff out on your own.
I think the WoL campaign has a tower like that already built in, I don't remember the name right now but you can buy this tower with research points and it slows every Zerg unit around it down by a certain percentage.
You can access it in the editor if you activate the WoL Campaign Dependencies.
Otherwise, give the tower a Buff that fires a periodic Search Area Effect in the Effect: Periodic Effect field. Make this Search Area fire an Apply Behavior effect in the required radius that applies a new Buff which slows units down (You can modify that in the Buff: Modifications field I think it is called). You can make both the period of the periodic effect (in the Buff that you apply to your tower) and the slow buff duration really small (like anything between 0.0625 and 0.125) and that should make sure that units only get slowed inside the AoE radius of the tower because once they leave this radius the buff duration will expire and it doesn't get reapplied. While they stay in, the duration always gets refreshed.
I'm sure there are other ways to do it though. Also make sure you have the correct Search Filters in your Search Area effect (only enemies, no missiles, whatever you want).
check this tutorial out! its the basics to ALL Aura types. instead of making an ability , simply link the behavior directly to your *tower* instead of the ability. ( ability is to be able to turn it on and off if u wanted/)
As already stated above have a buff that uses a periodic search area effect that applies a second buff with a durartion just longer than the period of the first buff. The second buff slows the stuff and the search only applies to the correct units like the psi disruptor does for zerg.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?