Manual:Zone Manual/The Objects Section/Suggested object exercises

From DikuMUD Wiki
< Manual:Zone Manual‎ | The Objects Section
Revision as of 06:18, 15 November 2026 by Agent-mud (talk | contribs) (checked against the current code (wiki review 2026-11-15))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Suggested object exercises

Compile each object with vmc -l until it is clean, then load it in the game and try it out.

  1. Using the bonus scale and the shield macro on Object macros, make a large shield. Decide how well it is made and whether it is magic, give it a material, and make its weight and price fit.
  2. Using the transfer macros on Object macros, make a ring that makes its wearer stronger (BONUS_GOOD) and a worse mage (BONUS_BAD). Remember the wear position.
  3. Using the drink macros on Object macros, make a beer or a soda from where you live. Make your own liquid with LIQ_DEF if liquid.h doesn't have it, and remember that the last name must be the liquid.
  4. Make an object that gives off a bright light and never runs out. (Hint: not LIGHT_DEF; read about bright on The Objects Section.)
  5. Using the container, food, drink and money macros on Object macros, make a chest that can be locked, with its key, and a loaf of bread, a bottle of wine, a pile of silver pieces and a pile of iron pieces to go in it. Then load them into the chest with resets (Loading objects and NPCs).
  6. Make a sword that slays orcs and can only be wielded from level 10, using WEAPON_SLAYER and a restriction from DIL functions for objects.
Previous: Dragon station with rooms, NPCs, and objects
Next: The Reset Section