Black_Fire
New Member
- Reaction score
- 0
Hi!
Can you please help me with this:
On the first try the switch worked but then on the second it didn't change from Fatal Blows to Ravage(cooldown).
Can you please help me with this:
Trigger:
- Ravage
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Ravage
- Actions
- Set temp_ability = Ravage
- Set temp_unit[(Player number of (Owner of (Triggering unit)))] = (Casting unit)
- Unit - Remove temp_ability from (Casting unit)
- Unit - Add Fatal Blows to temp_unit[(Player number of (Owner of (Triggering unit)))]
- Unit - Set level of Fatal Blows for (Triggering unit) to (Level of temp_ability for (Casting unit))
- Countdown Timer - Start temp_timer as a One-shot timer that will expire in 8.00 seconds
- Set temp_timer = (Last started timer)
- Countdown Timer - Create a timer window for temp_timer with title Ravage
- Set temp_timer_window = (Last created timer window)
- Countdown Timer - Hide (Last created timer window)
- Events
Trigger:
- Fatal Blows Switch
- Events
- Time - temp_timer expires
- Conditions
- Actions
- Unit - Remove Fatal Blows from temp_unit[(Player number of (Owner of (Triggering unit)))]
- Unit - Add Ravage(cooldown) to temp_unit[(Player number of (Owner of (Triggering unit)))]
- Unit - Order temp_unit[(Player number of (Owner of (Triggering unit)))] to Orc Troll Berserker - Berserk
- Custom script: call DestroyTimer(udg_temp_timer)
- Countdown Timer - Destroy temp_timer_window
- Countdown Timer - Start cooldown as a One-shot timer that will expire in 15.00 seconds
- Set cooldown = (Last started timer)
- Countdown Timer - Create a timer window for (Last started timer) with title Fatal Blows Cooldown
- Countdown Timer - Hide (Last created timer window)
- Set cooldown_window = (Last created timer window)
- Events
Trigger:
- Ravage Cooldown
- Events
- Time - cooldown expires
- Conditions
- Actions
- Custom script: call DestroyTimer(udg_cooldown)
- Countdown Timer - Destroy cooldown_window
- Unit - Remove Ravage(cooldown) from temp_unit[(Player number of (Owner of (Triggering unit)))]
- Unit - Add temp_ability to temp_unit[(Player number of (Owner of (Triggering unit)))]
- Events
On the first try the switch worked but then on the second it didn't change from Fatal Blows to Ravage(cooldown).