Giving a Unit a Buff to a radius for other structures and units.
In this very descriptive tutorial you will learn how to apply an aura to a unit that will produce a buff for units in a radius around it. You will also learn what additional ways you can manipulate this buff so that you can have it applied to only the units you want it to applied to.
Any Color you find in Red is a Editable field presented to you by the Galaxy Editor Any Color you find in Yellow is a value you must enter into the field.
On the Behaviors tab add a new Behavior
Name the Behavior in this case name it Tutorial Aura
Click Suggest ID to give it its own unique name
Behaviors type Set to Buff
Click OK
Example:
We will now edit fields on the right side of this new Behavior
You can now chose the modification of your aura. For this tutorial we will chose Combat - Modification - Attack Speed Multiplier
Change the decimal value to your liking .1 = 10% For this tutorial I will use 1.1
Change Stats - Duration value to .5 (This is the duration of the buff active on the unit if not refreshed)
Your buff will need an UI Icon, Go to UI - Icon and chose something savvy, For this field I will use Assets\Textures\btn-tips-terran-penetrator.dds
Note: If you do not wish to yield a UI - Icon you can set Stats - Flags to Hidden
On to the Effects tab to add the effect of this Behavior
Add a new Effect ( Hotkey Ctrl + = )
You will set the name of the new Effect to the EXACT same name as your new Behavior, in this case Tutorial Aura
Click Suggest to give the ID a unique name
The Effect Type will be Apply Behavior
Click Ok
If you have set the name correctly The Behaviors Behavior will be listed in the lower left hand side of your new Effect as Tutorial Aura.
Next up we will be creating one additional effect.
Add a new Effect ( Hotkey Ctrl + = )
Name this EffectTutorial Aura (Search)
Click Suggest
In the pull down box Effect Type: Select Search Area
Click Ok
On the right hand side you will be editing the following field values.
Set the Search - Areas - Arc to a value of 360 by double clicking the field , Hitting the green Xand inputting 360 into the field.
Just under Search - Areas - Arc you will find Search - Areas - Effect, Here you will select the value of Tutorial Aura.
Note : If you chose to set Search - Areas - Maximum count to a value greater than 0, This will only apply the effect to that many of units, If set to 0 It wont apply the effect, If set to -1 It will apply to all units with in range.
Set Search - Areas - Radius to distance from the tower you wish the effect to be applied. As this effect may be for a tower defense I will use the radius of 10.
Search - Search Filters
You may look through these to restrict or allow this effect to be applied to certain buildings and or units. To allow the effect to be applied to a unit simply leave the allowed flag on the unit alone. To restrict this effect from being applied to a unit you will change the flag by right clicking on it and hitting exclude. To restrict the effect being applied by this search area you can set certain values to require. Meaning that it will not act if the target doesnt match the current state.
Ally - When Checked allows this effect to be applied to units owned by allied players.
Enemy - When Checked allows this effect to be applied to units owned by Enemy players.
Neutral - When Checked allows this effect to be applied to units owned by Neutral players.
Player - When Checked allows this effect to be applied to units owned by owning player.
Search - Flags
Call for Help - When a unit calls for help, Battle cry to initate units in the surrounding area to assist
Extend by unit radius - Extends the search radius by the radius of the unit on which this effect is active.
Offset by unit radius - Offsets the search radius by the radius of the unit on which this effect is active.
Same Cliff Level - Only effects units at its same elevation
Head back to the Behaviours tab
Add a new Behavior
Name the Behavior in this case name it Tutorial Aura (Buff)
Suggest for the ID Box
Behavior type Set to Buff
Click Ok
In the Effect - Effect - Periodic field Double click the empty field and select the Effect we just made. Which is Tutorial Aura (Search) and click Ok.
In the Stats - Period Field, We will set this value to .4 This is how often the buff is reapplied to units within range.
Your buff will need an UI Icon, Go to UI - Icon and chose something savvy, For this field I will use Assets\Textures\btn-tips-terran-penetrator.dds
We will now apply this aura to a unit. How bout a Marine!
First up go to your units tab and search for Marine.
Under Behavior - Behaviors - Behavior we will add aura buff we just created. Double click the field and hit the green X on the right side of the dialog box. A new box will open up with None selection. Select our Tutorial Aura (Buff) and click Ok. And then click Ok on the previous box.
You now have a marine that applies a attack speed buff to other units within its radius!
Thanks for reading this tutorial made by iMisu and Helral
Very nice guide and well explained, the pretty colours helped as well =p
I wanted to edit my buff so that it stacked and still applied (but stopped) outside of the range but that was easy enough to do by removing the duration value in the behaviours and increasing the maximum stack count. I like how you laid out the picture at the end as well that was a nice touch (Y)
need some help, i make a few aura but i want them to activate one at a time (like diablo 2 paladin aura).
example: Aura B is activated and when Aura A activate it will auto deactivate Aura B.
thanks for the great tutorial.
This is a bit more complex to do, but I'll try to guide you the best I can. This is how I would do it, there may however be other ways around.
For each Aura you want, create 2 effects : one Apply Behavior and one Remove Behavior. Make each one apply/remove the Aura behavior (not the buff behavior). Also, make each one target the caster by setting the field Unit - Unit + to Caster.
Next, Auras will need to be activated with Abilities for this to work. Let's say I want to create the ability to activate Aura A. Create a new ability (and a new button to go with it) using the ability type Effect - Instant.
Next, create a new effect with the effect type Set. A Set Effect is a combinaison of multiple effects. Go to your Set Effect and go to the Effect - Effects field. Add the Apply Behavior Effect for Aura A and the Remove Behavior Effect for Aura B. Finally, go to your Ability, to the Effect - Effect field and link it to your Set Effect.
Taa daa, you now have an ability that adds the Aura A to your unit and removes the Aura B. Repeat this for your Aura B, and C, and D, and etc...
Make sure that if say, an ability turns on Aura A, it remove all your other Auras (B, C, D, etc), not just Aura B.
Its actually very simple to do this without triggers. For example, take a look at the hive mind emulator. It has an effect that applies the behavior. All you have to do is edit "player +" in the behavior, and change it to caster. I haven't actually tried this myself, but I consider the editor's mouseover tooltip - "determines which player will own the unit the behavior is applied to" to be pretty clear.
Just followed this, however I can't figure out how to tailor it to my needs. I want an aura that gives nearby units extra shields.. say.. 50 shields. So any unit in range, whether they already have shields or don't have any shields, gets 50 shields. But I'm pretty new to behaviors and the like, and can't find anything even remotely like what I want. :(
Edit: NVM, I got it. Thanks to your tutorial, a problem that has been plaguing me for nearly a week has FINALLY been resolved. So thank you :D
Great tutorial. Even when there is another somewhere else, tutorials that are similar can be valuable. I find video tuts a waste mostly, while a text-based one like this is easy for me to follow very rapidly.
Giving a Unit a Buff to a radius for other structures and units.
In this very descriptive tutorial you will learn how to apply an aura to a unit that will produce a buff for units in a radius around it. You will also learn what additional ways you can manipulate this buff so that you can have it applied to only the units you want it to applied to.
Any Color you find in Red is a Editable field presented to you by the Galaxy Editor
Any Color you find in Yellow is a value you must enter into the field.
Example:
We will now edit fields on the right side of this new Behavior
Note: If you do not wish to yield a UI - Icon you can set Stats - Flags to Hidden
On to the Effects tab to add the effect of this Behavior
If you have set the name correctly The Behaviors Behavior will be listed in the lower left hand side of your new Effect as Tutorial Aura.
Next up we will be creating one additional effect.
On the right hand side you will be editing the following field values.
Note : If you chose to set Search - Areas - Maximum count to a value greater than 0, This will only apply the effect to that many of units, If set to 0 It wont apply the effect, If set to -1 It will apply to all units with in range.
Search - Search Filters
You may look through these to restrict or allow this effect to be applied to certain buildings and or units. To allow the effect to be applied to a unit simply leave the allowed flag on the unit alone. To restrict this effect from being applied to a unit you will change the flag by right clicking on it and hitting exclude. To restrict the effect being applied by this search area you can set certain values to require. Meaning that it will not act if the target doesnt match the current state.
Search - Flags
Head back to the Behaviours tab
We will now apply this aura to a unit. How bout a Marine!
First up go to your units tab and search for Marine. Under Behavior - Behaviors - Behavior we will add aura buff we just created. Double click the field and hit the green X on the right side of the dialog box. A new box will open up with None selection. Select our Tutorial Aura (Buff) and click Ok. And then click Ok on the previous box.
You now have a marine that applies a attack speed buff to other units within its radius!
Thanks for reading this tutorial made by iMisu and Helral
Not to take away from this, but also check out:
@iMisu: Go
very nice tutorial.
Very nice guide and well explained, the pretty colours helped as well =p I wanted to edit my buff so that it stacked and still applied (but stopped) outside of the range but that was easy enough to do by removing the duration value in the behaviours and increasing the maximum stack count. I like how you laid out the picture at the end as well that was a nice touch (Y)
This would be great, except this tutorial has already been made at least twice over, as seen above and seen here in this link as well. http://forums.sc2mapster.com/development/map-development/730-how-to-create-an-aura/
@KerenskyLI: Go
Eh, ones a video and the link you posted isn't as informative or as easy to follow for people who are new to the editor.
Fixed small typo and image positions to make page look nicer*
Great tut. I will be checking this out later and testing it when I am at home.
@darkdemondd:
Appreciation to condole. Thanks
need some help, i make a few aura but i want them to activate one at a time (like diablo 2 paladin aura).
example: Aura B is activated and when Aura A activate it will auto deactivate Aura B.
thanks for the great tutorial.
This is a bit more complex to do, but I'll try to guide you the best I can. This is how I would do it, there may however be other ways around.
For each Aura you want, create 2 effects : one Apply Behavior and one Remove Behavior. Make each one apply/remove the Aura behavior (not the buff behavior). Also, make each one target the caster by setting the field Unit - Unit + to Caster.
Next, Auras will need to be activated with Abilities for this to work. Let's say I want to create the ability to activate Aura A. Create a new ability (and a new button to go with it) using the ability type Effect - Instant.
Next, create a new effect with the effect type Set. A Set Effect is a combinaison of multiple effects. Go to your Set Effect and go to the Effect - Effects field. Add the Apply Behavior Effect for Aura A and the Remove Behavior Effect for Aura B. Finally, go to your Ability, to the Effect - Effect field and link it to your Set Effect.
Taa daa, you now have an ability that adds the Aura A to your unit and removes the Aura B. Repeat this for your Aura B, and C, and D, and etc... Make sure that if say, an ability turns on Aura A, it remove all your other Auras (B, C, D, etc), not just Aura B.
@Zomig291: Go
Although it kind of complicated but I’ll try it when free, thanks.
Can an Aura be USed with an Abillity example , give an AURA that does MindControl???
I have a unit that does mind control <sub>, </sub>
could i make it so any units that walk into the aura range gets MC and switches teams???
thanx
@Selfcreation: Go
you could use triggers for that.
@Selfcreation: Go
Its actually very simple to do this without triggers. For example, take a look at the hive mind emulator. It has an effect that applies the behavior. All you have to do is edit "player +" in the behavior, and change it to caster. I haven't actually tried this myself, but I consider the editor's mouseover tooltip - "determines which player will own the unit the behavior is applied to" to be pretty clear.
very nice .... love the colors
the goal is to use as little trigging as possible when doing abilities.
Unless your testing specific effects.
Just followed this, however I can't figure out how to tailor it to my needs. I want an aura that gives nearby units extra shields.. say.. 50 shields. So any unit in range, whether they already have shields or don't have any shields, gets 50 shields. But I'm pretty new to behaviors and the like, and can't find anything even remotely like what I want. :(
Edit: NVM, I got it. Thanks to your tutorial, a problem that has been plaguing me for nearly a week has FINALLY been resolved. So thank you :D
Great tutorial. Even when there is another somewhere else, tutorials that are similar can be valuable. I find video tuts a waste mostly, while a text-based one like this is easy for me to follow very rapidly.
Nice job!
What would I do if I wanted my aura to do 2 different things. I want it to apply a buff that heals allies and a debuff that damages only zerg.