HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Units in a line

01-30-2009, 05:09 PM#1
Saishy
I have a spell that fires a arrow who travels 1700 units, it is based in carrion swarm. (It deals damage in a 100 width)

How can I take the units damaged and remove they mana based in the level of the ability?

(Since the arrow travel very fast, I think the trigger can run when the unit cast the ability)
01-30-2009, 07:12 PM#2
Rising_Dusk
You trigger the line damage and then just remove the mana accordingly. If you insist on using carrion swarm, you can have a dummy unit type cast the carrion swarm and detect the DAMAGED event with a condition checking if the source is of the dummy unit type, then remove mana there. I seriously recommend using a fully triggered line spell, though.
01-30-2009, 07:13 PM#3
Anitarf
I'd use xecollider for such a spell.
01-30-2009, 07:28 PM#4
Saishy
Quote:
Originally Posted by Rising_Dusk
You trigger the line damage and then just remove the mana accordingly.
Any idea how to do that?

Edit: Tried that xecollider but I couldn't understand it, and even if someone make to me the trigger I don't like to put a system just for one spell :(
01-30-2009, 09:50 PM#5
Veev
Well, there's no chance you'll need to use xe ever again in the future of your map? Adding that system isn't going to double your map size by any means... Not sure why you can't just add it in... It's more like you don't know how it works so you can't add it in, even if you wanted to.
01-30-2009, 10:30 PM#6
Saishy
Quote:
Originally Posted by Veev
Well, there's no chance you'll need to use xe ever again in the future of your map? Adding that system isn't going to double your map size by any means... Not sure why you can't just add it in... It's more like you don't know how it works so you can't add it in, even if you wanted to.
Isn't that exactly what I told?