| 04-13-2004, 02:37 AM | #1 |
Code:
loop
exitwhen xb > 6
call UnitRemoveItemFromSlotSwapped(xb, udg_Unit[GetConvertedPlayerId(GetTriggerPlayer())])
call SetItemPositionLoc( GetLastRemovedItem(), OffsetLocation(GetRectCenter(GetPlayableMapRect()), 16150.00, 16164.00) )
call DisplayTextToForce( GetPlayersAll(), I2S(xb) )
set xb = xb +1
endloop
call DisplayTextToForce( GetPlayersAll(),"BREAK!" )
loop
exitwhen yb > 12
call UnitAddItemSwapped( udg_PotionsItemP1[yb], udg_Unit[GetConvertedPlayerId(GetTriggerPlayer())] )
call DisplayTextToForce( GetPlayersAll(), I2S(yb) )
set yb = yb + 1
endloopThe unit has no items after the first loop, as you see. (Which does work) Then he doesn't gain the items I tell it to gain. local integer yb is set to 7, so it's 7 to 13. (Yes those items DO exist) Any reasons why he doesn't get the items? |
