Page 1 of 1

Crafting

Posted: Fri May 14, 2010 9:38 pm
by Perry
Hey everyone. Been awhile since I posted but I've been watching halls tutorials and they are great.

In the Urban Realms videos I want to work on the crafting system. Right now the recipes need specific items. I want to make it to where you follow a recipe but more open. Like instead of needing acorns and chocolate. Maybe you would need nuts(acorns, almonds, peanuts) and something else. Each of the items could add something different. How would I start something like that?

Thanks and its great to be back. :D

Re: Crafting

Posted: Sat May 15, 2010 1:54 am
by Jackolantern
When you add the master list of items to the database (not where they are stored when the player owns them), just add a "category" field, and decide ahead of time what item categories you want. When players are crafting, query the database to see if the player has an item that has the required category. Then do whatever crafting processes you need to do, and take away the item. Or maybe for security it may be better to take away the item first, but your call.

Re: Crafting

Posted: Sat May 15, 2010 2:35 am
by hallsofvallhalla
exactly what i was thinking, Like make a cattype field that is the category, nuts for instance, then you just call where cattype = "nuts"

Re: Crafting

Posted: Mon May 17, 2010 5:05 pm
by Perry
That is a good idea. Thanks for the help I will let you guys know how it goes.