- Joined
- Jun 30, 2008
- Messages
- 580
I have isolated that the MultiboardSetItemValue is causing my handles to go up, even though I destroy the multiboard later on, the handles stay the same. This function is called whenever a player presses the DOWN arrow key. And they will use it quite a bit x 10 players. And each press causes the handles to go up from 20 to 100 handles.
Is there a way around this?
Is there a way around this?
JASS:
private function NextAtt takes nothing returns nothing
local integer pID = GetPlayerId(GetTriggerPlayer())
local CharDat dat = LoadInteger(CD, pID, 1)
call MultiboardSetItemValue(MultiboardGetItem(dat.Instructions, dat.Attribute+2, 0), " ")
call MultiboardReleaseItem(MultiboardGetItem(dat.Instructions, dat.Attribute+2, 0))
if (dat.Attribute < MAXATT) then
set dat.Attribute = dat.Attribute+1
else
set dat.Attribute = 1
endif
if (dat.Attribute==5) then
if (dat.name == false) then
set dat.name = true
endif
endif
call MultiboardSetItemValue(MultiboardGetItem(dat.Instructions, dat.Attribute+2, 0), ARROW)
call MultiboardReleaseItem(MultiboardGetItem(dat.Instructions, dat.Attribute+2, 0))
set dat.name = false
endfunction