- Joined
- Jun 1, 2009
- Messages
- 125
My goal is to create ability, that increases attack speed with every hit.
But if unit stop attacks for like 2 sec. this attack speed buff falls off (I'm sure this one IS possible, cause I saw it in other maps).
Also I want to create similar ability, but make it's buff reset when unit changes it's target (not sure it even possible at all).
Creating buff was simple:
But if unit stop attacks for like 2 sec. this attack speed buff falls off (I'm sure this one IS possible, cause I saw it in other maps).
Also I want to create similar ability, but make it's buff reset when unit changes it's target (not sure it even possible at all).
Creating buff was simple:
-
Unit Attacked
-
Events
-
Unit - A unit owned by Player 12 (Brown) Is attacked
-
-
Conditions
-
Actions
-
-------- Miniguns --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Attacking unit)) Equal to Minigun
-
-
Then - Actions
-
If ((Level of Minigun barrels for (Attacking unit)) Less than 20) then do (Unit - Increase level of Minigun barrels for (Attacking unit)) else do (Do nothing)
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
Loop Units
-
Events
-
Time - Loop_Timer expires
-
-
Conditions
-
Actions
-
-------- Miniguns --------
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type Minigun) and do (Actions)
-
Loop - Actions
-
If ((Current order of (Picked unit)) Equal to (Order(stop))) then do (Unit - Set level of Minigun barrels for (Picked unit) to 1) else do (Do nothing)
-
-
-
-