Mythes
Member
- Reaction score
- 7
I'm trying to create a Buff that generates a "doppelganger" (a person's Double, that is kind of "illusion", google about it...)
The triggers:
So, only one doppel can be created for each 0,5 seconds. The problem is, it keeps generating heroes (and that fucks up the Hero tab, on the left vertical of the screen).
And I wanted to make it generate a "copy" of the targeted hero (doppelganger is an "acid bomb" which doesn't damage [target = allies] but gives the buff Doppelganger for 20 seconds.)
So how can I make the "doppelganger" not a hero, but still give him the same stats, atk speed, items, etc, of the Buffed Unit (Target)???
Kind of confusing.... post any doubts...
Myt.
The triggers:
Trigger:
- Doppel Strike
- Events
- Unit - A unit Is attacked
- Conditions
- ((Attacking unit) has buff Doppelganger ) Equal to True
- DoppelBoolean Equal to False
- Actions
- Unit - Create 1 (Unit-type of (Attacking unit)) for (Owner of (Attacking unit)) at ((Position of (Attacking unit)) offset by (0.00, 0.00)) facing (Facing of (Attacking unit)) degrees
- Set DoppelUnit = (Last created unit)
- Animation - Change DoppelUnit's vertex coloring to (100.00%, 100.00%, 100.00%) with 75.00% transparency
- For each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- Set DoppelItems[(Integer A)] = (Item carried by (Attacking unit) in slot (Integer A))
- Loop - Actions
- For each (Integer A) from 1 to 6, do (Actions)
- Loop - Actions
- Hero - Create (Item-type of DoppelItems[(Integer A)]) and give it to DoppelUnit
- Loop - Actions
- Unit - Order DoppelUnit to Attack (Attacked unit)
- Unit - Add a 0.50 second Generic expiration timer to DoppelUnit
- Set DoppelBoolean = True
- Events
Trigger:
- Doppel Death
- Events
- Unit - A unit Dies
- Conditions
- (Triggering unit) Equal to DoppelUnit
- Actions
- Set DoppelBoolean = False
- Events
So, only one doppel can be created for each 0,5 seconds. The problem is, it keeps generating heroes (and that fucks up the Hero tab, on the left vertical of the screen).
And I wanted to make it generate a "copy" of the targeted hero (doppelganger is an "acid bomb" which doesn't damage [target = allies] but gives the buff Doppelganger for 20 seconds.)
So how can I make the "doppelganger" not a hero, but still give him the same stats, atk speed, items, etc, of the Buffed Unit (Target)???
Kind of confusing.... post any doubts...
Myt.