Drawers and Cupboards

From ADRIFT 5 Manual Wiki
Jump to: navigation, search

In the "getting started" tutorial you created objects that you could put other objects on top of, but ADRIFT also allows you to put objects INSIDE of other objects, called containers, such as a drawer or a cupboard.

The main difference to gameplay is that a container can be opened and closed, and even locked, making it necisary for the player to open them before they can see or take what is inside.

If the container is locked then they will also need to find the key for it before they can open it.

A container can be either a static object, like a chest of drawers, or a dynamic object like a box or a bag that the player can carry around with them.

  • Create a new object, give it a name and description that indicates it is a container with a lockable door, and place it in an appropriate location.
  • To make the object a container, just select the "Object is a container" property on the properties page:

ObjectProperties.jpg

This then makes two extra properties available:

ContainerProperties.jpg

We can now put any dynamic object inside of this container, but if we want any character to be able to go inside of the object then we must also select the "Characters can go inside this object" property.

The "...and the container can hold" property lets us put a limit on the number of objects that can be put inside the container.

PropertyContainerCapacity.jpg

We can select an object size (Tiny, small, normal large or huge) and the number of objects of that size that will fit.

  • A small object takes the same space as 3 tiny objects
  • A normal object takes the same space as 3 small objects or 9 tiny objects
  • A Large object takes te same space as 3 normal objects, 9 small objects, or 27 tiny objects.
  • A Huge object takes the same space as 3 large objects, 9 normal objects, 27 small objects or 81 tiny objects.

You can change these ratios by editing the Object size value list library property.

Opening and Closing Containers

So far we have just made an open container we can put things in.

To give it a door or lid that we can close, we need to select the "Object can be opened and closed" property.

The property "Open status" becomes available, which we use to set the initial state to either "Open" or "Closed".

The player will now need to open the object before they can see inside it, take something out, or put something in.

Locking a Container

Before you can make an object lockable you must first make a key for it.

This must be a dynamic object. The player will need to have this object with them and type "unlock drawer with key" to unlock a drawer object.

This does not need to be a traditional key, it could be a key card, a magnet, a stick that you poke in a hole, or a magical object.

The "Object can be locked" property does however require a key object - You cannot use this method for a combination lock.

Selecting the "Object can be locked" property does two things:

  • It changes the "Open status" property from Open/Closed radiobuttons to a drop-down list with three options, Open, Closed and Locked.
  • It makes the "Key for lock" property available.

LockedObjectProperties.jpg

Set "Open status" to "Locked".

Select the appropriate key object from the "Key for lock" drop down list.

  • This is required, once "Object can be locked" is selected, you will not be able to click OK until you select a key.


<<< Locked DoorsIntroductory TutorialsAdding Characters >>>