Warcraft III resources & community, 2003–2006 · archived

PLEASE HELP ME WITH THIS TRIGGER

9 posts
#1

PLEASE HELP ME WITH THIS TRIGGER

im making trigger when the unit is attcked it will spin and damage enemy units my problem is when my unit spins just once and damages the enemy units he suddenly dies


here is my trigger
Events
Unit - A unit Is attacked

Conditions
(Level of Deadly Spin for (Triggering unit)) Greater than 0
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 25
Then - Actions
Unit Group - Pick every unit in (Units within 500.00 of (Position of (Attacking unit))) and do (Actions)
Loop - Actions
Animation - Play (Attacked unit)'s attack walk stand spin animation
Unit - Cause (Attacked unit) to damage circular area after 0.00 seconds of radius 500.00 at (Position of (Attacked unit)), dealing 260.00 damage of attack type Chaos and damage type Normal
Else - Actions
Do nothing

please help me
#2
Perhaps a condition, that doesn't allow him to damage friendly units or himself?
#3
what should i change then?
#4
Pick every unit in 500 radius of (attacked unit) and If/Then/Else again.

If:
(Or): If (Picked Unit) is in (Units owned by (Owner of (Attacked Unit)))) Or ((Picked Unit) Not equal to (Attacked Unit))

Then:
Unit: Cause (Attacked Unit) to damage (Picked Unit), dealing 260.00 damage of attack type Chaos and damage type Normal.

Else:
Do Nothing.


I don't know if it's correct, I'm not very good at spell-making, but I guess it works.
#5
Call DoNothing()


Thats a total waste of procesing power.
It does nothing next to help add to background lag.
Even in GUI there is no need to call it next to make your spells more understandable.
#6
I am not an expert and never tried to do such thing, but maybe this will solve your problem...

Unit - A unit Is attacked

Conditions
(Level of Deadly Spin for (Triggering unit)) Greater than 0
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 100) Less than or equal to 25
Then - Actions



"""Unit Group - Pick every unit within 500 of position (of attacked unit) matching condition - boolean - unit belongs to (enemy of owner of attacked unit) and now do (Actions)"""



Loop - Actions
Animation - Play (Attacked unit)'s attack walk stand spin animation
Unit - Cause (Attacked unit) to damage circular area after 0.00 seconds of radius 500.00 at (Position of (Attacked unit)), dealing 260.00 damage of attack type Chaos and damage type Normal
Else - Actions
Do nothing
#7
i've tried both triggers but my hero still damage himself
#8
Area damage deals damage to all units in the area, not only enemies. In order to prevent it, pick up every enemy unit, and damage it (and no other unit). In that way, it will damage only them, and allies (along with hero) will be left undamaged. ;)

~Daelin
#9
first, umm, you want Unit takes Damage, not is attacked. Is Attacked will trigger even if the attack is canceled before it occurs.

second, FR's is perfect EXEPT you want a Damage Target, not Damage Area.