Guys this trigger isnt working properly.
It plays the sound and gives the hero the item as it should but then it doesnt remove the item from him anymore :S
Fixed doing this :
and this ...
It plays the sound and gives the hero the item as it should but then it doesnt remove the item from him anymore :S
Trigger:
- Scream of Pain
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Ability being cast) Equal to Scream of Pain
- (Ability being cast) Equal to Scream of Pain Upgr
- Conditions
- Or - Any (Conditions) are true
- Actions
- Sound - Play Scream <gen> at 100.00% volume, attached to (Triggering unit)
- Unit - Add HUGE REGENERATION to (Triggering unit)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Integer((Percentage life of (Triggering unit)))) Greater than or equal to 99
- Then - Actions
- Unit - Remove HUGE REGENERATION from (Triggering unit)
- Else - Actions
- If - Conditions
- Events
Fixed doing this :
Trigger:
- Scream of Pain
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Ability being cast) Equal to Scream of Pain
- (Ability being cast) Equal to Scream of Pain Upgr
- Conditions
- Or - Any (Conditions) are true
- Actions
- Set SoP_Unit = (Triggering unit)
- Sound - Play Scream <gen> at 100.00% volume, attached to SoP_Unit
- Unit - Add HUGE REGENERATION to (Triggering unit)
- Trigger - Turn on Scream of Pain Check <gen>
- Events
and this ...
Trigger:
- Scream of Pain Check
- Events
- Time - Every 0.01 seconds of game time
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Integer((Percentage life of SoP_Unit))) Equal to 100
- Then - Actions
- Unit - Remove HUGE REGENERATION from SoP_Unit
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events