| 05-04-2004, 09:28 PM | #1 |
needs a trigger to create a scoreboard where the unit's hp = value on scoreboard... |
| 05-04-2004, 09:39 PM | #2 |
I dont think it is possible with a leader board but here it the code for multi board, of course u'll have to set up the board and change a few things in the code that I have but what I made for you is the basic concept. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Untitled Trigger 001 Events Time - Every 2.00 seconds of game time Conditions Actions Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (String((Life of (Triggering unit)))) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 05-04-2004, 10:05 PM | #3 |
question, how do u make a multiboard? i've never seen it b4 |
| 05-04-2004, 10:11 PM | #4 |
It is possible to show a units health with a leaderboard... Just a second I'll whip up a trigger for it... |
| 05-04-2004, 10:19 PM | #5 |
Im not to good at multiboards, there colums and rows confuse me,I just need to look at it a little more tho. anyway this much works as of now. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Create Events Time - Elapsed game time is 5.00 seconds Conditions Actions Multiboard - Create a multiboard with 2 columns and 1 rows, titled Unit HP Multiboard - Set the width for (Last created multiboard) item in column 0, row 0 to 10.00% of the total screen width Multiboard - Show (Last created multiboard) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Update Events Player - Player 1 (Red) types a chat message containing -update as An exact match Conditions Actions Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to (String((Unit-type of (Picked unit))))) Unit Group - Pick every unit in (Units currently selected by Player 1 (Red)) and do (Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to (String((Life of (Picked unit))))) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 05-04-2004, 10:23 PM | #6 |
i cant find the multiboard option... |
| 05-04-2004, 10:24 PM | #7 |
OK, I got it to work well enough that I could watch Tichondrius' regeneration on the leaderboard. There are two variables, a leaderboard variable and a real variable. The unit used for this trigger was Tichondrius. The first trigger sets up the leaderboard: Code:
Trigger001
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Leaderboard - Create a leaderboard for (All players) titled Health
Set LeaderboardVariable = (Last created leaderboard)
Set RealVariable = (Life of Tichondrius 0007 <gen>)
Leaderboard - Add Player 1 (Red) to LeaderboardVariable with label Tichondrius and value (Integer(RealVariable))
Leaderboard - Show LeaderboardVariableThe second one is the update trigger: Code:
Update Leaderboard
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set RealVariable = (Life of Tichondrius 0007 <gen>)
Leaderboard - Change the value for Player 1 (Red) in LeaderboardVariable to (Integer(RealVariable))I hope this helps! |
| 05-04-2004, 10:31 PM | #8 |
question: would that update lag up the game? |
| 05-04-2004, 10:34 PM | #9 |
It depends. How much do you plan on having going on at the same time? If it does start lagging, you can always have a less accurate, slower update rate, but also have less lag. Unfortunately, there's no 'Unit's Life Changes' event... |
| 05-04-2004, 10:36 PM | #10 |
okay, that worked out fine, thx |
