In my map, I am making an ability that shoots an ice missile at a target, then damages all the units in an area and freezes (stuns) them.
I made it just like a basic missile, but in the Attack actor, instead of putting the damage effect as the impact effect, I hooked both the damage effect and the apply behavior effect to a set, then hooked the set to a search area, and put the search area as the impact effect. Now when my unit casts the ability, it shoots the missile just fine, but on impact it doesn't do anything... no damage, no apply buff, nothing.
What am I doing wrong?
If you linked the area search as the impact effect in the attack actor, it's just telling the actor to look for that effect to trigger in order to perform its animations/site ops/etc. The actor itself doesn't trigger the effect. You need to link the area search as the Impact Effect in the Launch Missile effect that fires the missile.
@WildPickles:
Thanks! Now my damage works, and so does the stun... but there is still a problem. For some reason my search area effect doesn't seem to be working properly, because the buff and damage are still only applied to the target. I made sure the radius is big enough, and even made it a lot bigger just to make sure, and it still doesn't work.
Any ideas?
Spell (Set) is the effect your ability should be calling first and foremost.
Spell (Set) should be calling up
Spell (Damage) [Effect Type - Damage]
Spell (Splash) [Effect Type - Damage]
Spell (Search) [Effect Type - Search Area] which should be calling
Spell (Buff) [Effect Type - Apply Behavior]
For the Spell (Splash), look under fields Search - Area +, make your radius whatever you want, Arc set to 360(will hit targets in a circle) Fraction is how much damage you want it to do. You can have multiple radius each with their own fraction... like at Radius 1, target takes 1 Fraction damage(100%), Radius 3, target takes 0.5 Fraction(50%), ect.
Don't forget to Search - Exclude +, have Target, reason why is below.
(Damage) does 50.
(Splash) does 40.
If you do not exclude target on Splash, target will take 90 direct hit.
EDIT: Just had an idea... take a look at the Marauder - Punisher Grenades upgrade from the campaign... it adds Slow AoE when upgraded.
From your description, it looks like everything else is set up right. It sounds like the Search - Maximum Count field on your area search might be set to 1 though. For unlimited targets, it should be -1.
And just to make sure, this is how I understand it:
@BorgDragon:
Where does the missile come into this? Currently my ability calls my launch missile effect, it seems to me that if I do what your saying it will no longer be a missile ability, just an AoE.
And also, why two different damage effects? Isn't that unnecessarily redundant?
@WildPickles: I checked, and the search's max count is already -1.
My only other idea is to check any validators you may have on the effects. It's hard to say more without seeing the map. Here's a bare-bones working sample, if you want to compare.
Thanks for the help guys, I got it working perfectly.
I tried what you said Borg Dragon, only with just one dmg effect, and it applied the stun correctly but stopped launching the missile. Turns out you had the effect chain right with the set and the damage (had to have the damage and search part of the set, rather than the set part of the search) But instead of setting the ability - effect to the set, I set the impact effect field on the launch missile effect to the set, and made the launch missile the effect called by the ability.
haha, yes, in this case I guess 2 damage effects are redundant. one of my custom units has an effect that does direct damage of 1 type(bonus dmg to armor), with a splash doing a different type(bonus dmg to light).
I was going off memory of my unit to give you a base to work off of. Eitherway, I'm glad it's solved :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@Nahotnoj: Go
If you linked the area search as the impact effect in the attack actor, it's just telling the actor to look for that effect to trigger in order to perform its animations/site ops/etc. The actor itself doesn't trigger the effect. You need to link the area search as the Impact Effect in the Launch Missile effect that fires the missile.
@Nahotnoj: Go
Spell (Set) is the effect your ability should be calling first and foremost.
Spell (Set) should be calling up
For the Spell (Splash), look under fields Search - Area +, make your radius whatever you want, Arc set to 360(will hit targets in a circle) Fraction is how much damage you want it to do. You can have multiple radius each with their own fraction... like at Radius 1, target takes 1 Fraction damage(100%), Radius 3, target takes 0.5 Fraction(50%), ect.
Don't forget to Search - Exclude +, have Target, reason why is below.
If you do not exclude target on Splash, target will take 90 direct hit.
EDIT: Just had an idea... take a look at the Marauder - Punisher Grenades upgrade from the campaign... it adds Slow AoE when upgraded.
@Nahotnoj: Go
From your description, it looks like everything else is set up right. It sounds like the Search - Maximum Count field on your area search might be set to 1 though. For unlimited targets, it should be -1.
And just to make sure, this is how I understand it:
@Nahotnoj: Go
My only other idea is to check any validators you may have on the effects. It's hard to say more without seeing the map. Here's a bare-bones working sample, if you want to compare.
@Nahotnoj: Go
haha, yes, in this case I guess 2 damage effects are redundant. one of my custom units has an effect that does direct damage of 1 type(bonus dmg to armor), with a splash doing a different type(bonus dmg to light).
I was going off memory of my unit to give you a base to work off of. Eitherway, I'm glad it's solved :)