| 10-20-2003, 02:21 AM | #1 |
Is there a way to show each player a custom leaderboard or multiboard?(Preferably multiboard so it can be minimized). |
| 10-21-2003, 04:45 AM | #2 |
good lord people doesn't anyone know anything about multiboards? |
| 10-21-2003, 05:25 PM | #3 |
You can only display a multiboard to all the players. The values could be customized with GetLocalPlayer() but I've heard this causes desyncs. |
| 10-21-2003, 08:48 PM | #4 |
Yeah. Damn Warcraft 3 and its damn desyncs. Anything that uses GetLocalPlayer causes desyncs. Basically stay away from that whole triggering zone. |
| 10-21-2003, 10:23 PM | #5 |
Create an array of multiboards (or leaderboards), add to them the stuff you want and then display each of them to separate players by using if player_to_see_that == GetLocalPlayer() then // here goes the call for the display function endif |
| 10-21-2003, 10:26 PM | #6 |
That will cause desync. Using LocalPlayer always causes desync (unless you're very lucky). |
| 10-22-2003, 02:11 PM | #7 |
Don't talk about things you don't know anything about. When using the GUI you often use local player implicitly. There is no luck involved. It does not cause desyncs if you know what you are doing. The important thing to remember about it is that using if with local player in this way causes the code to only run on one computer. So you may not alter synced game states in there, only local things like input and output. As an example for local player usage look at AMAI. I use it a lot in there and it does not cause desync. Others use it to start cinematic mode for only one player. Of course that means in this case not to change the game speed and setting the random seed. |
| 10-22-2003, 07:52 PM | #8 |
yes 35263526, don't talk bullshit :P LocalPlayer is very usable, and is incredibly powerful tool. But you just need to know how to do it, and what it's limits are. Some thing works with local-player, and others don't, and most of those are quite logical. F.ex. don't try creating a unit for local-player...as that makes two different unit-sets between the players in multiplayer and will mess up. But other things are very possible. I have myself seen local multiboards working, and it's incredibly cool, it's basicly DaKaN's turn-based system...in multiplayer, where each player has his own ATB-bar on his multiboard. Local player is also good for much concerning cameras and view, and if you take a look at blizzard.j you'll notice that ALL the camera-functions use local-player. There are alot of other functionalities with it that can create cool effects, but it's basicly about trial-and-error and testing the different things, plus ofcourse...logic. Cubasis |
| 10-22-2003, 10:58 PM | #9 |
Thank you guys so much, I forgot completely about getlocal player(just started using jass a few weeks ago lol). edit: w00t, it works now to test online. |
