- Joined
- Sep 3, 2009
- Messages
- 458
Well here I am again needing some help. I'm making a combo system that when X unit successfully damages Y unit three times, there is a Z% chance X unit will either:
A. Rapid Combo Finish:
X unit will have increased attack speed for 1.50 seconds. After that Y unit will be knocked back.
B. Charge Combo Finish:
X unit will wait for 1 second then unleash a powerful blow on Y unit, knocking it back.
But the problem is I'm having trouble, when determining Y unit takes damage from X unit.
Here's the trigger:
Unit is Attacked
A. Rapid Combo Finish:
X unit will have increased attack speed for 1.50 seconds. After that Y unit will be knocked back.
B. Charge Combo Finish:
X unit will wait for 1 second then unleash a powerful blow on Y unit, knocking it back.
But the problem is I'm having trouble, when determining Y unit takes damage from X unit.
Here's the trigger:
Unit is Attacked
-
Rapid
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
Actions
-
Set RapidComboUnit = (Attacking unit)
-
Set RapidComboTarget = (Attacked unit)
-
Set RapidComboPoint = (Position of RapidComboTarget)
-
-
-
Rapid Copy
-
Events
-
Unit - No unit Takes damage
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
RapidComboTarget Equal to No unit
-
(Damage source) Equal to RapidComboUnit
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
RapidComboCounter Greater than or equal to 3
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Random integer number between 1 and 100) Less than or equal to 100
-
-
Then - Actions
-
Unit - Add a 1.00 second Generic expiration timer to RapidComboDummy
-
Set RapidComboCounter = 0
-
Unit - Create 1 Dummy Unit for (Owner of RapidComboUnit) at RapidComboPoint facing Default building facing degrees
-
Set RapidComboDummy = (Last created unit)
-
Unit - Add a 1.00 second Generic expiration timer to RapidComboDummy
-
Unit - Add Bloodlust (Rapid Combo) to RapidComboDummy
-
Unit - Order RapidComboDummy to Orc Shaman - Bloodlust RapidComboUnit
-
Trigger - Turn off (This trigger)
-
Trigger - Turn off Rapid <gen>
-
Trigger - Run Rapid Copy Copy <gen> (ignoring conditions)
-
-
Else - Actions
-
Set RapidComboCounter = 0
-
-
-
-
Else - Actions
-
Set RapidComboCounter = (RapidComboCounter + 1)
-
-
-
-
Else - Actions
-
-
-
-
Rapid Copy Copy
-
Events
-
Conditions
-
Actions
-
Wait 2.00 seconds
-
Trigger - Turn on Rapid <gen>
-
Trigger - Turn on Rapid Copy <gen>
-
-