- Joined
- Sep 9, 2010
- Messages
- 72
I am working at a simple bash system that knock the unit in the air instead of just stunning it. The problem is that I can't figure out how to make it possible to work on multiple units (each unit with Bash should throw another unit in the air). I've come up with something but the problem is that when multiple units bash at the same time the units that are "Bashed" are stuck in air and just one unit lands.
Here is the trigger that I made:
Here is the trigger that I made:
-
Events
- Unit - A unit Is attacked
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Earth_Stun_Unit[Earth_Stun_Unit_Count] Equal to No unit
-
Then - Actions
- Set Earth_Stun_Unit[Earth_Stun_Unit_Count] = (Attacked unit)
- Unit - Pause Earth_Stun_Unit[Earth_Stun_Unit_Count]
- Unit - Add Storm Crow Form to Earth_Stun_Unit[Earth_Stun_Unit_Count]
- Unit - Remove Storm Crow Form from Earth_Stun_Unit[Earth_Stun_Unit_Count]
- Animation - Change Earth_Stun_Unit[Earth_Stun_Unit_Count] flying height to 150.00 at 225.00
- Wait 0.66 seconds
- Animation - Change Earth_Stun_Unit[Earth_Stun_Unit_Count] flying height to 0.00 at 450.00
- Unit - Unpause Earth_Stun_Unit[Earth_Stun_Unit_Count]
- Set Earth_Stun_Unit[Earth_Stun_Unit_Count] = No unit
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Earth_Stun_Unit_Count Equal to 100
-
Then - Actions
- Set Earth_Stun_Unit_Count = 0
-
Else - Actions
- Do nothing
-
If - Conditions
- Set Earth_Stun_Unit_Count = (Earth_Stun_Unit_Count + 1)
- Set Earth_Stun_Unit[Earth_Stun_Unit_Count] = (Attacked unit)
- Unit - Pause Earth_Stun_Unit[Earth_Stun_Unit_Count]
- Unit - Add Storm Crow Form to Earth_Stun_Unit[Earth_Stun_Unit_Count]
- Unit - Remove Storm Crow Form from Earth_Stun_Unit[Earth_Stun_Unit_Count]
- Animation - Change Earth_Stun_Unit[Earth_Stun_Unit_Count] flying height to 150.00 at 225.00
- Wait 0.66 seconds
- Animation - Change Earth_Stun_Unit[Earth_Stun_Unit_Count] flying height to 0.00 at 450.00
- Unit - Unpause Earth_Stun_Unit[Earth_Stun_Unit_Count]
- Set Earth_Stun_Unit[Earth_Stun_Unit_Count] = No unit
-
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)