
02-08-2009, 02:28 PM
|
|
Banned
|
Join Date: Mar 2008
Posts: 861
|
|
General Item System Queries
|
So- I was wondering how would you do certain things? (you as an individual)
1,) How would you script an item system? (adding/removing/equip)
I'd make it as a player class, simple and easy to use. (player.addItem("name", quant (+/-))
I'd also say it's a pretty secure way to control it this way with logs.
2,) How would you arrange your item strings?
I'd use two, one to hold the item information and another to hold the item quantity that you have. (item_name=data, items={{name, amount}})
thanks |
|
|
|