| 05-11-2006, 06:20 PM | #2 |
Nice, I have been looking for sumthing like this |
| 05-12-2006, 03:27 PM | #3 |
In the first example why are you using JASS? |
| 05-12-2006, 09:12 PM | #4 |
Because this is a JASS tutorial in multiboards. |
| 05-20-2006, 09:33 AM | #5 |
Update: JASS:function CreateMultiboardEx_ColumnCount takes nothing returns integer return 4 //How many columns the mb will have endfunction function CreateMultiboardEx_RowCount takes nothing returns integer return 4 //How many rows the mb will have endfunction function CreateMultiboardEx_Width takes integer row,integer column returns real return 0.06 //the width of a signle item endfunction function CreateMultiboardEx_Val takes integer row,integer column returns string return "" //the string shown at that position endfunction function CreateMultiboardEx_Icon takes integer row,integer column returns string return "" //the icon shown at that position endfunction function UpdateMultiboardEx takes multiboard mb,integer row,integer column,string val,string icon,real width returns nothing local multiboarditem mbi=MultiboardGetItem(mb,row,column) call MultiboardSetItemStyle(mbi,val!="",icon!="") if val!="" then call MultiboardSetItemValue(mbi,val) endif if icon!="" then call MultiboardSetItemIcon(mbi,icon) endif call MultiboardSetItemWidth(mbi,width) call MultiboardReleaseItem(mbi) set mbi=null endfunction //use p==null if you wanna create a mb for all players function CreateMultiboardEx takes player p returns multiboard local multiboard mb=CreateMultiboard() local multiboarditem mbi local string val local string icon local integer column=0 local integer row=0 if p==null then call MultiboardDisplay(mb,true) else call MultiboardDisplay(mb,GetLocalPlayer()==p) endif loop exitwhen row>CreateMultiboardEx_RowCount() set column=0 loop exitwhen column>CreateMultiboardEx_columnCount() set val=CreateMultiboardEx_Val(row,column) set icon=CreateMultiboardEx_Icon(row,column) set mbi=MultiboardGetItem(mb,row,column) call MultiboardSetItemStyle(mbi,val!="",icon!="") if val!="" then call MultiboardSetItemValue(mbi,val) endif if icon!="" then call MultiboardSetItemIcon(mbi,icon) endif call MultiboardSetItemWidth(mbi,CreateMultiboardEx_Width(row,column)) call MultiboardReleaseItem(mbi) set column=column+1 endloop set row=row+1 endloop set mbi=null set bj_lastCreatedMultiboard=mb set mb=null return bj_lastCreatedMultiboard endfunction Now it should work. |
| 05-24-2006, 12:03 AM | #6 |
Nice tut. |
| 08-25-2006, 06:49 AM | #8 |
just wondering, does this mean that by default using the CreateMultiboardBJ function, the multiboard is only created for player1? and not the other players in a network game? |
| 03-03-2007, 01:33 PM | #9 | |
Quote:
It's using GetLocalPlayer().. |
| 05-05-2007, 02:08 PM | #10 |
I must be an idiot or something, but i would be greatful if sometold me what i was doing wrong. Im on the first part, i copied and pasted the jass into my trigger then replaced *triggername* with the trigger's name. When i test to see if it works, it says there is an error on line 25, it says it expects a name. thats my problem. Thx if you help. |
| 07-05-2007, 03:35 PM | #11 |
always nice to see someone manipulate and simplify my code, lol. I wrote the original per player multiboard tutorial (on wc3c), except it was a menu, which is better! |
| 10-24-2007, 12:35 AM | #12 |
nevermind. |
