All objects in the mud can be given classifications. This has two purposes: first, it provides default nouns and adjectives for objects, which allows players to interact with the objects more naturally; second, it allows creators to locate items by classification within the code.
Classifications have four components:
The name is how the classificiation is referred to in code, thing.animal.frog
for example. Nouns and Plurals are lists of nouns and plural nouns that describe
things that have this classification. For example, the frog would have one noun,
frog
and one plural frogs
. It would not have any adjectives.
Classifications inherit the properties of their parents. thing.animal.frog
has its own nouns, plurals, and adjectives, but also those of thing.animal
and thing
.
Classifications do not only refer to types of thing, the can also refer to
properties of things. For example, material.metal.gold
would be applied to
objects that are made of gold. This classification would have no nouns or
plurals, but would have two adjectives: gold
and golden
.
In the game, players could then do something like look at golden things
or
look at animals
.
Creators can write code to find things by classification.
New classifications can be added and existing ones updated with the
classifications
command in the game. This command also allows you to list
and show details about all defined classifications.
See the classifications command for
help on this command.