Thread: Unique ID
View Single Post
  #1  
Old 06-30-2009, 08:07 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
Unique ID

So, I'm creating an item system with unique id's, the problem? Well, it's fairly simple, the dropping of items that're the same but with a unique ID.

I'm thinking a loop is the only way to avoid this, however what if a player is dropping more than one of the same item? So, let's say I had

999 Wooden Bows

If I were to lay 999 Wooden Bows (each of the 999 wooden bows being a unique ID for the item) how would I assign each individual ID to the 'Wooden Bow' about to be dropped without a loop?

Can anyone think of a solution? Thank you
Reply With Quote