TravelWithMessageclass
A mix-in class that can be added to objects that also inherit from TravelConnector to add a message as the connector is traversed.
Note that this isn’t itself a travel connector; it’s just a class that should be combined with TravelConnector or one of its subclasses. This class should be in the superclass list before the TravelConnector-derived superclass.
class
TravelWithMessage
: object
Superclass Tree (in declaration order)
TravelWithMessage
` object`
Subclass Tree
TravelWithMessage
TravelMessage
DeadEndConnector
NoTravelMessage
FakeConnector
Global Objects
(none)
Summary of Properties
Summary of Methods
noteTraversal
showTravelDesc
travelDesc
Properties
npcTravelDesc
My message to display when any non-player character traverses the connector. If this is not overridden, no message will be displayed when an NPC travels through the connector.
Methods
noteTraversal (traveler)
on traversing the connector, show our message
showTravelDesc ( )
Display my message. By default, we show one message for the player character and another message for NPC’s.
travelDesc ( )
My message to display when the player character traverses the connector. This should be overridden with the custom message for the connector. By default, if we’re a Script, we’ll invoke the script to show the next message.
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3