| 01-15-2005, 12:41 PM | #1 |
Guest | well i got this idea i want to work out but iam stuck... iam trying to putt up 2 leaderboards 1 for hero lvl and the other for kills... now i understand that this isnt possible i want to try to do it with a multiboard... the biggest dissaster now is that my kills wont calculate... the multiboard cant add up numbers the way i trigger it, it just add another 1 in the line, any help on this would be nice -Relaxed- |
| 01-16-2005, 04:17 PM | #2 |
we cant help you if u dont post the triggers u made. copy your trigger as text (right click on it) and show it here. |
| 01-17-2005, 07:06 AM | #3 |
Guest | this is what i have so far.... ======================================================== Killz1 Events Unit - A unit owned by Player 12 (Brown) Dies Conditions (Owner of (Killing unit)) Equal to Player 1 (Red) Actions Set Killz1 = (Killz1 + 1) Multiboard - Set the text for MultiBoard item in column 3, row 2 to Killz1 Make Events Time - Elapsed game time is 2.00 seconds Conditions Actions Multiboard - Create a multiboard with 3 columns and 9 rows, titled Player - Hero Level... Set MultiBoard = (Last created multiboard) If ((Player 1 (Red) slot status) Equal to Is playing) then do (Multiboard - Set the text for MultiBoard item in column 1, row 2 to (Name of Player 1 (Red))) else do (Multiboard - Set the text for MultiBoard item in column 1, row 2 to >----Not Playing---...) Multiboard - Set the text for MultiBoard item in column 3, row 2 to Killz1 ========================================================= |
| 01-17-2005, 12:38 PM | #4 | |
Quote:
That should work fine, but as I said.. use arrays. Try this: Code:
Events
Unit - A unit owned by Player 12 (Brown) Dies
Conditions
Actions
Set Killz[Player number of( Owner of (Killing Unit) )] = (Killz[Player number of( Owner of (Killing Unit) )] + 1)
Multiboard - Set the text for MultiBoard item in column 3, row (Player number of( Owner of (Killing Unit) ) + 1) to Killz1[Player number of( Owner of (Killing Unit) )]I dunno why it shouldnt work tho... |
| 01-17-2005, 01:05 PM | #5 |
Guest | iam using the previous one and all it does it add another 1 to the line its like it turfing the kills instead of adding ill try this and hope it works but i dont got the player numbers set to the multiboard items, iam only adding the stats to the multiboard with a specific collumn and row... do you get what i mean cause now iam kinda confused myself :S (i mean that i have player1 in collumn 3 row 2) |
| 01-17-2005, 01:08 PM | #6 | |
Quote:
Well anyway, try the Array, itll work. If it doesnt I will help u further if u post the map. |
| 01-17-2005, 01:11 PM | #7 | |
Guest | Quote:
i have it as a string cause integer doesnt work in multiboard that well, but if i understand correct it has to be an integer?? |
| 01-17-2005, 01:16 PM | #8 | |
Quote:
and after do this: set kills = kills + 1 it will do this: "1" + "1" = "11" just like "b" + "a" = "ba" You must do this on the multiboard: Code:
Multiboard - Set the text for MultiBoard item in column 3, row (Player number of( Owner of (Killing Unit) ) + 1) to Convert Integer to String(Killz1[Player number of( Owner of (Killing Unit) )]) |
| 01-17-2005, 01:24 PM | #9 |
Guest | man i can see ur pro at this cause i dont really understand.... do u have msn??? perhaps we can work this out easyer/faster??? |
| 01-17-2005, 01:26 PM | #10 |
check your pm's |
| 01-17-2005, 07:47 PM | #11 |
actually, i see a bug in your first trigger that counts the kills, as far as i know, you have to use the "Show Multiboard" action again after changing a value in the multiboard. try that and it would probably help... btw, My number 200(!) post =) :god_help_us: :god_help_us: :god_help_us: |
| 01-17-2005, 09:41 PM | #12 |
Guest | Well its all done now Toot helped me out big time ^_^ thx a lot man.... ![]() |
