• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Ranks and Kills {displaying a unit's rank based on kills}

Status
Not open for further replies.
Level 5
Joined
Feb 16, 2005
Messages
103
I was wondering if there was a way to play around with the interface, so that when you clicked on a unit, it could display a certain rank and the amount of kills it has, just like in starcraft. I'm guessing it's really hard to do, but I've seen it done before so I was wondering how to do it? Thanks in advance!
 
Yeah of course it could display it, but not in the unit's interface.
You could make it as displaying game-text but not in the interface where the hero-attributes are placed. Just make a variable named "KillsUnitA" (for example) and every time it kills a unit set it to +1. Then make a trigger when you click on it, it will display the value of the variable. Hope I could help you...
 
i have a map that you can see how many kills he have in name. it can be really many triggers but it works here is map.

i will try to make easier with not so many triggers
 

Attachments

i found out another way. ill post the map
then u use a skille so u see how many kills the unit has.
Darn i screwed up it :S gotta remake the map

well here is the map it works for me but i dont know if u like it
 

Attachments

Last edited:
If your just trying to record a certain units kills then a leaderboard would come in handy,

But

If your just trying to record each individuals kills then -text would be easiest way to do it. The following command does not relate to your problem but it should give you the idea.

  • Selecting Unit
    • Events
      • Player - Player 1 (Red) Selects a unit
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Unit-type of (Triggering unit)) Equal to Ranger - |cffffcc00Level 1|r Level 1
          • (Unit-type of (Triggering unit)) Equal to Ranger - |cffffcc00Level 2|r Level 2
          • (Unit-type of (Triggering unit)) Equal to Ranger - |cffffcc00Level 3|r Level 3
          • (Unit-type of (Triggering unit)) Equal to Warrior - |cffffcc00Level 1|r Level 1
          • (Unit-type of (Triggering unit)) Equal to Warrior - |cffffcc00Level 2|r Level 2
          • (Unit-type of (Triggering unit)) Equal to Warrior - |cffffcc00Level 3|r Level 3
          • (Unit-type of (Triggering unit)) Equal to Knight - |cffffcc00Level 1|r Level 1
          • (Unit-type of (Triggering unit)) Equal to Knight - |cffffcc00Level 2|r Level 2
          • (Unit-type of (Triggering unit)) Equal to Knight - |cffffcc00Level 3|r Level 3
          • (Unit-type of (Triggering unit)) Equal to Militia - |cffffcc00Rank 1|r
    • Actions
      • Game - Display to Player Group - Player 1 (Red) the text: (Name of (Triggering unit))
      • Game - Display to Player Group - Player 1 (Red) the text: (Life - + (String((Life of (Triggering unit)))))
      • Game - Display to Player Group - Player 1 (Red) the text: (Experince - + (String((Mana of (Triggering unit)))))
 
Status
Not open for further replies.
Back
Top