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

Display Floating Counter

Status
Not open for further replies.
Level 2
Joined
Oct 16, 2004
Messages
16
Blizzard does this a lot in their campaigns, but I've never found the right triggers to do it in my maps. But how do I display a floating counter for a Quest? e.g a kill 5 so and so quest with a counter reading 0/5 and increasing for each so and so killed.

Thanks
 
Level 5
Joined
Oct 3, 2008
Messages
104
in your quest you must have a variable for number of units killed.
convert that variable to a string and add it to wat u wanna display (number of units killed)/5 <-- all as a string, which you will then create as floating text. set a variable for this floating text.
make a trigger (or add to a previous trigger) so that every time you kill the quest unit, the floating text variable is destroyed and a new floating text is created with the new values
 
Level 13
Joined
Sep 14, 2008
Messages
1,408
You create an integer. For example KillCounter

Then you need a trigger:

Event: Unit dies
Condition: Unit type of dieing unit = egg
Action: Set KillCounter = KillCounter +1
Create floating text above killing unit (string(KillCounter))
wait 2 sec
destroy last created floating text
 
Status
Not open for further replies.
Top