Leaderboard

Söder

New Member
Reaction score
1
Hello i'm wondering if u know if it would work to have the leaderboard booth count kills and "chances left" (when a unit enters a region)
......ori could just say it like... can the leaderboard count two diffrent things at the same time?

if u know how please answer... i can only get it to make 1 of them and if i set booth everything mess up... like the chnces left = kills sometimes and so on..
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
something like this?
Code:
Untitled Trigger 002
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Leaderboard - Create a leaderboard for (All players) titled TD
        For each (Integer A) from 1 to 11, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Player((Integer A))) slot status) Equal to Is playing
                    Then - Actions
                        Leaderboard - Add (Player((Integer A))) to (Last created leaderboard) with label (Name of (Player((Integer A)))) and value 0
                    Else - Actions
        Leaderboard - Add (Player(12)) to (Last created leaderboard) with label Lives left and value 0

Code:
Kills
    Events
        Unit - A unit Dies
    Conditions
    Actions
        Set kills[(Player number of (Owner of (Killing unit)))] = (kills[(Player number of (Owner of (Killing unit)))] + 1)
        Leaderboard - Change the value for (Owner of (Killing unit)) in (Last created leaderboard) to kills[(Player number of (Owner of (Killing unit)))]

Code:
Lose life
    Events
        Unit - A unit enters END REGION <gen>
    Conditions
    Actions
        Set lifes = (lifes - 1)
        Leaderboard - Change the value for Player 12 (Brown) in (Last created leaderboard) to lifes

or?

Variables used:
NAME - TYPE - ARRAY?
lifes - integer - no
kills - integer - yes
 
T

Tomme

Guest
Okay. So let's get this straight. Make two variables (integers) one called Kills, second called Chances (this one with standard number of the amount of chances you want, lets say you put 30), Now in a trigger do:
Code:
Event
  Time - Elapsed game time equal to 0.00
Condition
Actions
  Leaderboard - Create a leaderboard with title Info
  Leaderboard - Add Neutral Enemy to last createdleaderboard with title Kills and value Kills (the variable)
  Leaderboard - Add neutral passive to last created leaderboard with title chances and value chances (the second variable)
Code:
Now another Trigger:
Event
  Unit enters region xxx
Condition
  Owner of triggering unit equal to player xx
Action
  Set variable Chances = Chances - 1

Bah, now I have to go, someone else finish it please
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top