Question about object type, name and alias.

debsw2003
30 Jul 2003, 04:36
Question about object type, name and alias.

I am very new to quest and to asl code and I am using QDK Pro 3.12, but I am not adverse to coding manually if that will solve the problem I am having.

What I am trying to do is have it so that when a player pulls (takes) a lever an object in another room is replaced with an identical looking object but with different properties (a different object type). Everything works great except when the player takes the second object, the “name” of the object is displayed ( which must be different from the “name” of the original object) instead of displaying the alias of the object. This spoils the trick.

So
1. Is there any way to prevent quest from displaying the objects name?
or
2. Is there any way to change the object “type” during game play?

I hope this made sense and I hope someone can help me. Thanx.

MaDbRiT
30 Jul 2003, 05:27
Hi Debsw2003 and welcome to Quest!

You have two ways to do what you ask.

1: you can have two objects to represent your single changeable object, give them different names for code purposes - name them say "AObj_prelever" & "AObj_postlever" or something such - but give them both the same alias of "AObj". Initially set the prelever obect to visible and the postlever to hidden. This will allow you to switch the visibility of the two objects when the lever is pulled and create the right impression :-) Obviously each object being independent means they can have entirely different properties.

2: If the lever is only going to add additional properties or change those that already exist, you can define a type with the additional properties and simply inherit this additional type in your original object when the lever is pulled - see the ASL code manual for the type <obj name;type> tag.

If this makes no sense at all, drop me an e-mail / reply here and I'll post a little demo of both methods for you.

Actually, it'll be my first demo since the new forums began - whooo!

Good luck with Quest

Al

Redsun
30 Jul 2003, 06:01
I Do know you could Just make Another Object with Diff Name and Properties, the player wouldn't know....if you want it to be Identical name but diff properties you can do that to, if you dont want it to have any name, try leaving it blank...I Know that works for Rooms, never tried that on objects :)