HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Leaderboard Problem!

05-30-2006, 12:12 AM#1
Dark Bane
Im doing this:
Event:
Unit - A unit owned by Player 2 (Blue) Dies
Action:
Leaderboard - Change the valvue for Player 1 (Red) in (Last created leaderboard) to 1

And i want to know, what i have to make for every time that an Blue Unit dies, the Leaderboard change the Number of Kills for Player 1.
Because, with this im doing, it won't leave from Number 1.

P.S: Sorry, i don't know how to use this [trigger] TAG :/
05-30-2006, 12:44 AM#2
Naakaloh
You'll probably want to assign a integer variable like Player1Kills and use it for the value.

Trigger:
Action:
Set Player1Kills = Player1Kills + 1
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to Player1Kills
05-30-2006, 12:59 AM#3
Dark Bane
Quote:
Originally Posted by Naakaloh
You'll probably want to assign a integer variable like Player1Kills and use it for the value.

Trigger:
Action:
Set Player1Kills = Player1Kills + 1
Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to Player1Kills
Thanks, but how i can change the "Set Player1Kills = Player1Kills + 1", becuz here theres nothing with +1 or something :O
I never made an Leaderboard :/
05-30-2006, 01:49 AM#4
MasterDinadan
Use the arithmetic function. It lets you specify two integers, and an operation (such as addition)
05-30-2006, 08:48 AM#5
The)TideHunter(
Do these instructions:

Click 'Create new Action', like you normally would
Click on - All dropdown menu, and select General
Then click Set Variable
Select Your Variable
Click Value, then click Value again.
Another window will have poped up, in that new window, select your variable from the top.
So it looks like this:
http://wc3campaigns.net/attachment.p...1&d=1148978825

Then press ok and change your final addition, (+1, +1000, -4, -99 etc) unless you dont want too.
05-30-2006, 05:10 PM#6
Deitri
Quote:
Originally Posted by The)TideHunter(
Do these instructions:

Click 'Create new Action', like you normally would
Click on - All dropdown menu, and select General
Then click Set Variable
Select Your Variable
Click Value, then click Value again.
Another window will have poped up, in that new window, select your variable from the top.
So it looks like this:
http://wc3campaigns.net/attachment.p...1&d=1148978825

Then press ok and change your final addition, (+1, +1000, -4, -99 etc) unless you dont want too.
Thanks!
Im Dark Bane, i wasnt finding my Password for this User.
But, Thanks..ALOT!
Attached Images
File type: gifInteger Addition.GIF (18.3 KB)