- Joined
- May 29, 2013
- Messages
- 1,566
I'm trying to make a Hero ability that creates 1/2/3 illusions of the targeted friendly unit.
The ability is based on the wand of illusion item ability, but since I want more that one illusion I have to use dummy casters for levels 2 and 3.
Can anyone tell me why this trigger creates only one additional illusion at level 3 instead of creating two additional illusion?
The ability is based on the wand of illusion item ability, but since I want more that one illusion I have to use dummy casters for levels 2 and 3.
Can anyone tell me why this trigger creates only one additional illusion at level 3 instead of creating two additional illusion?
-
Replicate
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Replicate
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Replicate for (Triggering unit)) Equal to 1
-
Then - Actions
- -------- Do Nothing --------
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Replicate for (Triggering unit)) Equal to 2
-
Then - Actions
- Set Replicate_Loc = (Position of (Target unit of ability being cast))
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Replicate_Loc facing Default building facing degrees
- Unit - Add Replicate (Dummy) to (Last created unit)
- Unit - Set level of Replicate (Dummy) for (Last created unit) to 2
- Custom script: call IssueTargetOrderById( GetLastCreatedUnit(), 852274, GetSpellTargetUnit() )
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_Replicate_Loc)
-
Else - Actions
- Set Replicate_Loc = (Position of (Target unit of ability being cast))
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Replicate_Loc facing Default building facing degrees
- Unit - Add Replicate (Dummy) to (Last created unit)
- Unit - Set level of Replicate (Dummy) for (Last created unit) to 3
- Custom script: call IssueTargetOrderById( GetLastCreatedUnit(), 852274, GetSpellTargetUnit() )
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Replicate_Loc facing Default building facing degrees
- Unit - Add Replicate (Dummy) to (Last created unit)
- Unit - Set level of Replicate (Dummy) for (Last created unit) to 3
- Custom script: call IssueTargetOrderById( GetLastCreatedUnit(), 852274, GetSpellTargetUnit() )
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_Replicate_Loc)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events