![]() |
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 |
Quote:
|
Quote:
|
On Rudora I have a system quite like Era where the database contains a list of item IDs matched to the actual item data. The client flag is the same as the item description in the database, except the first element is the quantity of items. My item manipulation functions are kept in a class joined to the player (since that way the player object is already specified and it is not necessary to do further work identifying the player object).
|
Quote:
|
|
| All times are GMT +2. The time now is 09:56 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.