Difference between revisions of "Manual:Zone Manual/The Objects Section/Suggested object exercises"

From DikuMUD Wiki
Jump to navigation Jump to search
(checked against the current code (wiki review 2026-11-15))
 
Line 1: Line 1:
−
=== Suggested object exercises ===
+
== Suggested object exercises ==
  
−
1. Using information you learned in (Link to objcraft),
+
Compile each object with <code>vmc -l</code> until it is clean, then load it in the game and try it out.
−
(Link to objmag), (Link to objmacroshield), and
 
−
(Link to objarmour) create a large shield.
 
  
−
2. Using information you learned in (Link to objnon-armour)
+
# Using the bonus scale and the shield macro on [[Manual:Zone Manual/The Objects Section/Object macros|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.
−
and (Link to objmacrotransfers) create a ring that gives a person
+
# Using the transfer macros on [[Manual:Zone Manual/The Objects Section/Object macros|Object macros]], make a ring that makes its wearer stronger (<code>BONUS_GOOD</code>) and a worse mage (<code>BONUS_BAD</code>). Remember the wear position.
−
5% strength bonus and removes 5% magic ability.
+
# Using the drink macros on [[Manual:Zone Manual/The Objects Section/Object macros|Object macros]], make a beer or a soda from where you live. Make your own liquid with <code>LIQ_DEF</code> if <code>liquid.h</code> doesn't have it, and remember that the last name must be the liquid.
 +
# Make an object that gives off a bright light and never runs out. (Hint: not <code>LIGHT_DEF</code>; read about <code>bright</code> on [[Manual:Zone Manual/The Objects Section|The Objects Section]].)
 +
# Using the container, food, drink and money macros on [[Manual:Zone Manual/The Objects Section/Object macros|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 ([[Manual:Zone Manual/The Reset Section/Loading objects and NPCs|Loading objects and NPCs]]).
 +
# Make a sword that slays orcs and can only be wielded from level 10, using <code>WEAPON_SLAYER</code> and a restriction from [[Manual:Zone Manual/The Objects Section/DIL functions for objects|DIL functions for objects]].
  
−
3. Using information you learned from (Link to objmacroliqcont) and (Link to objdrink) create a beer or soda from your local area.
+
<div style='padding-top: 30px; padding-bottom: 20px; text-align: left;float:left;width:50%;'>[[Manual:Zone Manual/The Objects Section/Dragon station with rooms NPCs and objects|Previous: Dragon station with rooms, NPCs, and objects]]</div>
−
 
+
<div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'>[[Manual:Zone Manual/The Reset Section|Next: The Reset Section]]</div>
−
4. Using information you learned in (Link to objmacrolight);
 
−
make an object that gives off a bright light and will never run
 
−
out.
 
−
 
 
−
5. Using the macros found in (Link to objmacroliqcont),
 
−
(Link to objmacrofood), (Link to objmacromoney), and
 
−
(Link to objmacrocontainer) along with information found in
 
−
(Link to objfood) and (Link to objdrink); create a chest that
 
−
can be locked that contains food, drink, a pile of silver pieces, and a
 
−
pile of iron pieces.
 
−
 
 
−
<div style='padding-top: 30px; padding-bottom: 20px; text-align: left;float:left;width:50%;'>[[Manual:Zone_Manual/The_Objects_Section/Dragon_station_with_rooms_NPCs_and_objects|Previous: Dragon station with rooms, NPCs, and objects]]</div>
 
−
<div style='padding-top: 30px; padding-bottom: 20px; text-align: right;float:right;width:50%;'>[[Manual:Zone_Manual/The_Reset_Section|Next: The Reset Section]]</div>
 

Latest revision as of 06:18, 15 November 2026

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