correct event/condition

hortononon

"I give em the hip then I take it away"-Jim Thorpe
Reaction score
29
im tryin to make a trigger so when player1red kills a unit his value on the leaderboard increases by one...
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
Leaderboard - Change Value of <Player>

I think that's the action. For event, use A Unit Dies.
 

hortononon

"I give em the hip then I take it away"-Jim Thorpe
Reaction score
29
well no that wont work cuz three other players also increase their value when they kill a unit

sorry if i confused u..
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
> well no that wont work cuz three other players also increase their value when they kill a unit

Umm... yes it will.

Code:
Leaderboard - Change the value for (Owner of (Killing unit)) in <Some Leaderboard> to (<Some variable that should be tracking kills for each player> + 1)
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
> what variable would that be?

Probably Integer array. Do this:

Code:
Kills
    Events
        Unit - A unit Dies
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Owner of (Dying unit)) Equal to Player 12 (Brown)
            Then - 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 Leaderboard to Kills[(Player Number of (Owner of (Killing Unit)))]
            Else - Actions
 
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