playerMessagesobject
Player Character messages. These messages are generated when the player issues a regular command to the player character (i.e., without specifying a target actor).
playerMessages
:
libMessages
Superclass Tree (in declaration order)
playerMessages
libMessages
MessageHelper
` object`
Summary of Properties
Inherited from libMessages
:
commandFullScore
commandInterruptionPrefix
commandLookAround
commandNotPresent
commandResultsEmpty
commandResultsPrefix
commandResultsSeparator
commandResultsSuffix
complexResultsSeparator
currentlyClosed
currentlyLocked
currentlyNoHints
currentlyOpen
currentlyUnlocked
defaultsFileNotSupported
defaultsFileWriteError
dlgButtonCancel
dlgButtonNo
dlgButtonOk
dlgButtonYes
dlgTitleError
dlgTitleInfo
dlgTitleNone
dlgTitleQuestion
dlgTitleWarning
emptyCommandResponse
finishDeathMsg
finishFailureMsg
finishGameOverMsg
finishVictoryMsg
getRecordingPrompt
getReplayPrompt
getRestorePrompt
getSavePrompt
getScriptingPrompt
hintsDisabled
hintsDone
hintsNotPresent
inputFileScriptWarningButtons
inputScriptFailed
internalResultsSeparator
intraCommandSeparator
listSepEnd
listSepMiddle
listSepTwo
longListSepEnd
longListSepMiddle
longListSepTwo
menuKeyList
menuLongTopicEnd
menuTopicListEnd
nextMenuTopicLink
noAboutInfo
noteWithoutScript
noteWithoutScriptWarning
noteWithScript
notOnboardShip
noTopicsNotTalking
offerOopsNote
oopsMissingWord
oopsOutOfContext
prevMenuLink
recordingCanceled
recordingFailed
recordingOkay
recordOffIgnored
recordOffOkay
replayCanceled
roomDarkDesc
roomDarkName
scoreNotPresent
scriptingCanceled
scriptingFailed
scriptOffIgnored
scriptOffOkay
settingsItemSeparator
showFullScorePrefix
showHintWarning
sorryHintsDisabled
webUploadTooBig
whomPronoun
Summary of Methods
allNotAllowed
ambiguousNounPhrase
askDisambig
askMissingLiteral
askMissingObject
askUnknownWord
cannotAddressMultiple
cannotChangeActor
commandNotUnderstood
disambigOrdinalOutOfRange
emptyNounPhrase
explainCancelCommandLine
insufficientQuantity
missingActor
missingLiteral
missingObject
noMatch
noMatchCannotSee
noMatchDisambig
noMatchForAll
noMatchForAllBut
noMatchForListBut
noMatchForLocation
noMatchForPluralPossessive
noMatchForPossessive
noMatchForPronoun
noMatchNotAware
nothingInLocation
reflexiveNotAllowed
refuseCommandBusy
singleActorRequired
singleObjectRequired
specialTopicInactive
uniqueObjectRequired
wordIsUnknown
wrongReflexive
zeroQuantity
Inherited from libMessages
:
acknowledgeFootnoteStatus
acknowledgeNotifyStatus
acknowledgeTipStatus
acknowledgeVerboseMode
actorHereGroupPrefix
actorHereGroupSuffix
actorInGroupPrefix
actorInGroupSuffix
actorInRemoteGroupPrefix
actorInRemoteGroupSuffix
actorInRemoteNestedRoom
actorInRemoteRoom
actorInRoom
actorInRoomPosture
actorInRoomStatus
actorThereGroupPrefix
actorThereGroupSuffix
againCannotChangeActor
againCannotTalkToTarget
againNotPossible
allInSameListState
alreadyTalkingTo
announceAmbigActionObject
announceDefaultObject
announceImplicitAction
announceMoveToBag
announceMultiActionObject
announceRemappedAction
basicScoreChange
candleBurnedOut
cannotReachContents
cannotReachObject
cannotReachOutside
cannotTalkTo
closedMsg
confirmQuit
confirmRestart
currentExitsSettings
defaultsFileReadError
dimReadDesc
distantThingDesc
distantThingSmellDesc
distantThingSoundDesc
exitsOnOffOkay
explainExitsOnOff
filePromptFailed
filePromptFailedMsg
firstFootnote
firstScoreChange
footnoteRef
fullScoreItemPoints
inputFileScriptWarning
inputScriptFailedException
inputScriptOkay
invalidCommandToken
invalidFinishOption
litCandleDesc
litMatchDesc
lockedMsg
mainCommandPrompt
makeSentence
matchBurnedOut
mentionFullScore
menuInstructions
menuNextChapter
menuTopicProgress
noCommandForAgain
noSuchFootnote
noteMainRestore
notRestarting
notTerminating
objBurnedOut
obscuredReadDesc
obscuredThingDesc
obscuredThingSmellDesc
obscuredThingSoundDesc
offMsg
okayQuitting
onMsg
oopsNote
openMsg
openStatusMsg
parserErrorString
pauseEnded
pausePrompt
pauseSaving
pcDesc
putDestBehind
putDestContainer
putDestFloor
putDestRoom
putDestSurface
putDestUnder
recordingFailedException
restoreCanceled
restoreCorruptedFile
restoredDefaults
restoreFailed
restoreFailedOnServer
restoreInvalidFile
restoreInvalidMatch
restoreOkay
roomActorHereDesc
roomActorPostureDesc
roomActorStatus
roomActorThereDesc
saveCanceled
savedDefaults
saveFailed
saveFailedOnServer
saveOkay
sayArriving
sayArrivingDir
sayArrivingDownStairs
sayArrivingLocally
sayArrivingShipDir
sayArrivingThroughPassage
sayArrivingUpStairs
sayArrivingViaPath
sayDeparting
sayDepartingAft
sayDepartingDir
sayDepartingDownStairs
sayDepartingFore
sayDepartingLocally
sayDepartingShipDir
sayDepartingThroughPassage
sayDepartingUpStairs
sayDepartingViaPath
sayDepartingWith
sayDepartingWithGuide
sayOpenDoorRemotely
sayTravelingRemotely
scoreChange
scriptingFailedException
scriptingOkay
scriptingOkayWebTemp
shortFootnoteStatus
shortNotifyStatus
shortVerboseStatus
showCredit
showFinishMsg
showFootnoteStatus
showListState
showNotifyStatus
showScoreMessage
showScoreNoMaxMessage
showScoreRankMessage
showVersion
silentImplicitAction
smellDescSeparator
smellIsFromWithin
smellIsFromWithout
soundDescSeparator
soundIsFromWithin
soundIsFromWithout
systemActionToNPC
textMenuMainPrompt
textMenuTopicPrompt
thingFeelDesc
thingTasteDesc
tipStatusShort
undoFailed
undoOkay
unlitMatchDesc
unlockedMsg
webNewUser
Inherited from MessageHelper
:
askDisambigList
shortTIMsg
shortTMsg
Properties
(none)
Methods
allNotAllowed (actor)
‘all’ is not allowed with the attempted action
ambiguousNounPhrase (actor, originalText, matchList, fullMatchList)
we found an ambiguous noun phrase, but we were unable to perform interactive disambiguation
askDisambig (actor, originalText, matchList, fullMatchList, requiredNum, askingAgain, dist)
Ask the canonical disambiguation question: “Which x do you mean…?”. ‘matchList’ is the list of ambiguous objects with any redundant equivalents removed; and ‘fullMatchList’ is the full list, including redundant equivalents that were removed from ‘matchList’.
If askingAgain is true, it means that we’re asking the question again because we got an invalid response to the previous attempt at the same prompt. We will have explained the problem, and now we’re going to give the user another crack at the same response.
To prevent interactive disambiguation, do this:
throw new ParseFailureException(&ambiguousNounPhrase,
originalText, matchList, fullMatchList);
askMissingLiteral (actor, action, which)
Ask for a missing literal phrase.
askMissingObject (actor, action, which)
Ask for a missing object - this is called when a command is completely missing a noun phrase for one of its objects.
askUnknownWord (actor, txt)
tell the user they entered a word we don’t know, offering the chance to correct it with “oops”
cannotAddressMultiple (actor)
cannot speak to multiple actors
cannotChangeActor ( )
cannot change actor mid-command
commandNotUnderstood (actor)
invalid command syntax
disambigOrdinalOutOfRange (actor, ordinalWord, originalText)
The answer to a disambiguation question specifies an invalid ordinal (“the fourth one” when only three choices were offered).
‘ordinalWord’ is the ordinal word entered (‘fourth’ or the like). ‘originalText’ is the text of the noun phrase that caused the disambiguation question to be asked in the first place.
emptyNounPhrase (actor)
empty noun phrase (‘take the’)
explainCancelCommandLine ( )
Remaining actions on the command line were aborted due to the failure of the current action. This is just a hook for the game’s use, if it wants to provide an explanation; by default, we do nothing. Note that games that override this will probably want to use a flag property so that they only show this message once - it’s really only desirable to explain the the mechanism, not to flag it every time it’s used.
insufficientQuantity (actor, txt, matchList, requiredNum)
insufficient quantity to meet a command request (‘take five books’)
missingActor (actor)
the actor is missing in a command
missingLiteral (actor, action, which)
Show the message for a missing literal phrase.
missingObject (actor, action, which)
An object was missing - this is called under essentially the same circumstances as askMissingObject, but in cases where interactive resolution is impossible and we simply wish to report the problem and do not wish to ask for help.
noMatch (actor, action, txt)
no match for a noun phrase
noMatchCannotSee (actor, txt)
No match message - we can’t see a match for the noun phrase. This is the default for most verbs.
noMatchDisambig (actor, origPhrase, disambigResponse)
no match for the response to a disambiguation question
noMatchForAll (actor)
no match for ‘all’
noMatchForAllBut (actor)
nothing left for ‘all’ after removing ‘except’ items
noMatchForListBut (actor)
nothing left in a plural phrase after removing ‘except’ items
noMatchForLocation (actor, loc, txt)
no match for a containment phrase
noMatchForPluralPossessive (actor, txt)
no match for a plural possessive phrase
noMatchForPossessive (actor, owner, txt)
no match for a possessive phrase
noMatchForPronoun (actor, typ, pronounWord)
no match for a pronoun
noMatchNotAware (actor, txt)
No match message - we’re not aware of a match for the noun phrase. Some sensory actions, such as LISTEN TO and SMELL, use this variation instead of the normal version; the things these commands refer to tend to be intangible, so “you can’t see that” tends to be nonsensical.
nothingInLocation (actor, loc)
nothing in a container whose contents are specifically requested
reflexiveNotAllowed (actor, typ, pronounWord)
reflexive pronoun not allowed
refuseCommandBusy (targetActor, issuingActor)
the actor refuses the command because it’s busy with something else
singleActorRequired (actor)
only a single actor can be addressed at a time
singleObjectRequired (actor, txt)
a single noun phrase is required, but a noun list was used
specialTopicInactive (actor)
a special topic can’t be used right now, because it’s inactive
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, but don’t offer an interactive way to fix it (i.e., we can’t use OOPS at this point)
wrongReflexive (actor, typ, pronounWord)
a reflexive pronoun disagrees in gender, number, or something else with its referent
zeroQuantity (actor, txt)
‘take zero books’
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3