QueryTopicclass
A QueryTopic is a kind of SpecialTopic that extends the range of questions that the player (character) can ask an NPC from ASK ABOUT so-and-so to ASK WHO/WHAT/WHY/WHERE/WHETHER/IF/HOW so-and-so. The type of question to be matched (who/what/why/when etc.) needs to be defined on a QueryTopic’s qType property (so that it can be matched by the QueryTopic’s grammar). The remainder of the question is the Topic a particular QueryTopic matches.
class
QueryTopic
:
SpecialTopic
Superclass Tree (in declaration order)
QueryTopic
SpecialTopic
ActorTopicEntry
ReplaceRedirector
Redirector
` object
[
TopicEntry](../object/TopicEntry.html)
object`
Subclass Tree
(none)
Global Objects
(none)
Summary of Properties
Inherited from SpecialTopic
:
askMatchObj
autoName
rex
tellMatchObj
Inherited from ActorTopicEntry
:
activated
active
convKeys
curiosityAroused
getActor
impliesGreeting
isConversational
keyTopics
listOrder
name
suggestAs
timesInvoked
Inherited from TopicEntry
:
isActive
matchExactCase
matchObj
matchPattern
matchScore
scoreBoost
topicMatched
Summary of Methods
buildName
initializeTopicEntry
matchTopic
Inherited from ActorTopicEntry
:
activate
addToConvKeyTable
curiositySatisfied
deactivate
getKeyTopics
handleTopic
isReachable
nodeActive
showKeyTopics
timesToSuggest
Inherited from ReplaceRedirector
:
redirect
Inherited from Redirector
:
doInstead
doNested
doOtherAction
Inherited from TopicEntry
:
addTopic
scoreBooster
topicResponse
Properties
includeInList
OVERRIDDEN
A QueryTopic belongs in the queryTopics list of its TopicDatabase
qtype
The list of query types we match, e.g. ‘where’. To match multiple types list them divided by a vertical bar, e.g. ‘if|whether’
Methods
buildName ( )
OVERRIDDEN
When we build the name of a QueryTopic (for use in a list of topic suggestions) we need to include the query type (qType).
initializeTopicEntry ( )
OVERRIDDEN
no description available
matchTopic (top)
OVERRIDDEN
Check whether this QueryTopic matches the question asked. For it to do so it must match not only the topic but the qType (query type)
Adv3Lite Library Reference Manual
Generated on 15/03/2023 from adv3Lite version 1.6.1