HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Base ability for..

04-03-2007, 06:56 PM#1
Centreri
I'm trying to make, basically, a 'shoot arrow' ability that shoots an arrow toward the point, lasting for a range of x, and if it hits something, it deals damage and disappears. All the abilities I could think of go through the target, and I have no idea how to use GUI triggers to make the ability disappear once it hits a target. If anyone knows how to make this work... (I know it's very basic, but I don't know how to do it, nevertheless). Preferably, this also makes the hero use attacking animation before dealing effect.
04-03-2007, 06:57 PM#2
Rising_Dusk
The effect has to be triggered.
Base it on something like Carrion Swarm (That's a good one) and then trigger the motion of a dummy unit with a projectile FX attached to it.
Group units around the dummy each interval, if a matching target is in the group, deal damage, do pretty effects, remove FX on dummy, kill dummy.
Done.
04-03-2007, 09:21 PM#3
Centreri
Dummy unit? Eh, why not.
04-04-2007, 02:43 AM#4
Pyrogasm
I'm pretty sure if you set something like the max targets field on Carrion Swarm, the missile stops when it hits the max number of targets.

If it's not carrion swarm then it's Breath of Fire/Frost or Shockwave. I know one of them works because I did it in a map a while ago.


EDIT: The ability is Carrion Swarm, and I meant the "Max Damage" field. Say you want to have your arrow ability deal 325 damage to the first target it hits; you'd set the "damage dealt" field to 325, and the "max damage dealt" field to 325 also.

If you wanted it to hit two targets, then set the "max damage dealt" to 750. You could also make it do full damage to the first unit it hits and half damage to the unit after that, etc.
04-04-2007, 01:04 PM#5
Centreri
I'll try that out. The problem might be that the animation continues.

I tried dummy unit idea, but it doesn't work that great. The max speed is 522, but that's not fast enough to be a good arrow.

EDIT: Yeah, the animation is a problem. I can probably somehow live with it, but the arrow deals damage but still shows it going through. Any way to remove abilities in motion?
04-04-2007, 06:59 PM#6
Moss
Unless there is a way to kill an effect like you are asking, you will need to trigger the spell entirely. You would want to periodically and rapidly move a dummy unit from the caster towards the target point in small increments and for that you would need to use timers if you want faster than 5 fps on the projectile. Vexorian's Caster system has a projectile system to handle stuff like that. If you are making a complex map you might as well incorporate the Caster System.
04-05-2007, 02:15 AM#7
Pyrogasm
Try setting the model for the missile to something with a death animation.

That may or may not do anything.
04-05-2007, 03:25 AM#8
Rising_Dusk
It does nothing.
Like I said before, you cannot make the effect "die" on the first target it hits unless the projectile is 100% triggered.

It's not hard to trigger either, and moving one projectile is hardly stressing on the game.
There's no real reason *not* to fully trigger it.
04-05-2007, 12:58 PM#9
Centreri
I look into triggering it, then. Thanks .