Thorns Aura with attack effect

Deathtrex

New Member
Reaction score
2
This is gonna be one of my last question so far.
If i have the ability Thorn Aura (all enemies who attack, will get some of their damage dealed in return) is it then possible to add an effect so every time a enemy is attacking there will be the damage but also a chain lightning effect between the Hero with the ability and the attacking unit?
 

NeuroToxin

New Member
Reaction score
46
Yea, do
Trigger:
  • HANDWRITTEN
    • Events
    • Unit - A Unit is attacked
    • Conditions
    • (Attacked Unit) Has buff (Thorns Aura)
    • Actions
    • Unit - Create 1 DummyUnit For (GetAttackedUnit) at (Position of (Attacked Unit)) Facing Default Building Degrees
    • Unit - Add a 1 second Generic Timer to (Last Created Unit)

This should do it, just create a dummy unit and give it your chain lightning spell, and the ability 'Locust'
Order (Last Created Unit) to Orc Far Seer - Chain Lightning (Attacking Unit)
 

Deathtrex

New Member
Reaction score
2
Unit - Create 1 DummyUnit For (GetAttackedUnit) at (Position of (Attacked Unit)) Facing Default Building Degrees

What is (GetAttackedUnit)? how i set that?
 

Deathtrex

New Member
Reaction score
2
Unit - Add a 1 second Generic Timer to (Last Created Unit)

I'm a big noob to this, i can't find that trigger neither, i can only find it with expiration time.
 

TomTTT

New Member
Reaction score
44
Unit - Add a 1 second Generic Timer to (Last Created Unit)

I'm a big noob to this, i can't find that trigger neither, i can only find it with expiration time.

It's not (GetAttackedUnit) it's simply Attacked Unit.
About the second you just need to search in the actions the category Unit and you'll see it as expiration timer or something like that.
 

Deathtrex

New Member
Reaction score
2
I can't find the Attacked Unit under that command
Unit - Create 1 Chain Dummy for (Picked player) at (Position of (Attacked unit)) facing Default building facing degrees

It's picked player right now, i can't find the Attacked Unit line.
 

LurkerAspect

Now officially a Super Lurker
Reaction score
118
These guys are being very vague. GetAttackedUnit is a horrible free-handed response; to get the attacked unit, you look for "Event Response - Attacked Unit", so your trigger would look like this:
Trigger:
  • Unit - Create 1 DummyUnit For (Owner of (Attacked Unit)) at (Position of (Attacked Unit)) Facing Default Building Degrees

Owner of is found as "Owner of Unit" when looking for a player on that list
Trigger:
  • Unit - Add a 1 second Generic Timer to (Last Created Unit)

is found as "Unit - Add Expiration Timer" in the action menu.
 

NeuroToxin

New Member
Reaction score
46
yea sorry, I was thinking about JASS then, and the trigger for that is
JASS:
GetAttackedUnit()

once again sorry
 

hopy

Active Member
Reaction score
64
Basicly:
Trigger:
  • Chain Lightning Thorns
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Attacked unit) has buff Thorns Aura) Equal to True
    • Actions
      • Set Point = (Position of (Attacking unit))
      • Unit - Create 1 Dummy Unit for (Owner of (Attacked Unit)) at Point facing Default building facing degrees
      • Unit - Add Chain Lightning to (Last created unit)
      • Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Attacking unit)
      • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
      • Custom script: call RemoveLocation (udg_Point)

- Point is a point variable

Don't forget to make it leakless? :p (http://www.thehelper.net/forums/showthread.php?t=27219&highlight=leaks).

It's picked player right now, i can't find the Attacked Unit line.
Use the "Owner of unit" action and replace the Triggering Unit with Attacked Unit. In the "Picked Player" drop menu it's 4th from the top.

Unit - Add a 1 second Generic Timer to (Last Created Unit)

I'm a big noob to this, i can't find that trigger neither, i can only find it with expiration time.
The action is called: "Unit - Add Expiration Timer" in the actions drop menu.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top