- Joined
- Sep 13, 2013
- Messages
- 155
I have a spell that was not MUI, and I tried to make it MUI, but it doesn't work.
Arcane Wagon
Description: Catches an unit in the arcane wagon for a duration, making it hidden. After the duration the wagon is broken and the target is free.
and here is the trigger :
Arcane Wagon
Description: Catches an unit in the arcane wagon for a duration, making it hidden. After the duration the wagon is broken and the target is free.
and here is the trigger :
-
Arcane Wagon
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Arcane Wagon
-
Actions
- Set WagI = (WagI + 1)
- Set WagonCaster[WagI] = (Triggering unit)
- Set WagonTargetq[WagI] = (Target unit of ability being cast)
- Unit - Hide WagonTargetq[WagI]
- Unit - Create 1 Arcane Wagon for (Owner of (Triggering unit)) at (Position of WagonTargetq[WagI]) facing Default building facing degrees
- Set Wagon[WagI] = (Last created unit)
- Set WagTime[WagI] = (1.00 + (2.00 x (Real((Level of Arcane Wagon for WagonCaster[WagI])))))
- Trigger - Turn on Wagon Dead <gen>
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- WagI Equal to 1
-
Then - Actions
- Trigger - Turn on Wagon Loop <gen>
- Else - Actions
-
If - Conditions
-
Events
-
Wagon Loop
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
For each (Integer WagIndex) from 1 to WagI, do (Actions)
-
Loop - Actions
- Set WagTime[WagI] = (WagTime[WagI] - 1.00)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- WagTime[WagI] Less than or equal to 0.00
-
Then - Actions
- Unit - Kill Wagon[WagI]
- Else - Actions
-
If - Conditions
-
Loop - Actions
-
For each (Integer WagIndex) from 1 to WagI, do (Actions)
-
Events