• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Healing Floating Text

Status
Not open for further replies.
Level 1
Joined
Jan 26, 2012
Messages
5
Hi, i'm new here and my skills at triggers are very basic.
I've been searching here for the floating text trigger when some unit heals but i cant find any map uploaded that explains this trigger.
What i really want is the healing floating text i mean when some units heal with a spell, lifesteal or with his own hp regeneration.
 
Level 4
Joined
Aug 5, 2011
Messages
99
  • unit is created
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Trigger - Add to Show healing done <gen> the event (Unit - (Triggering unit) Takes damage)
  • Show healing done
    • Events
    • Conditions
      • (Damage taken) Less than 0.00
    • Actions
      • Floating Text - Create floating text that reads (+ + (String(((Damage taken) x -1.00)))) above (Triggering unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards (90.00 + ((Random real number between 0.00 and 30.00) - (Random real number between 0.00 and 30.00))) degrees
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
      • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
 

Attachments

  • healing done.w3x
    16.3 KB · Views: 48
Level 1
Joined
Jan 26, 2012
Messages
5
mmm nope

  • unit is created
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Trigger - Add to Show healing done <gen> the event (Unit - (Triggering unit) Takes damage)
  • Show healing done
    • Events
    • Conditions
      • (Damage taken) Less than 0.00
    • Actions
      • Floating Text - Create floating text that reads (+ + (String(((Damage taken) x -1.00)))) above (Triggering unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards (90.00 + ((Random real number between 0.00 and 30.00) - (Random real number between 0.00 and 30.00))) degrees
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
      • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds

doesn't work :sadpanda:
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
For this type of system, you need to relate your ability with the trigger itself, it cannot be done outside of our knowledge

Like, you got a total of 14 Healing Type ability, each of this will relate with the system, but since we doesn't know what ability is being judged, therefore we cannot do it
 
Level 1
Joined
Jan 26, 2012
Messages
5
mmm

Yeah that could be the final solution, however my map just have 3 or 4 Heal spells, but what about life steal and high hp regeneration?
 
Status
Not open for further replies.
Top