How do i make my damage appear in floating text?

a j j bones

New Member
Reaction score
3
i want to make it so watever my hero hits the damage is displayed as floating text that fades out above the creeps head, how do i do it? :D
 

gref

New Member
Reaction score
33
The main trigger:

PHP:
Floating Text
    Events
    Conditions
        ((Damage source) is A Hero) Equal to True
    Actions
        Floating Text - Create floating text that reads (String((Integer((Damage taken))))) above (Triggering unit) with Z offset 0.00, using font size 8.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
        Floating Text - Change (Last created floating text): Disable permanence
        Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
        Floating Text - Change the fading age of (Last created floating text) to 0.00 seconds
        Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees

The two triggers that make sure all the units are in the trigger:
PHP:
Initialise Floating Text
    Events
        Map initialization
    Conditions
    Actions
        Unit Group - Pick every unit in (Units in (Entire map)) and do (Actions)
            Loop - Actions
                Trigger - Add to Floating Text <gen> the event (Unit - (Picked unit) Takes damage)

PHP:
Add Units to Floating Text
    Events
        Unit - A unit enters (Entire map)
    Conditions
    Actions
        Trigger - Add to Floating Text <gen> the event (Unit - (Entering unit) Takes damage)


Edit: Here's an example... http://shnurple.com/Map/General/Floating Text.w3x
 

Sirroelivan

Gunnerkrigg Court
Reaction score
95
Or you could give your hero an ability based on critical strike with 100% chance to deal 1 times normal damage
 

Juliano

New Member
Reaction score
8
I don't know but a long time ago a guy in this forum said that Critical ignores armor, so if is that true it will not work well...

Someone correct me if I'm wrong

Bye!
 

Chocobo

White-Flower
Reaction score
409
I don't know but a long time ago a guy in this forum said that Critical ignores armor, so if is that true it will not work well...

Someone correct me if I'm wrong

Bye!

Critical Strike floating text ignores armor, it just shows the damage multiplier x damage from dices. But it doesn't ignore armor for damage dealt.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top