HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

damage dealing area?

01-13-2007, 11:48 AM#1
Schneemehrmann
hi
id like to know how i can make an area thats deals permanent damage to all units in it.
would be happy if some1 answers me

sorry for bad english
01-13-2007, 12:30 PM#2
Taur
Well probably the easiest way would be to make a dummy unit, give it locust, make the owner neutral hostile, create an ability based off permanent immolation and give it to it. Then place the unit where you want the area to be, all units will take damage inside the area that you put in the permanent immolation.
01-13-2007, 02:16 PM#3
moyack
That area is a fixed region?? if so, you can do a periodic trigger which every second, takes all the units inside the region and deals X damage.
01-13-2007, 02:26 PM#4
Schneemehrmann
thanks
01-13-2007, 03:33 PM#5
Taur
Quote:
Originally Posted by moyack
That area is a fixed region?? if so, you can do a periodic trigger which every second, takes all the units inside the region and deals X damage.
That would probably cause more lag than the immolation skill.
01-13-2007, 03:36 PM#6
Rising_Dusk
Permanant Immolation has a bug, fyi.
You have to pause/unpause the unit on it for the damage to update properly per level.
01-13-2007, 04:43 PM#7
moyack
Quote:
Originally Posted by Taur
That would probably cause more lag than the immolation skill.
it depends, if you do your variables clean up, there's no problem. OF course, this solution is great in JASS.
01-13-2007, 04:54 PM#8
BertTheJasser
I would use the native damage area func, which should work for you, as you want to damage every unit in the AOE.
@Dusk, plx add it to the Wc3 ability guide.
01-13-2007, 05:00 PM#9
moyack
Quote:
Originally Posted by BertTheJasser
I would use the native damage area func, which should work for you, as you want to damage every unit in the AOE.
@Dusk, plx add it to the Wc3 ability guide.
OHHH yess, I forgot that function!! and it has the advantage to set the type of damage and attack!!

Yes, Bert, it's the best, and one line of code.
01-16-2007, 03:41 AM#10
JetFangInferno
so wat is it? o.o
01-16-2007, 04:20 AM#11
Ammorth
Quote:
Originally Posted by moyack
OHHH yess, I forgot that function!! and it has the advantage to set the type of damage and attack!!

Yes, Bert, it's the best, and one line of code.


There has been complaints that the function causes MAC computers to crash. I myself have never tested it, but it's better to be safe than sorry.
01-16-2007, 05:19 AM#12
Pyrogasm
I'm on a mac, and it's never caused my computer to crash or Desync... Maybe it's only a problem with older operating systems or the new Intel Core Duo Macs.

Here's the function:
Trigger:
Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 500.00 at (Center of (Playable map area)), dealing 100.00 damage of attack type Spells and damage type Normal
01-16-2007, 11:49 AM#13
Rising_Dusk
I guess it's force of habit for me --
But I always group units in range of a point, then loop through the group and damage them that way.
I never use that silly damage to circular area function.

My way works better if you happen to want to attach FX individually to struck units or do other stuff.
01-16-2007, 11:14 PM#14
Pyrogasm
It would seem to be that using your method would be more reliable and flexible, but also longer and more prone to leaks (if you don't clean them). Either way should work fine, though.