Leaderboard help

Status
Not open for further replies.
Level 2
Joined
May 22, 2006
Messages
14
Disclaimer : I am one of those poor souls that doesn't have TFT, so try helping me in a RoC-friendly way (no multiboards).

I've been stuck on this for a day or so now. I've read the tutorials on sevral sites but there always seems to be one or two things that don't work. So I've come here to ask a way to make the following work. Firstly, the leaderboard has to look like this :

Force 1 #
Force 2 #
Goal #

I don't want player names or colors, just 2 teams, their points and the number of points you need to win (goal). Then the actual trigger to score should go something like this

Events
Unit enters "Region1"

Conditions
Unit has item "Flag"

Actions
Add 1 point to the team that the unit belongs to
Remove item "Flag" from game
Create item "Flag" at "Region 2"

---------------------------

I have all that down except for the adding score part. Any advice is welcome, thanks for your time.
 
Level 29
Joined
Jun 4, 2007
Messages
1,480
I use resources for all my leaderboards, kind off a shortcut. I recommend using lumber if it's not used in any other way.
Create the leaderboard with the following trigger actions.
----------------------------------------------------------------
Create leaderboard titled (you pick)
Add (Neutral Hostile) to (last created leadreboard) with label (Force 1) and value (0)
Add (Neutral Victim) to (last created leadreboard) with label (Force 2) and value (0)
Add (Neutral Extra) to (last created leadreboard) with label (Goal) and value (the amount of points required for victory)
---------------------------------------------------------------
Event: Unit Enters "Region 1"

Condition: Unit has item "Flag"

Action: Add 1 to (Neutral Hostile/Victim)'s current lumber.
Change value of (Neutral Hostile/Victim) in last created leaderboard to (Neutral Hostile/Victim)'s current lumber.
(and the other actions you typed)
-------------------------------------------------------
The force who gets the point depends, as you might understand, on who leaves the flag.
--------------------------------------------------------
Event: (Neutral Hostile/Victim)'s current lumber becoes (greater than or equal to) (the amount of points required for victory)

Actions: Pick all players in (Force 1, for example) and do action: Game - Victory
Pick all players in (Force 2) and do action: Game - Defeat
----------------------------------------------------------
If you want the names to be white you can use the Change Label Colors action, and set all the values to 100. I never use multiboards cause I don't get how they work (I don't really do with leaderboards either).
Could you please PM me when the map is done? I like CTF maps.
 
Status
Not open for further replies.
Top