Axe Software Forums
  Quest Developer Forum
  Using objects


Author Topic:   Using objects
jalyman posted 27-11-2002 04:44 GMT     
Isn't there a way to put objects on top of objects? Like.. Putting a piece of candy on top of a desk, or putting a desk on top of.. Maybe I've just been sitting here way too long and missed it.
Alex posted 27-11-2002 09:59 GMT          
There's no internal support for putting objects on top of, or inside other objects at the present time (although Al's extension library provides container functionality). You can however program these as part of your object - you could, for example, set a property of the object which says whether it's on top of something, and have a script to modify the description accordingly, and then add commands to put the object on top of something or to take it off again. If you need any help with specific examples please let me know and I'll show you what I mean step by step.
jalyman posted 28-11-2002 00:47 GMT          
Thanks Alex. I'll let you know. Being a freelance writer makes creating these games a whole new arena for me. Unfortunately I need to learn the language, which confuses me somewhat.
jalyman posted 28-11-2002 00:48 GMT          
By the way, what is Al's extension library?
MaDbRiT posted 28-11-2002 22:12 GMT          
Jalyman asked:-
quote:

By the way, what is Al's extension library?

I wrote an includable library called "typelib.qlb" - this is 'plug and play' ASL code that provides a lot of added object functionality to Quest. it caters for "containers" (things that can have other things put in them), "containable" items (things that go inside other things) and there are weight/size restrictions possible so that you can arrange things so that the player cannot put TV's in matchboxes or similar silly options.

(As it happens, you can easily create an object things can be put ON and not IN - with the container/containable types - apart from being described as being 'on' and not 'in', the requirements are basically the same.)

'Typelib' allows other characters in your game to carry stuff around, and for things that can be opened & closed, read etc.

It also provides a full wardrobe of clothing with built in sense as regards "layering" of clothes. (You cannot remove a shirt while wearing a coat etc etc.)

Everything is provided as a set of object types (hence the name "typelib") - and all this stuff can be programmed by hand or through QDK if you wish.

As yet unreleased, a version I'm now testing allows players to tell / ask NPC's to do things - and also allows NPC's to wear clothing (with layered sense) just like the player can. At the moment there is no QDK interface for the forthcoming version - I'll add that when it works to my satisfaction.

In the test version, the player can type

quote:

"Knight, take off your armour"
or
"ask Knight to remove his armour"
or
"tell slave to remove my boots."


and by default these commands work as might be logically expected - unless you decide otherwise... :-)

Hope that explains what it is.

Al

jalyman posted 30-11-2002 02:41 GMT          
Is this something I can get now? If so, where?
MaDbRiT posted 30-11-2002 06:59 GMT          
You can get a copy of typelib.qlb (last released version, not the new in test version described as that has no QDK interface as yet) from my website..
www.members.aol.com/agbampton/html/qtips.html

It has a manual and demo code, plus the lib itself, all in one zip file. I hope it proves useful to you.

Al