Staredit Network

Staredit Network -> UMS Assistance -> Multiple Leaderboards
Report, edit, etc...Posted by TheUberPie on 2005-07-01 at 11:26:13
How do you make multiple types of leaderboards in one game?
I'm talking like there might be a greed counter that will alternate with a kill counter every 5000 millisecs, and vice versa.
I tried just doing:
Trigger
Conditions:
¤ Always
Actions:
¤ Leaderboard for Greed
¤ Wait 5000 milliseconds
¤ Leaderboard for Kills
¤ Wait for 5000 milliseconds


But then the leaderboards reset to 0 for everyone every time it switches.
helpsmilie.gif

Edit: If any Mod would like to send me a link to a tutorial, that would be nice, and close the topic after you do.
Report, edit, etc...Posted by Subrosian on 2005-07-01 at 12:52:04
First, you have use the action "Preserve Trigger" in your trigger.

Maybe it "resets" to 0 because the kill score starts at 0.
Report, edit, etc...Posted by ManateeQuest on 2005-07-01 at 13:22:19
If you arn't using gas,e is a possiblilty:
Display Stat1;
Set gas to Stat1;
Display Stat2 (which is money, correct?);
Set Stat1 to gas;
Display Stat1;

ect.

I'd need to know spefically what greed means, and which resources you're using, but the point is, you can use gas and minerals as temporary variables to hold values. I'm not sure if stracraft allows you to decalre variables, bu that would be nice, eh? Another way would be to crate a timer which holds a value, but don't let it count down so it reatains that value.

There are a bunch of ways to use things for puproses ther than what they were desined for.
Report, edit, etc...Posted by slayer766 on 2005-07-01 at 13:48:47
Or the best way that I know how to do it is using Death Counters. biggrin.gif

Have this trigger to be seperate for the Human Players only.

Trigger
Description:
Human Players
Conditions:
¤ Always
Actions:
¤ Modify Deaths For Current Player: Add 1 For Unused (Cargo Ship)
¤ Preserve Trigger


Then make another trigger saying this:

Trigger
Description:
Human Players
Conditions:
¤ Current Player Has Suffered Exactly 60 deaths of Unused (Cargo Ship)
Actions:
¤ Show your leaderboard of what you want
¤ Preserve Trigger


Then do it again to set up another Leaderboard like this:

Trigger
Description:
Human Players
Conditions:
¤ Current Player Has Suffered Exactly 120 deaths of Unused (Cargo Ship)
Actions:
¤ Show your leaderboard of what you want
¤ Modify Deaths Counts for current player: Set to 0 For Unused (Cargo Ship)
¤ Preserve Trigger


You can show more leaderboards than that, I was just showing you an example. If you wanted to show more leaderboards you would just simply add 60 deaths onto the 120 of the Cargo Ship (or whatever unit you are not using) then display your leaderboard, and then Modify Death Counts back down to zero to start the process all over again. biggrin.gif
Report, edit, etc...Posted by TheUberPie on 2005-07-02 at 01:50:16
I just used Greed in the first leaderboard type for an example. I'd normally do something like, Kills of Zerglings and Kills for Hydralisks for a map I'd be working on. The greed aparently would work fine, because it takes a measure from the actual resource amount. Though, the kills type (and many others which I'm not sure about the exact way it works), resets every to 0 every time a it switches to the other leaderboard.
Report, edit, etc...Posted by in_a_biskit on 2005-07-02 at 03:44:10
It works for me...
Do you have any triggers that reset scores? Are you selecting the correct score type/unit type?
Maybe you should post the map.
Next Page (1)