Hey, I want to know how I can make an object openable in TADS 3. Maybe a class? Also, How would you make an item start inside of it.
Hi there… have you downloaded any of the TADS 3 getting started manuals? There’s invaluable info there, and you’ll need a lot of it…
But yes, there is an Openable class, and if you’re looking to put things inside of it you might be wanting an OpenableContainer class. To put an object inside it you would define the object below it, with the plus notation:
myRoom: Room ‘The Room’
+ myContainer: OpenableContainer ‘openable container’ ‘openable container’
++ containedThing: Thing
Thanks! That worked perfectly!