• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] XP

Status
Not open for further replies.
Level 5
Joined
Jan 18, 2012
Messages
92
Well I posted this first in the rquest board , but no one is answering so I decided to post it here ...


I don't know how to make a trigger that when my hero kills a unit it shows how much xp I got above the killed unit. Maybe it's simple , maybe it's not , idk... (I would be really thankfull if you could make a demo map)

Thanks in advance
:ogre_hurrhurr:
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 041
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Floating Text - Create floating text that reads (String(((Hero experience of (Killing unit)) - i))) above (Dying unit) with Z offset 0.00, using font size 10.00...
      • Floating Text - Set the velocity of (Last created floating text) to 64.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 3.00 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 2.50 seconds
      • Set i = (Hero experience of (Killing unit))
i is an integer variable where you store the hero's exp. If you have multiple heroes then you need to use a hashtable or a integer array.
 
Status
Not open for further replies.
Top