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

[JASS] Ranking Help!!!

Status
Not open for further replies.
Level 6
Joined
Sep 17, 2005
Messages
276
1.) Does every player have only one hero or is it a map where u can controll more units? Cz its much easier to set ranks if player controlls only 1.

2.) What you need first is a kill counter. Just like that (its the same system like with ammo-trigger i told you. Here i use gold for kills if you have put lumber to ammo...)

Code:
EVENT:     unit-a unit dies
CONDITION: OR-
           Owner of killing unit is Player X
           Owner of killing unit is Player Y etc...
ACTIONS:   add 1 to owner of killing unit current gold

Now you can set another trigger/triggers which say if player X gold higher than or equal to set rank up or whatever you want.
Hm... for example at my map i have used an array-string-variable for each player to save the ranks in. Then i set the name of player to rank + name of player, kinda. So i even could easy update my multiboard with the ranks...

if thats good for you ok, but if you want the whole trigger, post again. But plz try it out first of your own cz i really think my - a bit difficult one - wont fit your needs exactly...
Ok with that info do your best :wink: . otherwise post again...
 
Status
Not open for further replies.
Top