# Examples

Included here are a set of ten sample games which illustrate the use of various parts of the TADS 3 Libraries. For each game there is a version for adv3 and adv3Lite, so this collection can be used either to compare how things are done in the two different libraries or how to perform common tasks in one of them. These games also form a set of solutions to some of the exercises suggested in Learning TADS 3 and Learning TADS 3 With Adv3Lite. They may be used in conjunction with those books or simply as a set of standalone examples.

Exercise 11 - Laying out the Map - is primarily an illustration of Rooms, TravelConnectors and TravelBarriers. It also contains an example of a vehicle and a travel-pushable. adv3 version | adv3Lite version.

Exercise 13 - Containers - is primarily an illustration of various kinds of Container. It also illustrates certain aspects of action handling and defining new actions in the course of implementing things with the various kinds of container. adv3 version | adv3Lite version.

Exercise 15 - Fuses and Daemons, also illustrates starting and ending a game, and the use of InitObjects, CollectiveGroups, Consultables and more action handling. adv3 version | adv3Lite version.

Exercise 17 - Light Sources - is primarily a demonstration of various kinds of light source. This example also illustrates how to modify VerbRules (the grammar applicable to various actions) and how to define an AMUSING option. adv3 version | adv3Lite version.

Exercise 18 - Bedsitterland - is primarily an illustration of nested rooms (such as Platforms and Booths), including how to restrict reaching in and out of them. adv3 version | adv3Lite version

Exercise 19 - Locks and Gadgets - is primarily an illustration of Lockable items, keys, and various types of gadgets and controls such as dials, levers, switches and sliders. It also contains a further example of an AMUSING option. adv3 version | adv3Lite version

Exercise 20 - Lighthouse - is primarily an illustration of implementing NPCs (Non-Player Characters), including conversation and the use of ActorStates and AgendaItems. adv3 version | adv3Lite version.

Exercise 21 - Sense & Sensibility - is primarily an illustration of sensory connections, sensory events and remote sensing. It also illustrates the used of MultiLocs, Noises and Odors, as well as a simple NPC and another travel-pushable. adv3 version | adv3Lite version.

Exercise 22 - Attachments - is primarily an illustration of various kinds of Attachable class. adv3 version | adv3Lite version.

Exercise 23 - An Eventful Walk - is primarily an illustration of EventLists, Menus, Hints and Scoring. The adv3Lite version also includes a couple of examples of simple Scenes. adv3 version | adv3Lite version.