User Tools

Site Tools


mud:parent_objects

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mud:parent_objects [2019/08/08 14:42] (current)
admin created
Line 1: Line 1:
 +Parent objects provide a way for several objects to inherit common attributes, exits, and $-commands from a single object, so that changing the parent object affects all of its children. ​ When searching for attributes or exits, first the object itself is checked, then the parent is checked only if the object does not have what was searched for.
 +
 +Any attribute the parent object has will be passed down to its children, if they don't already have one. For instance, if the child object has no description,​ it will inherit the description of its parent.
 +
 +Any exits the parent object has will show up in the exit list of the child, and may be used as normal exits.
 +
 +The parent is searched for $-commands as well as the child, and only attributes that are unique to the parent are checked, so that conflicting attribute names are skipped. ​ If both have an attribute named "​cmd1",​ only the child'​s "​cmd1"​ attributes is checked for a $-command.
 +
 +A parent object may itself have a parent, up to a configurable limit (usually 10 levels). ​ The parent need not be the same type as its children, and flags and locks are not inherited from parent objects. ​ You may not create parent loops.
 +
 +Related Topics: [[mud:​@parent]],​ [[mud:​parent()]].
  
mud/parent_objects.txt ยท Last modified: 2019/08/08 14:42 by admin