- Joined
- Apr 13, 2008
- Messages
- 1,608
Hi,
I'm using Bribe's table.
Before I rewrite 2500 lines of code, I gotta ask. Is this expected behaviour?
1 sec after init:
2 sec after init:
Both DInventoryDB and DInventoryBuffer give back the same item, even though only DInventoryBuffer was ever set.
Is there a way to create multiple separate tables?
I'm using Bribe's table.
Before I rewrite 2500 lines of code, I gotta ask. Is this expected behaviour?
JASS:
globals
Table DInventoryDB
Table DInventoryMetaData
Table DInventoryBuffer
endglobals
1 sec after init:
JASS:
set DInventoryDB = DInventoryDB.create()
set DInventoryMetaData = DInventoryMetaData.create()
set DInventoryBuffer = DInventoryBuffer.create()
2 sec after init:
JASS:
local unit u = CreateUnit(Player(0), 'Nfir', -1064, 841, 0)
local item it = CreateItem('bgst', -1064, 841)
set DInventoryBuffer[GetHandleId(u)].item[GetHandleId(it)] = it
call BJDebugMsg("item name of table it = "+GetItemName(DInventoryBuffer[GetHandleId(u)].item[GetHandleId(it)]))
call BJDebugMsg("item name of table it = "+GetItemName(DInventoryDB[GetHandleId(u)].item[GetHandleId(it)]))
Both DInventoryDB and DInventoryBuffer give back the same item, even though only DInventoryBuffer was ever set.
Is there a way to create multiple separate tables?