• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Need help with damage event/floating text

Status
Not open for further replies.
Level 14
Joined
Oct 28, 2019
Messages
536
My unit dont have attack, when you press Q it cast forked lighting at target, adapted to a melee attack. The system is ok
But have problems with the floating text that show the damage, it shows the damage, but show the damage of the forked lighting too (0) how to solve this
I´ve put game text RUN2, it is appearing 2x

  • Show Text Copy
    • Events
      • Unit - A unit Takes damage
    • Conditions
      • (HeroVariable has buff Defend ) Equal to False
    • Actions
      • Set VariableSet TempLoc1 = (Position of (Damage Target))
        • Game - Display to (All players) the text: run2
        • Floating Text - Create floating text that reads (<Empty String> + ((String((Integer((Damage taken))))) + <Empty String>)) at TempLoc1 with Z offset 100.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
        • Custom script: call RemoveLocation(udg_TempLoc1)
        • 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 1.00 seconds
        • Floating Text - Set the velocity of (Last created floating text) to 80.00 towards 90.00 degrees
 
If you add this, it should only show the auto attack damage

1728039722558.png
 
Status
Not open for further replies.
Back
Top