- Joined
- Dec 3, 2018
- Messages
- 874
I'm trying to make a trigger which should make the screen red and shake it based on how many enemies are attacking a unit and how low that unit is.
I made this trigger but doesn t get the job done
I made this trigger but doesn t get the job done
-
Attacked Shake
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Level of Hero Unit for (Triggering unit)) Greater than or equal to 1
-
Actions
- Set VariableSet Shake[(Player number of (Owner of (Triggering unit)))] = (Shake[(Player number of (Owner of (Triggering unit)))] + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Shake[(Player number of (Owner of (Triggering unit)))] Greater than 0
-
Then - Actions
- Camera - Shake the camera for (Owner of (Triggering unit)) with magnitude (1.00 + ((Real(Shake[(Player number of (Owner of (Triggering unit)))])) / 2.00))
- Cinematic - Fade out over 5.00 seconds using texture White Mask and color (100.00%, 0.00%, 0.00%) with 95.00% transparency
- Wait 1.00 seconds
- Camera - Stop swaying/shaking the camera for (Owner of (Triggering unit)).
-
Else - Actions
- Wait 2.00 seconds
- Camera - Stop swaying/shaking the camera for (Owner of (Triggering unit)).
-
If - Conditions
-
Events