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

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!
 
Level 7
Joined
Dec 3, 2008
Messages
189
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...
 
Level 4
Joined
Mar 23, 2008
Messages
90
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

  • kills count on unit.w3x
    18.1 KB · Views: 58
Level 4
Joined
Mar 23, 2008
Messages
90
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

  • kills count on unit.w3x
    20.2 KB · Views: 52
Last edited:
Level 7
Joined
Jul 24, 2008
Messages
294
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.
Top