• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How to create an image immediately like in DotA?

Status
Not open for further replies.
Level 3
Joined
Nov 3, 2008
Messages
44
Wish:
I want to create a mirror image like it was used in DotA by the Phantom Lancer.
You know? There was the ability to cloak himself and create an image in the same animation as the caster. The image was suddenly there.

Problem:
I know, there is that ability regular used by the Staff Of Illusions.
It creates an illusion as the Blademaster's spell does.
But I never learned how to order a unit to use a spell. I only know how to order a unit to cast one of those standard abilities.


Some hints how to solute the problem may help. =)
Thanks!
 
Level 3
Joined
Nov 3, 2008
Messages
44
Wait a second i'll upload the trigger i tried

[EDIT]

  • Unit - Order (Last created unit) to (Order((Name of ABILITY ))) on TARGET
which is a trigger only used by WEU.

The only available one in WE is the one having this list of standard abilities instead of a string order.

[EDIT]

The WEU-trigger doesn't work, i have to add
 
Last edited:
Level 9
Joined
May 9, 2009
Messages
536
Here's how you do it.

Create an item based on Wand of Illusion and edit its values, mana cost and abilities

Create a trigger

Trigger it when the unit starts the effect of your ability

Create a dummy unit via triggers and create the item and give it to the unit

Order the dummy to use the Wand of Illusion edited item without a mana cost

You have your illusion
 
Level 3
Joined
Nov 3, 2008
Messages
44
Here's how you do it.

Create an item based on Wand of Illusion and edit its values, mana cost and abilities

Create a trigger

Trigger it when the unit starts the effect of your ability

Create a dummy unit via triggers and create the item and give it to the unit

Order the dummy to use the Wand of Illusion edited item without a mana cost

You have your illusion
That should work. Then i hide those, set them to variables and they are usable for replacements for other units. Brilliant, thanks! ;)
But all those abilities and items are bad for uploading in Hive's spell category.
Are you an advanced Jass-user, or do you just know a possibility to do that in Jass without using all that stuff?

I have no imaginations of how Jass uses the command lines i also have via using triggers.
I ask myself the question, if there is, for example, a way to just add a buff to a unit without using an ability. This would make the whole stuff very simple! :D

I'm just freaking around. xP

Thanks again. ;)
 
Status
Not open for further replies.
Top