- Joined
- May 15, 2009
- Messages
- 192
I have trouble making an ability work. The ability is in two parts, an active and a passive.
The passive is called Bloodhaze, and basically you just get 10% attack speed for 7 seconds, stacking up to 5 times. (It levels a passive attack speed ability)
The stacks are supposed to decay like this: You attack, then starts a 7 second timer, when it expires, you lose a stack of the attack speed. And if you do not attack again within these 7 seconds, a trigger will start, which will remove an additional stack every 7 seconds.
The active simply sets the stack level to 5, and turns on the timer.
Problem is, the stacks are never removed. The stacking up works just fine. The trigger is in four parts:
Help much appreciated.
The passive is called Bloodhaze, and basically you just get 10% attack speed for 7 seconds, stacking up to 5 times. (It levels a passive attack speed ability)
The stacks are supposed to decay like this: You attack, then starts a 7 second timer, when it expires, you lose a stack of the attack speed. And if you do not attack again within these 7 seconds, a trigger will start, which will remove an additional stack every 7 seconds.
The active simply sets the stack level to 5, and turns on the timer.
Problem is, the stacks are never removed. The stacking up works just fine. The trigger is in four parts:
-
Bloodhaze Active
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Bloodhaze
-
Actions
- Unit - Set level of Bloodhaze Passive for (Triggering unit) to 6
- Countdown Timer - Start Bloodhaze_Timer as a One-shot timer that will expire in 7.00 seconds
-
Events
-
Bloodhaze Passive
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Unit-type of (Attacking unit)) Equal to Coldfiend (Stalker)
-
Actions
- Trigger - Turn off Bloodhaze Tick Down <gen>
- Unit - Increase level of Bloodhaze Passive for (Attacking unit)
- Countdown Timer - Start Bloodhaze_Timer as a One-shot timer that will expire in 7.00 seconds
-
Events
-
Bloodhaze Tick Start
-
Events
- Time - Bloodhaze_Timer expires
- Conditions
-
Actions
- Game - Display to (All players) the text: Debug
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Picked unit)) Equal to Coldfiend (Stalker))) and do (Actions)
-
Loop - Actions
- Unit - Set level of Bloodhaze Passive for (Picked unit) to ((Level of Bloodhaze Passive for (Picked unit)) - 1)
-
Loop - Actions
- Trigger - Turn on Bloodhaze Tick Down <gen>
-
Events
-
Bloodhaze Tick Down
-
Events
- Time - Every 7.00 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Picked unit)) Equal to Coldfiend (Stalker))) and do (Actions)
-
Loop - Actions
- Unit - Set level of Bloodhaze Passive for (Picked unit) to ((Level of Bloodhaze Passive for (Picked unit)) - 1)
- Game - Display to (All players) the text: Debug Tick
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Picked unit)) Equal to Coldfiend (Stalker))) and do (Actions)
-
Events
Help much appreciated.