Container/Availability Bug

Lumino
06 Dec 2008, 21:56
I've discovered a bug...if you create a surface and put items on it that you wish to be inaccessible to begin with, and you check off that option under "Advanced," they will still appear in the room. In order to fix it, I had to put "Make [item] inaccessible" in the game starting script. I'm not sure if the bug exists for regular containers, but I know it does at least for surfaces.

Alex

Lumino
07 Dec 2008, 03:02
I've found a related issue.

If you have an inaccessible item on a surface and you look at the surface, it becomes accessible.

Alex
11 Dec 2008, 18:23
Thanks for reporting this, I'll take a look into it.

Alex
30 Mar 2009, 17:48
Sorry for the delay but I just got round to looking into this.

It's actually an artefact of the way containers are implemented in Quest 4.0 - if an object is inaccessible then it is hidden, so when it becomes accessible (which for a surface is when that surface is looked at), it is unhidden.

If you want to update the contents of a container or surface during a game, use the "add" and "remove" commands (in QDK, in the Objects category, "Add an object to another object" and "Remove an object from its parent object"). So you could have the object hidden in the room, then add it to the surface or container and unhide it at the desired point in the game.