ok im a really newb at JASS (was a bit lazy to learn it, until i got realized of its powers) and i need to know if there is a more efficient way the next script can be done: (i think there is, by using a loop or more like a function. I think its too long and can be shorter by using another method)
thanks in advance
-
WindowShow
-
Events
- Time - Elapsed game time is 1.50 seconds
- Conditions
-
Actions
- Custom script: if GetLocalPlayer() == Player(0) then
- Custom script: call MultiboardDisplay(udg_Multiboard[1],true)
- Custom script: endif
- Custom script: if GetLocalPlayer() == Player(1) then
- Custom script: call MultiboardDisplay(udg_Multiboard[2],true)
- Custom script: endif
- Custom script: if GetLocalPlayer() == Player(2) then
- Custom script: call MultiboardDisplay(udg_Multiboard[3],true)
- Custom script: endif
- Custom script: if GetLocalPlayer() == Player(3) then
- Custom script: call MultiboardDisplay(udg_Multiboard[4],true)
- Custom script: endif
- Custom script: if GetLocalPlayer() == Player(4) then
- Custom script: call MultiboardDisplay(udg_Multiboard[5],true)
- Custom script: endif
- Custom script: if GetLocalPlayer() == Player(5) then
- Custom script: call MultiboardDisplay(udg_Multiboard[6],true)
- Custom script: endif
- Custom script: if GetLocalPlayer() == Player(6) then
- Custom script: call MultiboardDisplay(udg_Multiboard[7],true)
- Custom script: endif
- Custom script: if GetLocalPlayer() == Player(7) then
- Custom script: call MultiboardDisplay(udg_Multiboard[8],true)
- Custom script: endif
- Custom script: if GetLocalPlayer() == Player(8) then
- Custom script: call MultiboardDisplay(udg_Multiboard[9],true)
- Custom script: endif
- Custom script: if GetLocalPlayer() == Player(9) then
- Custom script: call MultiboardDisplay(udg_Multiboard[10],true)
- Custom script: endif
-
Events
thanks in advance