- Joined
- Sep 30, 2012
- Messages
- 205
Hey i just wondered if i can use a hash-table both ways..
Like checking the x-axis and look for y, or checking the y-axis and look for x?
Well i guess i need to create two hash-tables..
So anyway the thing I want to achieve is this:
There is this Bronze Bowl Item (like an urn), that is carried by a hero.
When the Hero dies, the Urn is replaced with a Bronze Bowl Full, and dropped at the Point where the Hero died.
At this Point I would have to save the Hero in a Hash-table with the Handle of the Item, but I would also need the Item saved with the Handle of the Hero..
Since this "Urn" can be brought back by your allies to an altar, which will resurrect your Hero instantly, at the same time replace the Bronze Bowl with an empty version..
However if your Hero resurrects after a certain Time, the Urn should also be emptied...
I'm also having problems saving Units in Item Handles and vise versa :S
Like checking the x-axis and look for y, or checking the y-axis and look for x?
Well i guess i need to create two hash-tables..
So anyway the thing I want to achieve is this:
There is this Bronze Bowl Item (like an urn), that is carried by a hero.
When the Hero dies, the Urn is replaced with a Bronze Bowl Full, and dropped at the Point where the Hero died.
At this Point I would have to save the Hero in a Hash-table with the Handle of the Item, but I would also need the Item saved with the Handle of the Hero..
Since this "Urn" can be brought back by your allies to an altar, which will resurrect your Hero instantly, at the same time replace the Bronze Bowl with an empty version..
However if your Hero resurrects after a certain Time, the Urn should also be emptied...
I'm also having problems saving Units in Item Handles and vise versa :S