Difference between revisions of "Groups/Classes"
(Created page with "Object classes are simply groups of objects, where you can pre-define particular properties. When an object is added to this group, it automatically inherits all of these propert...") |
m (added page link) |
||
Line 1: | Line 1: | ||
Object classes are simply groups of objects, where you can pre-define particular properties. When an object is added to this group, it automatically inherits all of these properties. | Object classes are simply groups of objects, where you can pre-define particular properties. When an object is added to this group, it automatically inherits all of these properties. | ||
− | So, for example, you could create an object property “is a liquid”. If you then create a group “Liquids”, you can select the “is a liquid” property. Then, any objects you add to this group will automatically inherit the “is a liquid” property. You can then set up tasks where, instead of checking for specific objects, you can specify that they should be a member of the group. So in this example, you could create a task “take %object%”, and have a restriction that the task should not be a member of group “Liquids”, else output a message saying you cannot pick that up with your hands. | + | So, for example, you could create an object property “is a liquid”. If you then create a group “Liquids”, you can select the “is a liquid” property. Then, any objects you add to this group will automatically inherit the “is a liquid” property. You can then set up tasks where, instead of checking for specific objects, you can specify that they should be a member of the group. So in this example, you could create a task “take %object%”, and have a [[Restrictions|restriction]] that the task should not be a member of group “Liquids”, else output a message saying you cannot pick that up with your hands. |
Revision as of 12:03, 28 September 2011
Object classes are simply groups of objects, where you can pre-define particular properties. When an object is added to this group, it automatically inherits all of these properties.
So, for example, you could create an object property “is a liquid”. If you then create a group “Liquids”, you can select the “is a liquid” property. Then, any objects you add to this group will automatically inherit the “is a liquid” property. You can then set up tasks where, instead of checking for specific objects, you can specify that they should be a member of the group. So in this example, you could create a task “take %object%”, and have a restriction that the task should not be a member of group “Liquids”, else output a message saying you cannot pick that up with your hands.