HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

making leaderboards value the health of a unit?

02-18-2004, 03:36 AM#1
Jumbo_pie
if its even possible, i want to know how i can make the value of a player on a leaderboard the current health of a unit.
02-18-2004, 03:37 AM#2
Vilkacis
Have u tryed it yet??
02-18-2004, 03:38 AM#3
Jumbo_pie
yes ive tryed it yet!
02-18-2004, 03:42 AM#4
Vilkacis
Ok, now we are getting somewhere...
02-18-2004, 03:56 AM#5
Hiro
You should check out some of the nice tutorials.

http://www.wc3campaigns.com/forums/a...ticle&artid=33
02-18-2004, 05:28 AM#6
Jumbo_pie
i dont have TFT so that tutorial is useless to me
02-18-2004, 05:40 AM#7
RaeVanMorlock
That tutorial was on multiboards, not leaderboards.

Anyhoo... if you'll kindly direct yourself to Leaderboard - Change Player Value, you'll see that you can set the value of a player on the leadboard as any darn thing you'd like.

For this instance, I'll suggest for you the following line of code and let your imagination run wild from there:

Change the value for Player 1 (Red) in (Last created leaderboard) to (Integer((Life of (TheMagicalUnit))))

TheMagicalUnit, of course, is a variable. If this unit is already placed on the map, then you can click to assign it. Otherwise, I'd suggest using a unit group and finding the proper unit-type owned by the proper player in order to assign some sort of variable to keep track of the unit.

All in all, if any of the above cannot be found in your world editor -- then, no, you can't do this with RoC =P
02-18-2004, 11:45 PM#8
Jumbo_pie
ok i just checked and... no you cant do it in ROC, i REALLY need tft now,
but if there is a substitute for this, then PLEASE tell me