npcDeferredMessagesDirectobject
Deferred NPC messages. We use this to report deferred messages from an NPC to the player. A message is deferred when a parsing error occurs, but the NPC can’t talk to the player because there’s no sense path to the player. When this happens, the NPC queues the message for eventual delivery; when a sense path appears later that lets the NPC talk to the player, we deliver the message through this object. Since these messages describe conditions that occurred in the past, we use the past tense to phrase the messages.
Some messages will never be deferred:
commandNotHeard - if a command is not heard, it will never enter an actor’s command queue; the error is given immediately in response to the command entry.
refuseCommandBusy - same as commandNotHeard
noMatchDisambig - interactive disambiguation will not happen in a deferred response situation, so it is impossible to have an interactive disambiguation failure.
disambigOrdinalOutOfRange - for the same reason noMatchDisambig can’t be deferred.
askDisambig - if we couldn’t display a message, we definitely couldn’t perform interactive disambiguation.
askMissingObject - for the same reason that askDisambig can’t be deferred
askUnknownWord - for the same reason that askDisambig can’t be deferred.
npcDeferredMessagesDirect
:
npcDeferredMessages
Superclass Tree (in declaration order)
npcDeferredMessagesDirect
npcDeferredMessages
` object`
Summary of Properties
(none)
Summary of Methods
ambiguousNounPhrase
askMissingObject
commandNotUnderstood
emptyNounPhrase
insufficientQuantity
noMatchCannotSee
noMatchForAll
noMatchForAllBut
noMatchNotAware
singleObjectRequired
uniqueObjectRequired
wordIsUnknown
zeroQuantity
Properties
(none)
Methods
ambiguousNounPhrase (actor, originalText, matchList, fullMatchList)
we found an ambiguous noun phrase, but we were unable to perform interactive disambiguation
askMissingObject (actor, action, which)
an object phrase was missing
commandNotUnderstood (actor)
no description available
emptyNounPhrase (actor)
empty noun phrase (‘take the’)
insufficientQuantity (actor, txt, matchList, requiredNum)
insufficient quantity to meet a command request (‘take five books’)
noMatchCannotSee (actor, txt)
no match for a noun phrase
noMatchForAll (actor)
no match for ‘all’
noMatchForAllBut (actor)
nothing left for ‘all’ after removing ‘except’ items
noMatchNotAware (actor, txt)
no description available
singleObjectRequired (actor, txt)
a unique object is required, but multiple objects were specified
uniqueObjectRequired (actor, txt, matchList)
a unique object is required, but multiple objects were specified
wordIsUnknown (actor, txt)
tell the user they entered a word we don’t know
zeroQuantity (actor, txt)
‘take zero books’
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3