View Single Post
  #1  
Old 02-08-2009, 02:28 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
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
Reply With Quote