Wednesday 29 April 2009

Neversummer 5 Stores

One of the big projects I've been working on for the last few months is a custom store system for the Neversummer project. The store system that comes with Neverwinter nights 2 is not really up to the task of dynamically pulling it's contents from the database and been able to set the buy/sell/identify price according to fields in the database.

Since we have all that data in the database already, I set about writing a custom GUI for Neversummer 5 that would allow us much more control of the stores. This is mostly complete now. The custom GUI stuff in Neverwinter Nights 2 is pretty impressive once you get the hang of it. It's mostly written in XML with some NWScripts. To start with I want the GUI of the store to be the same as the neverwinter nights 2 version, but pull content and prices from the DB.

Their are a few problems I've not found fixes for. First one been I would like to be able to drag and drop items between the store and the inv to sell them. I've not found a way to get the item that is dropped on the store.

The second problem is todo with context menus. I can't remember all the details now as it's been a while since I looked into it, but I think I was unable to stop the "Identify" menu item showing when the store was not open.

I'm currently working on the web frontend we have created to control the content of the game. This is going to be the place were the store contents are control. It's about 80% done now. When it's complete, people with access to the tool will be able to create new store and change the content of them easily.

No comments: