[To the ZAngband Page] [News]

How to design buildings

All buildings are specified in the town-files. All available modifications for the townfiles like including other files and conditional parsing are possible.

The easiest way to create a new building is to use the Building Creator. Just fill out the form, select Build, and copy the result into the town-definition.

Every line of a building-definition starts with B (for Building). The different values in a line are seperated by colons ":".

The next value is the number of the building. It can be a number between 0 and 31 (this means that you can define up to 32 buildings per town). The number of the terrain feature for a building (used in the terrain feature definitions) is calculated by adding 128 to the number of the building.

Then comes a letter describing what you are defining in this line. The other values in the definition depend on this value.


Example definition for the "Trump Tower":

B:13:N:Trump Tower:Algo:Amberite
Building definition for building number 13 (the associated terrain feature is 128+13=141). It is named "Trump Tower" and headed by "Algo" the "Amberite".
B:13:A:0:Recall to dungeon:0:100:r:33:0
The first action is named "Recall to dungeon", costs nothing for members, 100 for non-members, is activated by pressing "r" in the building, activates the building action number 33 = "Recall to dungeon", and is available for everybody.
B:13:A:1:Teleport to dungeon-level:0:10000:t:34:0
The second action is named "Teleport to dungeon-level", costs nothing for members, 10000 for non-members, is activated by pressing "t" in the building, activates the building action number 34 = "Teleport to dungeon level", and is also available for everybody.
B:13:C:0:0:0:0:0:0:0:0:0:0:0
No class gets member status in the building.
B:13:R:0:0:0:0:0:0:0:0:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
Amberites (index 9) are normal members of the "Trump Tower".
B:13:M:0:0:0:0:0:2:0
You are a premium member if you can use Trump spells (index 6).

Action codes:

  1. Research Item
  2. Town history
  3. Race Legends
  4. Greet King
  5. King legends
  6. Quest
  7. Share gold
  8. Read arena poster
  9. Read arena rules
  10. Arena legends
  11. Play In-Between
  12. Read gamble rules
  13. Play Craps
  14. Play Spin Wheel
  15. Play Dice Slots
  16. Rest for the night
  17. Buy food
  18. Listen to rumors
  19. Research monster
  20. Compare weapons
  21. Show legends
  22. Enchant weapon
  23. Enchant armor
  24. Recharge
  25. Identify
  26. Learn spell (not used in ZAngband)
  27. Healing
  28. Restore
  29. Enchant arrows
  30. Enchant bows
  31. Greet building owner
  32. Recall to dungeon
  33. Teleport to dungeon level

ZAngband classes:

  1. Warrior
  2. Mage
  3. Priest
  4. Rogue
  5. Ranger
  6. Paladin
  7. Warrior Mage
  8. Chaos Warrior
  9. Monk
  10. Mindcrafter
  11. High Mage

ZAngband races:

  1. Human
  2. Half Elf
  3. Elf
  4. Hobbit
  5. Gnome
  6. Dwarf
  7. Half Orc
  8. Half Troll
  9. Amberite
  10. High Elf
  11. Barbarian
  12. Half Ogre
  13. Half Titan
  14. Cyclops
  15. Yeek
  16. Klackon
  17. Kobold
  18. Nibelung
  19. Dark Elf
  20. Draconian
  21. Mind Flayer
  22. Imp
  23. Golem
  24. Skeleton
  25. Zombie
  26. Vampire
  27. Spectre
  28. Sprite
  29. Beastman

ZAngband magic realms:

  1. Life
  2. Sorcery
  3. Nature
  4. Chaos
  5. Death
  6. Trump
  7. Arcane

© 1997/98 by Robert Rühlmann, rr9@thangorodrim.net [News] [To the ZAngband Page]