QueryTopicclassactor.t[5038]

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

Subclass Tree  

(none)

Global Objects  

(none)

Summary of Properties  

includeInList  qtype 

Inherited from SpecialTopic :
askMatchObj  autoName  rex  tellMatchObj 

Inherited from ActorTopicEntry :
activated  activateKeyTopics  active  agenda  agendaPath  arouseKeyTopics  aTag  autoSuppress  autoSuppressSubTopics  autoUseAgenda  convKeys  curiosityAroused  getActor  impliesGreeting  keyTopics  lastConvResponse  lcrScriptClass  listOrder  name  nextStep  suggestAs  timesInvoked  tTag  wasConversational 

Inherited from TopicEntry :
isActive  matchExactCase  matchObj  matchPattern  matchScore  narrator  scoreBoost  topicMatched 

Summary of Methods  

buildName  initializeTopicEntry  matchTopic 

Inherited from ActorTopicEntry :
activate  addToConvKeyTable  baseHandleTopic  curiositySatisfied  deactivate  filterTopicSuggestions  fText  getKeyTopics  handleTopic  infTag  isConversational  isReachable  nodeActive  qualifiedDesc  revTag  showKeyTopics  timesToSuggest  tryAgenda  tryNextStep  useAgenda 

Inherited from ReplaceRedirector :
redirect 

Inherited from Redirector :
askMissingLiteral  doInstead  doNested  doOtherAction 

Inherited from TopicEntry :
addTopic  factText  informFact  informNewFact  interpret  revealFact  revealNewFact  scoreBooster  topicResponse 

Properties  

includeInListOVERRIDDENactor.t[5146]

A QueryTopic belongs in the queryTopics list of its TopicDatabase

qtypeactor.t[5078]
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 ( )OVERRIDDENactor.t[5122]

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 ( )OVERRIDDENactor.t[5081]
no description available

matchTopic (top)OVERRIDDENactor.t[5044]
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 03/07/2024 from adv3Lite version 2.1