• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Mirror Image Item

Status
Not open for further replies.
Level 1
Joined
Aug 18, 2008
Messages
2
I'm trying to make a item that gives you 10% chance on hit to make illusion of your hero. I don't know how should I make this. I don't know much jass and this seems impossible in GUI.
 
Level 13
Joined
Jul 3, 2008
Messages
1,098
it is posible just do that
event:
unit is attacking
condition:
attacking unit has Mirror image item in inventory
action:
Set X to Random number between 1 and 10
(.IF THEN ELSE stuff,)

if x = 1 then cast conjure image on attacking unit
if x>1 then do nothing
 
Level 25
Joined
Apr 27, 2008
Messages
2,512
event:-unit is attacked
condition:unit type of attackING unit equal to (...)
action:if then else:
if:random number between 1 and 100 less or equal to 10
then:-create 1 dummy for owner of attacking unit at psition of attacking unit
-add 3 sec generic experation timer
-create 1 item illution(wand of illution)
-give last create item to last created unit
(give the dummy unit the ability hero inventory before)
-order last created unit to use last created item on attacking unit.


A dummy unit is a unit with no model or attack
you can give item to dummy or ability (make sure to make the ability unit ability, and mana cost 0, if you want to give the dummy item, make sure he can carry items and dont drop them and can use them)
 
Last edited:
Level 2
Joined
Aug 24, 2008
Messages
16
Make A Custom Aura, Set All Its Bonuses To 0, And Make Sure It Givs A Buff. Set The Buff To Be Given To Urself Oni. Set Aura As Item Ability And Giv To Item Thn Use The Following Trigger:

-Events-
A unit is attacked
-Conditions-
Attacking unit has specific buff(The Buff) equals to true
-Actions-
Set <Variable(Integer)> equals to <Random Number Between 1 To 100>
-If Conditions Equal To True Then Do Actions
-Conditions-
<Variable(Integer)> equals to or less than 10
-Actions-
Create 1 Dummy at position of attacking unit facing default building degrees.
Add a 6 second expiration timer to <Last Created Unit>.
Add <A Custom Mirror Image Ability, Make Sure Doesnt Hv Limited Charges> to <Last Created Unit>
Order <Last Created Unit> to <Mirror Image> attacking unit
 
Status
Not open for further replies.
Top