Island Defense
February 08, 2012, 01:33:37 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Latest version:  3.0.6G4, 3.0.8d
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: MultiBoard Help  (Read 416 times)
0 Members and 1 Guest are viewing this topic.
Panda-Assassin
Worker


Karma: +3/-5
Posts: 30



View Profile
« on: July 02, 2009, 07:11:16 PM »

Could someone help me with my multiboard? I can't get it to work properly. I want it to be kind of like Panda's Island Defense but with kill scores for people.
Logged
theorchero
Guest
« Reply #1 on: July 10, 2009, 09:42:40 AM »

*sigh* alright, ill help ur noob ass.

First of all, you can't create multiboards at map initialization, it just doesn't work.

Code:
[size=15pt]Melee Initialization <-[Name of Trigger; Does not effect what happends]
    Events
        Time - Elapsed game time is 0.50 seconds
    Conditions
    Actions
        Leaderboard - Create a leaderboard for (All players) titled Player Kills
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0[/size]

The thing you want is called leaderboard, not multiboard.
Use a player group command to add all players. You can trigger it to where its only actual players, like that below

Code:
[size=15pt]Melee Initialization <-[Name of Trigger; Does not effect what happends]
    Events
        Time - Elapsed game time is 0.50 seconds
    Conditions
    Actions
        Leaderboard - Create a leaderboard for (All players) titled Player Kills
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked player) controller) Equal to User
                    Then - Actions
                        Do nothing
                    Else - Actions
                        Leaderboard - Remove (Picked player) from (Last created leaderboard)[/size]

To get the kills, make a seperate trigger.

Code:
[size=15pt]Kills
    Events
        Unit - A unit Dies
    Conditions
        ((Triggering unit) is A Hero) Equal to True
    Actions
        Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to (TestVar + 1)[/size]

Because of the fact the GUI doesnt have leaderboard values for your comparison, make variables and set them to the value you want from the start, then modify the variables, and if you have a trigger set up, you can automatically change a players value to the variable (make sure its type is interger)

Code:
[size=15pt]Values2
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (Actions)
            Loop - Actions
                Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to EndScore[/size]
Thats for red, just copy the leaderboard action you made for red, make a new variable (if you didn't make the variable replacing "EndScore" an array) for each player, and plug it in, easy.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!