Axe Software Forums
  Quest Developer Forum
  Open/Close


Author Topic:   Open/Close
Dr Snark posted 09-07-2001 01:27 GMT     
How you you Open/close a Container?
Alex posted 09-07-2001 14:01 GMT          
It depends how you're coding your container - Quest doesn't itself support them so I'm just as confused as you are.
MaDbRiT posted 10-07-2001 09:39 GMT          
Dr Snark asked;
quote:

How you you Open/close a Container?

As Alex suggests, it depends on how you are coding your container. If you are you using Quest 2.19 and my 'standard.lib' version 3 (and coding containers as per my demo of the library and documentation) I can probably suggest a relatively easy way to do this, but I'll not clog up the forum with an explanation until I know it isn't a waste of space :-)

Al

Computer Whizz posted 10-07-2001 20:26 GMT          
Well, I'd do it the "easy way" of creating a room or two with the name "container_#container name#" if I were having more than one container. Otherwise just use "container". Then using a command for a switch, I'd use quest.currentroom and other's to say "move to room container. List item's, ect.." then use "exit" to get back. Oh and have the command "put #item# in #container#" with move item from quest.currentroom to room "container".
It's quite simple really. I *do* think Al uses this way in his tutorial and his standard.lib. I'm not sure but I like to find these thing's out for myself anyway!
:) sorry Al!

--CW

carlii posted 11-07-2001 11:16 GMT          
What is a container?
MaDbRiT posted 11-07-2001 11:32 GMT          
Carlii asked:-
quote:

What is a container?

As discussed here, we mean a 'container' in the most literal sense, that is an object that can contain other objects. :-)

A good example would be a box, the 'box' object might be coded so that the player could put things in or take them out of it - making it a 'container'.

In my 'standard.lib' characters are also classed as 'containers', this is simply a slight variation on the theme that allows a character in the game to be given an object, be seen to be carrying it - even move around with it and give it back.

If you read the docs that came with 'standard.lib' and play with the demo included, you will see that the bag object and the Geoffrey character are 'containers' in this sense.

Hope this helps.

Al