| Soeb |
|
||
|
Hi, Note this tutorial is for trunk, this means that some things are not implemented in build13. (but it's ok for build14) This tutorial describes how to create wares and what options exist. So... A conf file, with all the possibilities looks kind of this:
Now let's describe every option:
Description displayed in ware encyclopedia. It must have an leading underscore (_)
As the name suggests, the default target quantity for a ware. This is the default wanted number of wares in the warehouse/headquarters. This is not required for basic wares.
This is not required as well. It'll tell the AI how important the ware is. I'm unsure whether 1 is the most or least important. This option is only for AI and used by AI.
This section is a must-be in the file. No description is required for that.
What image will be displayed. Usually it is called idle.png and is of size like 16x24.
It tells where the picture should be drawn in the location in question (ie. node). For example the value can be 9 11 (that's the very pixel that'll be drawn in the location). This is all about the ware's conf file. Now there need to be 2 more files in the folder. First is the one defined in "pics" and the second one must be named menu.png. It will be displayed in warehouse/headquarters. So let's have a look at a conf file of an axe for example:
(broke the line in half) and its folder contents:
That's probably how you're folder's contents will look. The last step is to add info about it in 'conf' in the main tribe's directory. Add a line pointing to the directory in manner of other folders. So for example if the name is lightaxe, it'll look like that:
Place it under '[ware types]' section in alphabetical order. I think it describes it all quite enough. I hope it helps somebody. -- Regards, Soeb
__________________
-- Regards, |
|||
|
|
|
