- Joined
- Mar 1, 2014
- Messages
- 68
Hey i need some help i have read the tutorial for MUI so i create a simple ability to test it but it doesnt work.. I know there is something wrong.. can you figure it out ?
-
Spell
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Thunder Clap
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- INDEX[1] Equal to 0
-
Then - Actions
- Trigger - Turn on Timer <gen>
-
Else - Actions
- Set INDEX[1] = (INDEX[1] + 1)
- Set INDEX[2] = (INDEX[2] + 1)
- Set LoopCheck[INDEX[2]] = True
- Set Real[INDEX[2]] = 10.00
- Unit - Create 1 Footman for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing Default building facing degrees
- Set Dummy[INDEX[2]] = (Last created unit)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Timer
-
Events
- Time - Every 0.01 seconds of game time
- Conditions
-
Actions
-
For each (Integer INDEX[3]) from 1 to INDEX[2], do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- LoopCheck[INDEX[3]] Equal to True
-
Then - Actions
- Set Real[INDEX[3]] = (Real[INDEX[3]] - 0.01)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Real[INDEX[3]] Less than or equal to 0.00
-
Then - Actions
- Unit - Kill Dummy[INDEX[3]]
- Set LoopCheck[INDEX[3]] = False
- Set INDEX[1] = (INDEX[1] - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- INDEX[1] Equal to 0
-
Then - Actions
- Set INDEX[2] = 0
- Trigger - Turn off (This trigger)
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
For each (Integer INDEX[3]) from 1 to INDEX[2], do (Actions)
-
Events