Server persons file
A person in a sim world is someone who can move about, carry items and
communicate. Persons can be controlled by either a human user (in which case
there will be a player of the same name), or by an action
of the same name.
The format of the persons file is :
person name {
attribute value(s)
attribute value(s)
...
}
person name {
attribute value(s)
...
}
...
Like nodes and objects, every person must have a unique
name. A shape with the same name as the person (their avatar) must
exist, and should be positioned at the same location as the person.
Valid attributes for a person are :
- pos node
The node at which this person is located. This attribute must be
given.
- ang numer
The direction this person is facing, in degrees. The shape
for this person should also be facing in the same direction (note
that 0 degrees = facing along x-axis). If this attribute is not
given, the angle is assumed to be 0.
- inv item item ...
The names of objects carried by this person. If this
attribute isn't given, then it is assumed that no objects
are carried. If it is given, then any objects listed
should have their inv attribute set with the name of
this person.
- email address
The email address of the user controlling this person. Users can
set this using their client program, and it is set automatically
to name@initial host when a user-controlled person
is created.
- fullname name
The full name of this person, as chosen by the controlling user.
For persons not controlled by a user, you should set this to
something informative.
If an action with the same name as a person exists, then that action
can contain methods that control the person. You should only have such an
action if the person is not controlled by a user, otherwise strange things
can and will happen.
Return to the [server guide]
or to the [final report]