Friday, June 06, 2008

Two new articles + TCOD crafting

Ok, they are not really new. I just recycled two blog posts and converted them to permanent articles on the doryen main site. I think they're interresting enough to deserve a place here !

Dungeon morphing :

http://jice.nospam.googlepages.com/dungeonmorphing

Dynamic map :

http://jice.nospam.googlepages.com/dynamicmap

Also, some new stuff from TCOD. I've just implemented the first crafter. Crafters are NPC you can find in towns and they build stuff for you. You bring the raw material and for a few gold pieces they create useful objects. There will be different ways to get raw material. For now, you can get hides on some creatures corpses. The first implemented crafter is the tanner. This guy create leather and hide armors.

The tanner has a list of items he can create. Now what is interresting is that the properties of an item (leather boots for example) are not static. They depend on the type of material you provide. Leather boots require 5 pieces of leather. Leather pieces have different properties depending on the creature they come from. Some give good armor bonus, some have a better durability, etc ... This is interresting because you can get items perfectly adapted to your needs, provided you find the necessary materials.

Finally, raw material is not a special hardcoded type of item. It uses the item feature system (see this) and only adds a few features. Thus, 'raw material' is not really appropriate since any item in the game could be used in the crafting process. This could be used for example to reproduce the potion system used in The Witcher, where you create different potions, and some potions can be used as ingredients for more powerful potions.