QueryTopic class | actor.t[5355]

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 mayAddSubtopics 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

`includeInList` OVERRIDDEN | `actor.t[5463]`

A QueryTopic belongs in the queryTopics list of its TopicDatabase

`qtype` | `actor.t[5395]`

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 | `actor.t[5439]`

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 | `actor.t[5398]`

no description available

`matchTopic (top)`OVERRIDDEN | `actor.t[5361]`

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 26/02/2025 from adv3Lite version 2.2