a little bird says, "Hi, and welcome to the third installment of our
programming series. In this lesson, We will be discussion such impressive
words as 'Permissions', 'Parents', and 'Fertility'."
a little bird says, "This lesson assumes you know NAAATHING except for the
information you gleaned from Lessons one and two. This lesson requires you to
have a donut, with the :eat and :bake verbs on it, so if you check your 'inv'
and don't see one, quickly re-run through the first two parts and whip one up."
a little bird says, "Ok. Party on! I'm shure you have been the talk of the
MOO, impressing all your friend with your witty box o donuts with those fancy
verbs on them. I'll bet a few of them even went, 'Man, I wish I had a box of
donuts for my very own'. Well, by the end of this lesson, You will be able to
show your friends how to make their own box, with a simple '@create', and let
them benefit off of your POWER-PROGRAMMING-SKILLZ!"
a little bird says, "OK. We have a few general topics we need to talk about
before we can just run off and start a codin'. TOPIC NUMBER ONE: Parents. In
our first lesson, we explained that when you '@create $thing' the MOO makes a
'copy' of a $thing, for you to play with. Lets talk about what REALLY happens.
a little bird says," We are going to look at the MOO as a country. There are a
ton of different people, places, and things all of which, are different,
yet..strangely the same. Everything on the moo has a parent. What does that
mean? That means that anything you look at, it will be 'descended' from
something else, inheriting all of its characteristics (verbs and properties,
for those of you in rosilita) from its 'parent'. Now, That concept is easy
enough...but did it strike you that a parent can also have a parent? This
inheriting business is cumulative. So if you have a small rock, who has the
parent of a rock, which has a parent of a $thing, which has the parent of a
#1, then not only is your small rock going to have the verbs and properties
from rock, but also from $thing and #1 (btw #1 is the 'root class'
everything's is a descendant of it)."
Ragabash says, "So, in essence, when you create an object, it has access to
all the verbs and properties that are associated with all of its parent
objects. To get an idea of this, type @parent me. It will list a bunch of
object numbers and names. The first one is your parent object, the next is
that object's parent object, and so on. Since your character is a
'descendant' of all of these objects, you have built in access to all of the
verbs on all of the listed objects! The effect is having all the verbs on
these objects, without the oogy mess of programming them yourself!
That is how the moo concept of parenting works--you are considered a child of
all of your parent object's parent objects. The idea is like a real family.
You are not only related to your parents, but to your grandparents, great
grandparents and so on. That is how you wound up with great granma's bizarre
nose, so deal with it. But on a moo, it is beneficial."
Ragabash says, "The next concept we will discuss is Permissions. You learned
before that information is stored on objects in properties like a filing
cabinet. Permissions are also stored on an object, but their purpose is
different. Permissions define who can use an object or verb.
When you create an object, the owner of that object is you. You may name it
anything you like, describe it in any way you please, no matter how twisted and
disgusting. Also, no other player (besides a Wizard) may change these things.
This is ensured by permissions. If you have already created an object, type
@show