| 05-18-2004, 12:13 AM | #1 |
I thought they were since they could be displayed different on each players screen, but it is interesting because none of the multiboard natives take a player as a parameter. Does everything have to be like this? Code:
if (LocalPlayer() == GetTriggerPlayer()) then
call CreateMultiboard....... |
| 05-18-2004, 03:02 AM | #2 | |
Quote:
Yes, your code will work. I wouldn't put the create multiboard action in there though. It will be enough to create it for all players and only show it for the one player you want. Code:
call CreateMultiboard ...
if LocalPlayer() == GetTriggerPlayer() then
call MultiboardDisplay(mb, true)
endif |
| 05-18-2004, 06:56 AM | #3 |
Isn't Multiboard functions already added to the GUI triggers? Is there still a need to use custom scripts? |
| 05-18-2004, 08:34 AM | #4 |
Thanks, that was just a stupid example, it was the only multboard native i could think of off the top of my head. Would this do it for all players? Code:
loop
exitwhen i > 11
if (LocalPlayer() == Player(i)) then
call MultiboardDisplay(mb,true)
endif
set i = i + 1
endloop |
| 05-18-2004, 08:59 AM | #5 |
Yes, it would, but then again, it would be the same as just calling it individually...as it then shows the multiboard for all players. But yeah, just locally display the multiboard to players you want to show it too, and that's it. ~Cubasis |
| 05-18-2004, 12:21 PM | #6 |
Personally, I prefer to create and show the multiboard for all players and make the content player-specific... for example, let's say you have an array of units which are the main heroes for the players in game X. //Create multiboard, add content: local string content = "|cffffff00Hero: |r"+HeroProperName(pHeroes[(GetPlayerID(LocalPlayer))]) //Do stuff with multiboard That's always lots of fun, and can be used for hero status sheets, etc. |
| 05-18-2004, 01:12 PM | #7 |
I am sorry this is a lil off topic, but hell ill ask neway.... (im a big n00b so here goes, dnt get too annoyed plz) Where you are showing your codes eg narwanza's post.. Which menu do u use to type them in in the editor? or are you useing a tool of this forum to convert? im a bit :S lol |
| 05-18-2004, 05:39 PM | #8 |
Creating a multiboard for the local player won't work, I am sure creating handles cause net movement or whatever, just show them to the local player and done |
| 05-18-2004, 10:35 PM | #9 |
You can put code in like that using the [ code] tag. |
