enCore v.4 User's Guide

Changing the Parent of an Object or Room

You can change an object by changing its "parent." A fuller description of parents, children, and inheritance in enCore is described in More on MOOs, but think of performing this @chparent command like cloning or making a copy of something else in enCore. You can also change the class or kind of object by using this command.

Using @chparent to make a copy of another object or room

Some enCore MOOs have customized objects or rooms. Using the @chparent command will easily let you create these template or generic objects for yourself.

For example, Pro-noun MOO has template objects for a large meeting room, a small meeting room, or an instructor's office. You can create your own large meeting room by using the @chparent command.

  • Go to the room that you wish to change.
  • Choose the number of the room you wish to change your room to
  • Type the following command into the command window: @chparent here to #number
    Substitute the number of the room that you have chosen for number.
    Example: @chparent here to #456
  • The room should now have all the features of the room whose number you have chosen.

The ability to make your own copy of something extends to objects also. For example, someone in enCore might have created a Fireplace object that allows you to light a fire and roast marshmellows in it. You could create a Generic Thing and then @chparent that new object into a Fireplace.

In this case, you should use the object numbers to change the parent. So if the new Generic Thing you created called Hearth has the object number #456, and the Fireplace you wish to change your object to has the object number #250, you would use this command:

@chparent #456 to #250 or @chparent Hearth to #250

Your Hearth now has all the features that the other object called Fireplace has, so now you can roast marshmellows in your own room over your own fire.

Note: You can only make copies of objects that are "fertile" or have the permissions to have copies made of them. Also, before swiping someone else's object like this, it is courteous to ask the original owner's permission to copy their object.

Using @chparent to change the generic or "class" of an object

Sometimes you create an object and want to transform it into another object with other capabilities. For example, you create a Generic Room and then decide you want it to be a like a Generic Web Page room, or you create a Note and then decide you want it to have Web Page capabilities. In essence, you want to copy or clone your object into another object.

To perform this change to an object

  • Figure out the class of object you want to change your object to
  • Type in the command
    @chparent objectname to $class

    For example, the change a generic room named My Riviera to a webpage room, you would type:

    @chparent My Riviera to $webpage

    If I wanted to change a note named "Thoughts" into a letter, I would type

    @chparent Thoughts to $letter

Note: You could also use the object number instead of the name of the object you are changing.

@chparent #345 to $letter

The commands @parents object and @kids object are useful to see the genealogy of objects in enCore.

 

Screen Appearance || Quick Start || Beginner's Guide || | Getting around || Communicating ||Character options || Working with objects || Objects help ||Using MOO Mail || Creating objects and rooms ||Xpress options || Getting help || Command summary ||

Questions? Comments? Email Lennie Irvin
This guide is based on materials developed for the Encore Open Source Documentation Project by Lennie Irvin and Erin Karper. Menu courtesy of Milonic.

Page last updated 08-10-04 --LI