HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Damage Via Triggers

01-26-2004, 09:48 PM#1
Dharko
I feel totally noob and ashamed to ask this but... how do you make damage be done to either a unit or area of effect via a trigger? I know how to set units health to a percentage but thats the nearest I come to damaging units using triggers. Please someone help me out so I can continue making spells.

PS Please dont suggest using a spell for its damage values, as that wont work for the way my spell works.
01-26-2004, 09:50 PM#2
Narwanza
You can set the health to value, percentage, or just make invisible units with no projectile art that do the actual damage.
01-26-2004, 09:54 PM#3
Dharko
I thought of invisble units, that would work for a single target i think, but not so well for AOE. Perhaps there is a way to set the health value to be a set amount less than what it was before? Hopefully it would kill them too, not give them a minus amount and make them uber bugged.... Please tell me how i might do that
01-26-2004, 10:09 PM#4
Narwanza
Pick all units within 500 of the target point of ability being cast, and set life of picked unit = life of picked unit - 50
01-26-2004, 10:36 PM#5
Dharko
Hey thank you so much, youve helped loads. If you could, please answer one more thing.... If my spell creates a special effect at the target point of ability being cast every second for eight seconds, and the hero stops casting the spell, how do I stop the special effects from continueing to be created?

I expect this requires some kind of IF and Then Event, but I dont know how to do that. Please help, Narwanza the Knowledged :D
01-26-2004, 10:44 PM#6
Narwanza
Narwanza the knowledged? Whatever man, i'm just trying to make my way through this world just like you. To do what you are asking requires some variables. First make a boolean variable and set it to be initially false. Then when the spell is cast, set the boolean equal to true. Then make a trigger that has 3 events, Unit issue order targeting point, or object, or no target. Then for the condition, put Ordered unit = (your unit) and the condition, (your boolean) equal to true. Then make it turn off the trigger that is making the special effects, and turn the boolean equal to false. Otherwise, set the boolean equal to false when your guys finishes casting.
01-26-2004, 10:45 PM#7
Ligature
Careful when using the "Set unit life" actions; if the unit dies, it won't give EXP to the killer.

To create an AOE, give an invisible unit a modified "AOE damage on death" ability (the one the Goblin Land Mine uses) and then kill it.
01-27-2004, 03:27 AM#8
Bloodlust
i suggest using summoned units that cast spells.
01-27-2004, 04:20 PM#9
Dharko
yes that might work, except the list of spells seems to be predetermined to a select few spells and is quite difficult to get it to work. AOE on death works well, except that armour modifies the damage taken by it. Which sucks greatly.