Home
About
Policies
FAQ
Forums
Registration
Password Recovery

Property

From Tapestries MUCK

(Difference between revisions)
Jump to: navigation, search
m (fixed link)
m (missing / on example, works like suggested now.)
 
(4 intermediate revisions not shown)
Line 1: Line 1:
-
==Prop==
+
A '''property''' is a simple bit of text stored somewhere on an [[object]], etc.  They are stored in [[propdirs]].
-
A '''prop''' is a simple bit of text stored somewhere on a character, a room, an object, etcThey are stored in [[propdirs]].
+
==Setting Properties==
 +
Properties can be set in a couple different waysThe most common one is simply '''[[@set]] [[me]]=PropName:some value'''.
-
==Setting Props==
+
Properties can also be set programatically with [[MPI]], that same property above could be set using the [[store (MPI)]] command like this:
-
 
+
-
Props can be set in a couple different ways.  The most common one is simply '''[[@set]] [[me]]=PropName:some value'''.
+
-
 
+
-
Props can also be set programatically with [[MPI]], that same prop above could be set using the [[store (MPI)]] command like this:
+
<mpi>{store:some value,PropName,me}</mpi>
<mpi>{store:some value,PropName,me}</mpi>
Although it's common to see it like this instead to prevent spam
Although it's common to see it like this instead to prevent spam
<mpi>{null:{store:some value,PropName,me}}</mpi>
<mpi>{null:{store:some value,PropName,me}}</mpi>
-
==Reading Props==
+
==Reading Properties==
 +
There are lots of ways to read properties depending on what you want to do with them.
-
There are lots of ways to read props depending on what you want to do with them.
+
If you are just trying to find where it is and what it says, you can use the [[examine]] command ''(often abbreviated to just ex)''.  For example:
 +
<br>'''ex me=_prefs/whatis/'''
 +
<br>The above command would show the property that your [[wixxx]] and wixxx #detail are stored on if you have them set.
-
If you are just trying to find where it is and what it says, you can use the [[examine]] command ''(often abbreviated to just [[ex]])''.  For example:
+
If you just want to display the value for a given property, then you can use the [[prop (MPI)]] command.
-
<br>'''ex me=_prefs/whatis'''
+
-
<br>The above command would show the prop that your [[wixxx]] and wixxx #detail are stored on if you have them set.
+
-
 
+
-
If you just want to display the value for a given prop, then you can use the [[prop (MPI)]] command.
+
<mpi>{eval:{prop:_/de,{owner:this}}} «- That would display your description
<mpi>{eval:{prop:_/de,{owner:this}}} «- That would display your description
{prop:eyecolor} «- That would display a prop called eyecolor if you had it set
{prop:eyecolor} «- That would display a prop called eyecolor if you had it set
-
{prop:PropName} «- That would display the example prop mentioned above</mpi>
+
{prop:PropName} «- That would display the example property mentioned above</mpi>
 +
 
 +
==See Also==
 +
* [[examine]]
 +
* [[@set]]
 +
* [[prop (MPI)]]
 +
* [[store (MPI)]]
 +
 
 +
[[Category:MUCK Documentation]]

Latest revision as of 16:36, 25 April 2007

A property is a simple bit of text stored somewhere on an object, etc. They are stored in propdirs.

Setting Properties

Properties can be set in a couple different ways. The most common one is simply @set me=PropName:some value.

Properties can also be set programatically with MPI, that same property above could be set using the store (MPI) command like this:

{store:some value,PropName,me}

Although it's common to see it like this instead to prevent spam

{null:{store:some value,PropName,me}}

Reading Properties

There are lots of ways to read properties depending on what you want to do with them.

If you are just trying to find where it is and what it says, you can use the examine command (often abbreviated to just ex). For example:
ex me=_prefs/whatis/
The above command would show the property that your wixxx and wixxx #detail are stored on if you have them set.

If you just want to display the value for a given property, then you can use the prop (MPI) command.

{eval:{prop:_/de,{owner:this}}} «- That would display your description
{prop:eyecolor} «- That would display a prop called eyecolor if you had it set
{prop:PropName} «- That would display the example property mentioned above

See Also

Personal tools
Namespaces
Variants
Actions
navagation
information
wiki
Toolbox