Hi, is there an Damage Taken Condition?
Like, ''Damage taken equal to or more then 1''.
The reason is i have a damage show floating text, and it sometimes shows ''0!'' which is annoying.
Edit: Nevermind i did it this way
Just last question, does that leak ?
Like, ''Damage taken equal to or more then 1''.
The reason is i have a damage show floating text, and it sometimes shows ''0!'' which is annoying.
Edit: Nevermind i did it this way
Code:
Show Damages
Events
Conditions
(Unit-type of (Triggering unit)) Not equal to Wisp
Actions
Set MyLocation = (Position of (Triggering unit))
Set Damagetaken = (Integer((Damage taken)))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Damagetaken Equal to 0
Then - Actions
Do nothing
Else - Actions
Floating Text - Create floating text that reads ((String((Integer((Damage taken))))) + !) at MyLocation with Z offset 0.00, using font size 8.00, color (100.00%, 15.00%, 10.00%), and 30.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
Floating Text - Set the velocity of (Last created floating text) to 70.00 towards 180.00 degrees
Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
Custom script: call RemoveLocation(udg_MyLocation)
Just last question, does that leak ?