Does anybody know how i can make an AoE spell that will damage units surrounding the caster? Similar to the stomp spell in WC3. I have the ability and the effect set up but wen I activate the ability it doesnt do any damage.
Go to effects, create an effect of type damage and name it what you want, then click suggest on the field below.
Set the Amount to the damage you want it to do
Search for "Search - Area" (or something along those lines.), double click it
Click the green X to add a value
Change radius to whatever you want your radius to be, then set the fraction to 1. (you can also make multiple values with different fractions and radii if you want the AoE to be weaker the further away it gets)
Create an ability of type "Effect-Instant", possibly name it the same as your effect, and hit suggest. If you chose the same name, the "Effect - Effects +" should already have your effect in it, if not, change the default effect to what you made.
Set ability costs, make a button, add ability to unit, add the button to the command card and it should work.
Off the top of my head : Go to your caster unit's actor and create a new event. Set the even to an Effect event, and set the effect to your effect and have it on Start. Then set the action to Animation Play, give if some name and simply set the animation to Attack - Variation 00 or Variation 01 or etc. Set flags to non looping. This makes your caster animation on cast.
To create visual for your spell, you have to create a new actor that's Model Addition (One Shot or not, I still haven't figure out the difference). Actor event with same event as your caster unit's but this time you set action to Create Actor (creates your actor when this effect starts). Then set a new event to Actor Creation and set the action to Animation Play and play a Birth Stand Death(BSD) animations). Now create a model for your actor, this model will be whatever you want.
If you mean animation as some kind of fancy explosion or something, first you'll need a model. Use the previewer to find one that you like.
Then create an actor and set its model to the one you chose (if you cant find the model on the list, go to the models tab and create a new one with the correct model set)
Open the events.
Add event:
"Effect.[effects name].Start
- Create"
Add event:
"ActorOrphan
- Destroy"
EDIT: Don't forget to set the scale for your actor to actually be large enough :p trial and error is the only possibility here
This might not work though since you're using a damage effect. What i mean, is that the damage effect happens at the unit it hits probably and might make the actor spawn on every unit it hits. If that is what happens, just create a persistent effect (or maybe even a set effect) and make it's initial effect be the one you made before, and make the ability link to that effect as well (basically just extends your effect chain by 1 effect, which is just a dummy for the actor)
If you want the unit to actually have an animation, do what raydude said. You can also set different animations instead of attack, use the previewer to find their names and see how they look, and you can also instead of "effect.[effect name]" set it to "Ability.[ability name].[Not sure what these fields are called, but they are straightforward]" instead, because the same thing might happen again as with the special effect of the spell i mentioned in the previous thing (what i mean is that you might make the units hit by the effect play the animation, which is unlikely. Still, if it happens, you know what to do now)
Okay guys i tried what both of you said and it's not working. there is no animation when i cast the spell. Can you guys try being a bit more specific please or maybe you could think of a mistake i may have made.
Go to actors, open the actor you modified (still dont know whether you wanted an explosion or just a unit animation) and open the "events +" field, and screenshot it and attach it to your next post.
Quote from raydude714:
create a new actor that's Model Addition (One Shot or not, I still haven't figure out the difference).
A One shot animation model is destroyed once it completes its animation. A Continuous one will keep repeating the animation and you have to program it so that it is destroyed whenever you need to remove it.
Aight. Send me a PM after you post as well if possible, with a link to this topic. I might forget to check >.<
If i have the time, i'll get screenshot's of my own abilities actors. Also, specify what effect type the effect you're using in the events is.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Does anybody know how i can make an AoE spell that will damage units surrounding the caster? Similar to the stomp spell in WC3. I have the ability and the effect set up but wen I activate the ability it doesnt do any damage.
Try copying the Predator's Retribution Field from the campaign files.
Go to effects, create an effect of type damage and name it what you want, then click suggest on the field below.
Set the Amount to the damage you want it to do
Search for "Search - Area" (or something along those lines.), double click it
Click the green X to add a value
Change radius to whatever you want your radius to be, then set the fraction to 1. (you can also make multiple values with different fractions and radii if you want the AoE to be weaker the further away it gets)
Create an ability of type "Effect-Instant", possibly name it the same as your effect, and hit suggest. If you chose the same name, the "Effect - Effects +" should already have your effect in it, if not, change the default effect to what you made.
Set ability costs, make a button, add ability to unit, add the button to the command card and it should work.
@TheAlmaity: Go
I made the ability but when i click it on my hero the ability isnt doing any damage. The hero channels the ability and spends the energy.
@danny15002: Go
Alright i fixed it myself even though im not sure how. Can anyone now tell me how to give it animation?
Off the top of my head : Go to your caster unit's actor and create a new event. Set the even to an Effect event, and set the effect to your effect and have it on Start. Then set the action to Animation Play, give if some name and simply set the animation to Attack - Variation 00 or Variation 01 or etc. Set flags to non looping. This makes your caster animation on cast.
To create visual for your spell, you have to create a new actor that's Model Addition (One Shot or not, I still haven't figure out the difference). Actor event with same event as your caster unit's but this time you set action to Create Actor (creates your actor when this effect starts). Then set a new event to Actor Creation and set the action to Animation Play and play a Birth Stand Death(BSD) animations). Now create a model for your actor, this model will be whatever you want.
If you mean animation as some kind of fancy explosion or something, first you'll need a model. Use the previewer to find one that you like.
Then create an actor and set its model to the one you chose (if you cant find the model on the list, go to the models tab and create a new one with the correct model set)
Open the events.
Add event:
"Effect.[effects name].Start
- Create"
Add event:
"ActorOrphan
- Destroy"
EDIT: Don't forget to set the scale for your actor to actually be large enough :p trial and error is the only possibility here
This might not work though since you're using a damage effect. What i mean, is that the damage effect happens at the unit it hits probably and might make the actor spawn on every unit it hits. If that is what happens, just create a persistent effect (or maybe even a set effect) and make it's initial effect be the one you made before, and make the ability link to that effect as well (basically just extends your effect chain by 1 effect, which is just a dummy for the actor)
If you want the unit to actually have an animation, do what raydude said. You can also set different animations instead of attack, use the previewer to find their names and see how they look, and you can also instead of "effect.[effect name]" set it to "Ability.[ability name].[Not sure what these fields are called, but they are straightforward]" instead, because the same thing might happen again as with the special effect of the spell i mentioned in the previous thing (what i mean is that you might make the units hit by the effect play the animation, which is unlikely. Still, if it happens, you know what to do now)
Alright guys thanks you so much. I'm gunna go try these things and will post again to inform of my success ( or failure).
Okay guys i tried what both of you said and it's not working. there is no animation when i cast the spell. Can you guys try being a bit more specific please or maybe you could think of a mistake i may have made.
Go to actors, open the actor you modified (still dont know whether you wanted an explosion or just a unit animation) and open the "events +" field, and screenshot it and attach it to your next post.
@TheAlmaity: Go
What i want is an explosion. I will post that screen shot as soon as im done typing this essay DX
Aight. Send me a PM after you post as well if possible, with a link to this topic. I might forget to check >.<
If i have the time, i'll get screenshot's of my own abilities actors. Also, specify what effect type the effect you're using in the events is.