- Joined
- Jul 29, 2010
- Messages
- 319
I'm struggling to make my trigger MUI, I've been reading the tutorial and I'm trying to make a buffer system so that my trigger will work for multiple players using it at once
- Lunge
-
-This trigger starts the system and sets the variables-
-
Events
- Unit - A unit Begins channeling an ability
-
Conditions
- (Ability being cast) Equal to Lunge
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
-
Then - Actions
- Set WriteIndex = (WriteIndex + 1)
- Set Casting_Unit[WriteIndex] = (Triggering unit)
- Set Max_Distance[WriteIndex] = 0
- Set Max_Distance[ReadIndex] = 0
- Set Target_Point = (Target point of ability being cast)
- Wait 0.10 seconds
- Set ReadIndex = (ReadIndex + 1)
- Trigger - Turn on EVERY 010 <gen>
- Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
- EVERY 010
-
-This trigger moves the unit-
-
Events
- Time - Every 0.02 seconds of game time
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Max_Distance[ReadIndex] Less than 10
-
Then - Actions
- Unit - Move Casting_Unit[ReadIndex] instantly to ((Position of Casting_Unit[ReadIndex]) offset by 15.00 towards (Facing of Casting_Unit[ReadIndex]) degrees)
- Set Max_Distance[ReadIndex] = (Max_Distance[ReadIndex] + 1)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ReadIndex Equal to WriteIndex
-
Then - Actions
- Set ReadIndex = 0
- Set WriteIndex = 0
- Else - Actions
-
If - Conditions
- Trigger - Turn off (This trigger)
-
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