| 03-05-2004, 09:23 AM | #1 |
I've heard somewhere that it is possible to have a multiboard hide or display for only one player. However after trying a lot of stuff, I have been unable to get this to work... Im pretty sure it takes some custom script and Im not that good with the language yet. :( If anyone KNOWS how to do this, please explain it as clear as possible to someone who has only basic knowledge of the jass language. Your help will not go unnoticed! :D -Peace! |
| 03-05-2004, 01:01 PM | #2 |
I know for certain that Darky27 has this implemented in his Tower Defence map. His map is free to browse over for 'code intuition' as yuo see fit. i suggest you take a look at it. I believe his multiboard is all GUI, and no JASS, but I could be wrong. If you can't find his map, pop over to www.wc3sear.ch |
| 03-05-2004, 01:58 PM | #3 |
You can do this by putting an if with local player around the hide/show action (note though that it should go only around that action, not any other as that can easily cause splits). Like this: if udg_my_player == GetLocalPlayer() then // put the show/hide action for the multiboard here endif This will show the multiboard for the Player in the global my_player variable only. |
| 03-05-2004, 09:43 PM | #4 |
THANK YOU AIANDY! So far it seems to work perfectly. I hope I wont have any trouble when running it over battle.net.. but for now, Its just what I wanted. Thanks so much! Check your PMs too! Peace! |
| 03-05-2004, 10:41 PM | #5 |
For everyone else who searches and finds this thread.... here is the actual code needed ------------------------------------------------------------------ if udg_player == GetLocalPlayer() then call MultiboardDisplayBJ( true, GetLastCreatedMultiboard() ) endif ------------------------------------------------------------------ You need to set udg_player to the player you want to show the board to and when you create the board, hide it to all players as the last action. Thanks again to Whitehorn and AIAndy for their help! |
| 03-05-2004, 11:48 PM | #6 |
There are like 500 threads on this, there's even a tutorial in the trigger repository. People don't like to repeat things my friend. Try using the forums search feature next time. I'm sure you'll find what you were looking for. |
| 03-06-2004, 12:23 AM | #7 |
IMO the best way of doing this is to create a multiboard array. The array index == the player it will be showed to each player. Ex Array[1] = player 1s multiboard Than call Code:
call MultiboardDisplayBJ( true, udg_MultiboardArray[GetConvertedPlayerId(GetLocalPlayer())]) |
| 03-06-2004, 03:30 AM | #8 |
Good call legolasarcher, but I only need one multiboard, and this worked. Hey mysticgeneral, rather than being a sarcastic bastard coming into a thread that has been solved by a few very nice users, why dont you LINK to one of those 500 threads, cause I searched all last night and the only things i found didnt seem to work properly and crashed WE. Not to mention some people are out there CREATING, and this takes time, time they dont have to spend on message boards looking through every post figuring out where they can post their next meaningless and inappropriate responses! These people ask for help, they offer services/gratitude in return, and they get quick helpful posts. Id like to see you spend half your time working on 2 mod projects, a complete mini mod map, an art porfolio, and apply to jobs in the industry. Maybe then, when you're swamped you can post a nice question and have it answered by those in the community who wish to help. Sorry to go off, but im sick of getting flamed every time i post a question that i need a quick responce to...if people didnt want to help others, this forum wouldn't exist. Ok back to work.. god it feels good to let off some steam! btw, youre not my friend PEACE! |
