LESLIE'S GUIDE TO @NOTEDIT

syntax: @notedit <object>.<property>

@notedit is a command that launches DU's text editor. You edit one of the property fields associated with an object. The fields that we will mostly be interested in are "description" and "text."

Note: it's important that what you type be saved as a list of strings (rather than as a single string), and you want the editor to be in list mode. Therefore, when you're in the editor, type mode list before you begin typing lines.



@notedit <object>.description

This allows you to create or edit the description field of that object: what someone sees when he or she enters a room (if the object is a room), or what someone sees when he or she looks at or examines the object. The editor works line-by-line. What you "say" when you're in the editor (what you type after an opening double quotation mark) becomes one of the lines in the description, and the line pointer advances, ready for the next line of input.

Example: @notedit woods.description
"You see a dark and gloomy forest.
[MOO returns:] Line 1 added



@notedit <object>.text

This creates or edits the text field of the object, used especially for $notes or $letters, that you can read. When you read <note>, you see what the owner of the note put in the text field.

Example: @notedit treasure_map.text
"This map will direct you to the long-lost treasure of the Sierra Madre.
[MOO returns:] Line 1 added



MOO Text Editor Commands

(Note: <> indicates variable information that you replace when typing the specific command. [ ] indicates optional additions that aren't necessary for the command to be correct. You don't type either bracket when issuing your MOO command.)

list or list 1-$ (or list <line#>-<line#>)

This lists the lines of the description or text field and shows you the current position of the line pointer. The next line of text you enter is inserted just below where the line pointer is.
Example: list 1-15


delete <line#>

This deletes the text you have on the specified line, moves the pointer to just before that line, and reprints the text for you, ready for you to create a new line. What you "say" in the editor is inserted in place of the old line.
Example: delete 5


insert _<line#> ["text]

This moves the pointer to just after the specified line. The text you type after the quotation is inserted after the specified line and before the following line. If you don't include any text, this command will just move the pointer.
Example: insert _5 "You see many shades huddled around the lake.


insert $ ["text]

This command moves the pointer to the end of the field and inserts the text (if included) at that point.


s/<oldstring>/<newstring>/<linenumber>

This command allows you to correct an error by substituting a new string (word or series of letters) in place of the old one, in whatever line you specify.
Example: s/teh end/the end/5


save

This saves the series of lines to the field.


quit

This returns you to the room from which you launched the MOO editor.



Please send any comments or suggestions for change to leslie.harris@plattsburgh.edu