Home
About
Policies
FAQ
Forums
Registration
Password Recovery

Property List

From Tapestries MUCK

Revision as of 03:15, 2 June 2012 by WhiteWizard (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

str A property list is commonly used for storing multi-line descriptions and anything else that might need a home for a large block of text. You can create a list using lsedit.

Technical Syntax

While not particularly important to know, it can be useful to know that at the core a list is just bunch of numbered props in a propdir.

lsedit me=example
<    Welcome to the list editor.  You can get help by entering '.h'     >
< '.end' will exit and save the list.  '.abort' will abort any changes. >
<    To save changes to the list, and continue editing, use '.save'     >
< Insert at line 7 >
.l
this
is
an
example
list
pretty simple huh?
< listed 6 lines starting at line 1 >
.end
< Editor exited. >
< list saved. >

This will produce the following:

ex me=example#/
str /example#/1:this
str /example#/2:is
str /example#/3:an
str /example#/4:example
str /example#/5:list
str /example#/6:pretty simple huh?
6 properties listed.</pre>
ex me=example#
str /example#/:6

As you can see lsedit adds a # at the end of the list name, as well as setting listname# to the number of lines in the list. Neither of these are required for a proper Property List. However, if the line count is included and is incorrect, many programs will fail to read the list correctly.

Namespaces
Variants
Actions
navagation
information
wiki
Toolbox