- garethfx wrote:
Hi all. Ive been through the response table just to check the above
Is there a command in the response table that governs the auto description of the contents of a container? Ive made one container that requires the player to take that initative.
Ive checked "showobjs" and it does not seem to be effecting "contents".
Any advice?
Gareth
Hi Gareth,
It is good to hear you are still adventuring with TAB.
How's your game going, then? Are you still planning to write one?
If so, would love to hear any details...
CONDITIONS "openedX" and "closedX" will be true if container object X is open or closed respectively.
ACTION "closeobjX" ensures that the object container contents cannot be accessed; neither will its contents be listed if the player tries to "look in the <container>". In other words it is "locked".
ACTION "openobjX" simply clears the container object status to unlocked/open. The contents of the container are now viewable by "look in <container>" or in an inventory listing if the container is carried.
By default all container objects start off in the game "open" so the contents listing for each container will be set to ON automatically...
If you wish to set up an object container to be initially "closed" (or "locked") then use an entry in Script 1 like:
'sets container object 6 to be initially closed (contents not viewable)
[start]flag2=0[acts]closeobj6#flag2=1[end]
Contents will then not be viewable until a "openobj6" ACTION is called in a coding entry.
Hope this is what you meant? But please clarify if not or I haven't understood you correctly.
Phil.