Post by Asrohc on Mar 4, 2007 19:00:05 GMT -5
All information on a MUCK is stored in properties, which have a limit on the number of characters that can be kept in any one. Lsedit is a way to get around this limit, and also a way to format the appearance of text.
To open the editor, enter lsedit <obj>=<list>. The single most common command is lsedit me=desc, to create a list for a description. <obj> can be replaced with me, here, the name of something in the same room as you, or a dbref number. As long as you own the object. <list> can be anything, but can't include ~, @, or : symbols.
Doing this will give you a header, and the line: < Inserting at line 1 >. All you have to do at this point is type your text. You can use as many spaces in a row as you want, for indents or columns or what have you. Hit enter to start a new line, and if you want a 'blank' line to appear, you can enter a couple of spaces by themselves.
You can use .l while in the list-editor to view what you've written. This command will show the list as others will see it. It'll also give you a reminder of which line you're on at the time. .p also displays the entire list, but puts line numbers in front of each line.
.del <n> will delete a line. If you decide you want to rewrite line 2, then you'd type .del 2. You can delete more than one line at once - .del 2 5, for example, will delete lines 2, 3, 4, and 5. You will then be inserting text at the first line you deleted - in this example, line 2 - if you resume entering text. If you're rewriting lines 2 through 5, then this isn't so bad - but if you want to add text somewhere else in the list, use .i <n>.
.save typed at any point will save the changes you've made in the list.
.end will save the list and exit the editor. .send is a synonym that only works when you're writing mail.
.undo will erase all the changes you've made since you last saved.
.abort will exit without saving changes.
If you're in the list-editor and want to talk to someone, you can write the command as you normally would, and put an '.' in front before sending - i.e. .say Hello!. Running commands that ask you for information, such as mail or pinfo #set, is not advised. If you want to start a line with an '.', put another period in front of it.
There are other things you can do in the list editor - copy, move, replace, and justify text, to name a few - but these commands are less often used. Enter .h while in the editor for a cryptic list of commands.
In my experience, there's a really simple way to use the list-editor. You write up the text in a simple editor, such as Notepad, Wordpad, or - my favorite - NoteTab Light. Put a line break anywhere you want to see one, and two spaces on any line you want to appear blank.
Once the text looks the way you want it to, come back to the MUCK window and enter the editor. Copy, paste, and hit '.end'. You're done. But you should probably save that Notepad (or whatever) file for later.
If/when you want to edit the list, go back and edit your saved file. -Then- reopen the list-editor. It'll say < Inserting at line ... >. Type '.del 1 ...' where ... is whatever number the list-editor gave you. This erases all the old text. Then copy and paste the new text in, and enter '.end'. You're done.
Any list can be called using the MPI string {list:<list>}. Note the curly brackets. <list> is whatever you typed way back when, in 'lsedit <obj>=<list>'. '@desc me={list:<list>}' will set the text in <list> as your description. e.g. 'lsedit me=desc' and '@desc me={list:desc}'.
Generally, this is the most anyone does with lists. You can save as many lists on yourself as you can think up names for, and switch descriptions at will by changing which list your desc references.
To open the editor, enter lsedit <obj>=<list>. The single most common command is lsedit me=desc, to create a list for a description. <obj> can be replaced with me, here, the name of something in the same room as you, or a dbref number. As long as you own the object. <list> can be anything, but can't include ~, @, or : symbols.
Doing this will give you a header, and the line: < Inserting at line 1 >. All you have to do at this point is type your text. You can use as many spaces in a row as you want, for indents or columns or what have you. Hit enter to start a new line, and if you want a 'blank' line to appear, you can enter a couple of spaces by themselves.
You can use .l while in the list-editor to view what you've written. This command will show the list as others will see it. It'll also give you a reminder of which line you're on at the time. .p also displays the entire list, but puts line numbers in front of each line.
.del <n> will delete a line. If you decide you want to rewrite line 2, then you'd type .del 2. You can delete more than one line at once - .del 2 5, for example, will delete lines 2, 3, 4, and 5. You will then be inserting text at the first line you deleted - in this example, line 2 - if you resume entering text. If you're rewriting lines 2 through 5, then this isn't so bad - but if you want to add text somewhere else in the list, use .i <n>.
.save typed at any point will save the changes you've made in the list.
.end will save the list and exit the editor. .send is a synonym that only works when you're writing mail.
.undo will erase all the changes you've made since you last saved.
.abort will exit without saving changes.
If you're in the list-editor and want to talk to someone, you can write the command as you normally would, and put an '.' in front before sending - i.e. .say Hello!. Running commands that ask you for information, such as mail or pinfo #set, is not advised. If you want to start a line with an '.', put another period in front of it.
There are other things you can do in the list editor - copy, move, replace, and justify text, to name a few - but these commands are less often used. Enter .h while in the editor for a cryptic list of commands.
In my experience, there's a really simple way to use the list-editor. You write up the text in a simple editor, such as Notepad, Wordpad, or - my favorite - NoteTab Light. Put a line break anywhere you want to see one, and two spaces on any line you want to appear blank.
Once the text looks the way you want it to, come back to the MUCK window and enter the editor. Copy, paste, and hit '.end'. You're done. But you should probably save that Notepad (or whatever) file for later.
If/when you want to edit the list, go back and edit your saved file. -Then- reopen the list-editor. It'll say < Inserting at line ... >. Type '.del 1 ...' where ... is whatever number the list-editor gave you. This erases all the old text. Then copy and paste the new text in, and enter '.end'. You're done.
Any list can be called using the MPI string {list:<list>}. Note the curly brackets. <list> is whatever you typed way back when, in 'lsedit <obj>=<list>'. '@desc me={list:<list>}' will set the text in <list> as your description. e.g. 'lsedit me=desc' and '@desc me={list:desc}'.
Generally, this is the most anyone does with lists. You can save as many lists on yourself as you can think up names for, and switch descriptions at will by changing which list your desc references.