lockableDoorway Code

I am trying to learn TADS 2 code for a school project, and I am stumped on making a locked doorway. When I use the lockableDoorway definition, it spits out a -332 and a -450 error code. I tried using the regular doorway definition with all the locking properties and key properties set correctly, and when I try going through it, the program doesn’t see the doorway at all. Could someone help me by writing a sample code on making a lockable doorway?

I think this would work…

[code]startRoom: Room ‘Entry Stairs’
“The front Stairs. The Front Door to the north”
north = DoorEntrySide
;

brassKey : Key ‘small brass key’ ‘brass key’ @startRoom;

DoorEntrySide : LockableWithKey, Door
location = startRoom
name = ‘Front Door’
noun = ‘door’
adjective = ‘front’
keyList = [brassKey]
initiallyLocked = true
desc = “A massive door weathered from the sun”
;
DoorNextRoomSide : LockableWithKey, Door -> DoorEntrySide
location = NextRoom
name = ‘Front Door’
noun = ‘door’
adjective = ‘front’
keyList = [brassKey]
desc = “A massive door, beautiful dark wood.”
;

NextRoom: Room ‘Foyer’
"The Next room. A door is to the south. "
south = DoorNextRoomSide
;[/code]

freefall, you’re using TADS3, and the original poster was asking about TADS2, which is a very different animal.

Yikes. I didn’t notice that. Sorry for any confusion. And I thought I was being so helpful.

Don’t worry about it!! I emailed a software engineer who worked on this kind of stuff, and here is the correct code.

[code]fdooroutside: lockableDoorway
location = housefront
sdesc = “front door”
noun = ‘door’
adjective = ‘front’
isopen = nil
noAutoOpen = nil
doordest = fronthallway
otherside = fdoorinside
mykey = housekey
;

housefront: room
in = fdooroutside
;
[/code]

My new question is does anyone know how to make it so if you are not wearing something, ex. workgloves, and you take something, it kills you. But if you are wearing the gloves, you are safe.