• 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.

[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,243
  • 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