* The number sign (#) may be used as a comment character in .arc files.
Monsters, walls, tiles, and practically everything else in Crossfire are Archetypes. Archetype is often abbreviated to “arch”.
To make and test your own archetype, you will need:
Some may find it easier to take an existing potion and tweak all the stats on it to ultimately create a “new potion.”
more arch potion_<foo> chance <number>
# -- <comment or brief summary> Object <as found in the archetype file> arch <graphic_name> chance <number> diff <number> exp <number> yield <number> skill alchemy cauldron cauldron ingred <ingredient1,ingredient2,etc>
more arch potion_<foo> chance <number>
– Modify Existing Potion section is a draft and work in progress
describe multi-tile building special requirements and address how to specify which tile is the “head”, and what/where attributes are placed. Some note s describing object types seem to imply that it is not necessary to replicate properties on parts other than the “head”.
We will create a new goblin called “Goblin War Lord”.
Object goblinwarlord name Goblin War Lord randomitems goblin race goblin face goblin.111 color_fg green anim goblin.111 goblin.112 mina monster 1 sleep 1 Wis 13 no_pick 1 alive 1 exp 140 ac 10 wc 14 dam 5 hp 20 maxhp 20 level 3 speed 0.1 weight 50000 run_away 10 will_apply 2 pick_up 24 can_apply 25 can_use_wand 1 can_use_bow 1 can_use_ring 1 can_use_shield 1 can_use_armour 1 can_use_weapon 1 editable 1 body_finger 2 body_torso 1 body_head 1 body_shulder 1 body_foot 2 body_wrist 2 body_hand 2 body_waist 1 body_arm 2 body_range 1 end
If you have compiled before go into the crossfire/lib directory (if not go here: server_compiling):
$ cd /home/<username>/server.svn/lib
delete the old archetypes file:
$ rm archetypes
and then build the new archetypes file:
$ make archetypes
navigate back to the server server directory:
$ cd ..
Double check that you are in the correct directory which is the server directory:
$ pwd /home/<username>/server.svn
compile the server:
$ sh autogen.sh && make && sudo make install
describe more in detail, explain about the manual perl collect.pl
method then make install, stuff like that :)
To see what you have made, either put it in a map, or create it using a Dungeon Master command.
A handy all in one command from your server.svn directory is:
$ cd lib && rm archetypes && make archetypes && cd .. && sh autogen.sh && make && sudo make install