Re: Guidelines for creating an item?
They're pretty straight-forward gfx/file wise, the tricky part is the coding for objects that do things - it's best to just scour what's already out there and copy that code, making small changes untill it does what you want it to.
graphics (in the graphics/items folder):
large:128x128
small:64x64
I prefer to use 32-bit pngs so that the border is masked off in the image, but if you use jpgs, you'll have to create an ini file for each image (named exactly the same, but with .ini instead of .jpg) that specifies what mask image to use. There's plenty of items out there that do this to use as an example.
definition file (in the gamedata\items folder):
(item type)_(filename).ini
(The naming convention's just a suggestion)
inside:
NAME (name displayed in title bar)
NAM2 (name for use in messages)
ICON items/(small graphic)
GFXP items/(large graphic)
FLAG (flags to control when it appears)
DIST (controls the type of planet/star it appears on)
TEXT (description)
COST (point value and type - relates to cost of item and points gained if you have it when you retire)
TYPE (defines type of game object)
Add your item into GameData/game.ini.
Use the definition ini filename (minus the .ini)
Most of this is layed out in Weird Worlds\default\gamedata\items\!item_files.txt
|