D
draconiusg16
Guest
can some 1 give me a map that shows how to display the lifes left
or a way to set it up in a leader board
or a way to set it up in a leader board
Init trigger
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Statistics
Leaderboard - Add Player 12 (Brown) to (Last created leaderboard) with label Lives and value 30
Leaderboard - Add Player 11 (Dark Green) to (Last created leaderboard) with label -------------------... and value 0
Leaderboard - Change the display style for Player 11 (Dark Green) in (Last created leaderboard) to Show the label, Hide the value, and Hide the icon
Set Lives = 30
For each (Integer A) from 1 to 4, do (Actions)
Loop - Actions
If ((((Player((Integer A))) controller) Equal to User) and (((Player((Integer A))) slot status) Equal to Is playing)) then do (Leaderboard - Add (Player((Integer A))) to (Last created leaderboard) with label (Name of (Player((Integer A)))) and value 0) else do (Do nothing)
Leaderboard - Show (Last created leaderboard)
Kills
Events
Unit - A unit owned by Player 12 (Brown) 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)))]
Board Update
Events
Unit - A unit enters End <gen>
Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Actions
Set Lives = (Lives - 1)
Unit - Explode (Entering unit)
Game - Display to (All players) the text: (Life Lost! + ((String(Lives)) + Live(s) remaining.))
Leaderboard - Change the value for Player 12 (Brown) in (Last created leaderboard) to Lives