Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CF: creating new archtypes?



Steven Unruh (sunruh@jump.net) wrote:

> how would a person add create a new archtype?

Look at the existing archetype files (or the large lib/archetypes),
and make one like that.

> say a kewl sword or armor?

Really depends on what you want to do. If the item should be generated
randomly, you need a new archetype. If the item is only found in specific
places (like the mithril chainmail of winter), and you don't want/need
books describing it, don't make an archetype. If the item should have a new
image, you need a new archetype.

You might also want to read the comments in the lib/artifacts and
lib/treasures files.

If you need new functionality, you'll have to invent a new item type,
and add code to the game.

In general, making a new archetype should be avoided if you want to
distribute your work --- it forces people to update their lib/archetypes
file, and causes a lot of confusion ("this is for cf 0.93.3... does 0.94.0
already have that archetype? Is the map worth the trouble? etc.).

Maybe things will change in the future (for example, one could imagine
that the xpm image data be part of the object, so you don't need a new
archetype for anything but new item types).

"Kewl swords and armor" can probably be created without making a new
archetype.

> is there a special editor for this also?

Yep. It's called "emacs" (or whatever you use) :-)

Christian


-- 
Christian (Icho/Gandhi/Ribald @sunbroy53.informatik.tu-muenchen.de, 13326)
[to unsubscribe etc., send mail to crossfire-request@ifi.uio.no]


References: