- Joined
- Nov 30, 2007
- Messages
- 1,202
Basically I want the str of below one to replace the above one....
The new order displays properly in DebugMsg format but the multiboard doesn't change?? However when I change into this it works:
JASS:
set i = 0
loop
exitwhen i == BOARD_ROWS - 1
set .str[i] = .str[i + 1]
call MultiboardSetItemValue(.mbi[i], .str[i])
call MultiboardReleaseItem(.mbi[i])
set i = i + 1
endloop
set i = 0
loop
exitwhen i == BOARD_ROWS - 1
call BJDebugMsg(.str[i])
set i = i + 1
endloop
The new order displays properly in DebugMsg format but the multiboard doesn't change?? However when I change into this it works:
JASS:
method addString takes ChatString msg, boolean flag returns nothing
local integer i
local integer k = 0
loop
set i = 0
loop
exitwhen i == BOARD_ROWS - 1
set .str[i] = .str[i + 1]
set i = i + 1
endloop
set str[BOARD_ROWS - 1] = msg.line[k]
set i = 0
loop
exitwhen i == BOARD_ROWS
call MultiboardSetItemValueBJ(.mb, 1, i + 1, str[i])
set i = i + 1
endloop
exitwhen k == msg.n
set k = k + 1
endloop
endmethod
endstruct
Last edited: