Wednesday 27 March 2013

Creating a Container

In this post I will be showing you how to create a container. This can be quite confusing so please pay close attention to the following instructions.

First think of a name for your container.

A Box is a container.

This is how you code and say it is a container. Next we must say where it is. As so...

A Box is a container.
A Box is in The Cave.

We must now say if it is a locked container, an open one or a closed one.

To do a closed one, 

A Box is a container.
A Box is in The Cave.
A Box is closed.
A Box is openable.
A Box can be closed.

This tells inform that your container is closed but it is openable. If you don't explain that the box is openable, the player won't be able to open your container. When it is saying it can be closed,this means when the box has been opened it can be re closed.

To do an open container,


A Box is a container.
A Box is in The Cave.
A Box is open.
A Box can be closed.
A Box is openable.

To do a locked container do the following,


A Box is a container.
A Box is in The Cave.
A Box is locked.

To make the key, do this

A Key is in The Cave.
The Key unlocks A Box.

You can also specify how many items the container can hold be doing the following coding.

A Box can hold 5 items.

To add a description do the same as an object. Have a look at creating an object in older posts of my blog.

The description of A Box is "Just a normal card board box."

That is it. Oh ... and to put something inside a container do this. 

An Egg is in A Box.


Thanks,
danielfrogs


No comments:

Post a Comment