- Joined
- Aug 14, 2006
- Messages
- 7,601
Hey.
I created a very simple floating text damage system that shows how much damage player 1 does and takes. I was wondering if there's a way to add healing to the system as well. I mean when player 1 units are healed by abilities or via triggers.
The event is the problem: there's no a good event for this thing.
Rep + credits to the helpers.
I created a very simple floating text damage system that shows how much damage player 1 does and takes. I was wondering if there's a way to add healing to the system as well. I mean when player 1 units are healed by abilities or via triggers.
The event is the problem: there's no a good event for this thing.
-
FloatingDamage SETTINGS
-
Events
- Map initialization
- Conditions
-
Actions
- Set TempGroup = (Units owned by Player 1 (Red))
- Set TempGroup2 = (Units owned by Neutral Hostile)
-
Unit Group - Pick every unit in TempGroup and do (Actions)
-
Loop - Actions
- Trigger - Add to FloatingDamage TAKEN <gen> the event (Unit - (Picked unit) Takes damage)
-
Loop - Actions
-
Unit Group - Pick every unit in TempGroup2 and do (Actions)
-
Loop - Actions
- Trigger - Add to FloatingDamage DONE <gen> the event (Unit - (Picked unit) Takes damage)
-
Loop - Actions
- Custom script: call DestroyGroup(udg_TempGroup)
- Custom script: call DestroyGroup(udg_TempGroup2)
-
Events
-
FloatingDamage ADD
-
Events
- Unit - A unit enters (Playable map area)
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Owner of (Entering unit)) Equal to Player 1 (Red)
- (Owner of (Entering unit)) Equal to Neutral Hostile
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Entering unit)) Equal to Player 1 (Red)
-
Then - Actions
- Trigger - Add to FloatingDamage TAKEN <gen> the event (Unit - (Triggering unit) Takes damage)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Entering unit)) Equal to Neutral Hostile
-
Then - Actions
- Trigger - Add to FloatingDamage DONE <gen> the event (Unit - (Triggering unit) Takes damage)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
FloatingDamage HEAL
- Events
- Conditions
-
Actions
- Set TempInteger = (Integer((Damage taken)))
- Floating Text - Create floating text that reads (|c0077FF77 + (String(TempInteger))) above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 30.00%, 0.00%), and 10.00% transparency
- Floating Text - Set the velocity of (Last created floating text) to 70.00 towards 90.00 degrees
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
- Floating Text - Change the fading age of (Last created floating text) to 4.00 seconds