• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Illusion at position of hero

Status
Not open for further replies.
Level 4
Joined
Apr 5, 2008
Messages
70
Hey together!
I want to create an Illusion at the exact point of the hero.

For example like the windwalk illusion thing from dota.
At my spell the Illusion spawn at a random side of the hero and not on the hero.
If it is like that your opponent will see that you used this skill.

I hope the problem is understandable and you can help me.
 
Level 4
Joined
Jul 19, 2007
Messages
76
  • Untitled Trigger 001
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Wind Walk
    • Actions
      • Unit - Create 1 dummy for (Owner of (Casting unit)) at ((Position of (Casting unit)) offset by (0.10, 1.00)) facing Default building facing degrees
 
Level 4
Joined
Apr 5, 2008
Messages
70
Yes I know but then the image spawn near the hero and not where he stand.
If the hero stands at e.g. x100 y100 the image has to stand also at x100 y100.
 
  • Trigger
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Illusion
  • Actions
    • Set Point1 = (Position of (Triggering unit))
    • Unit - Create 1 Dummy for at Point1 (Owner of (Triggering unit)) facing default building degrees
    • Hero - Create (Wand of Illusions) and give it to (Last created unit)
    • Hero - Order (Last created unit) to use (Item carried by (Last created unit) of type (Wand of Illusions)) on (Triggering unit)
    • Unit - Add 2.00 seconds generic expiration timer to (Last created unit)
    • Custom script: call RemoveLocation (udg_Point1)
 
Level 4
Joined
Jul 19, 2007
Messages
76
  • Melee Initialization
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Wind Walk
    • Actions
      • Wait 0.01 game-time seconds
      • Unit - Create 1 dummy for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
      • Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
 
Level 4
Joined
Apr 5, 2008
Messages
70
Well i thaught that I describe enought, but it doesn't seem so.
I'm at the point where Pharaoh is, but then the image spawns near the hero.
I need the image at the same point like the casting hero.

It has to be an Mirrorimage because I need the thing with like 29% on damage do and 384% on damage they get.
 
Level 7
Joined
Nov 4, 2006
Messages
153
  • Trigger
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Illusion
  • Actions
    • Set Point1 = (Position of (Triggering unit))
    • Unit - Create 1 Dummy for at Point1 (Owner of (Triggering unit)) facing default building degrees
    • Hero - Create (Wand of Illusions) and give it to (Last created unit)
    • Hero - Order (Last created unit) to use (Item carried by (Last created unit) of type (Wand of Illusions)) on (Triggering unit)
    • Unit - Add 2.00 seconds generic expiration timer to (Last created unit)
    • Custom script: call RemoveLocation (udg_Point1)

That's all you need. The rest is editing the ability of the item Wand of Illusions. Change Area of Effect to 0, Damage Dealt to 29%, Damage Received to 384%.
I'm not sure, but I don't think it will create the image facing the same direction, if not, create the dummy behind the hero instead of on him. Also, I'm not sure how to order the illusion to move (if you wanted that like DotA).
 
Status
Not open for further replies.
Top