SpecialTopic class | actor.t[5162]

SpecialTopic is the base class for two kinds of TopicEntry that extend the conversation system beyong basic ask/tell: SayTopic and QueryTopic. The SpecialTopic class defines the common handling but is not used directly in game code, which will use either SayTopic or QueryTopic

`class SpecialTopic : ActorTopicEntry`

Superclass Tree (in declaration order)

`SpecialTopic`
`ActorTopicEntry`
`ReplaceRedirector`
`Redirector`
`object`
`TopicEntry`
`object`

Subclass Tree

`SpecialTopic`
`QueryTopic`
`SayTopic`

Global Objects

(none)

Summary of Properties

`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` :
`includeInList isActive matchExactCase matchObj matchPattern matchScore narrator scoreBoost topicMatched`

Summary of Methods

`initializeTopicEntry`

Inherited from `ActorTopicEntry` :
`activate addToConvKeyTable baseHandleTopic buildName 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 matchTopic revealFact revealNewFact scoreBooster topicResponse`

Properties

`askMatchObj` | `actor.t[5265]`

If we want this SpecialTopic also to match an ASK ABOUT command, define the askMatchObj to hold the topic or list of topics that said ASK ABOUT command should match here.

`autoName` OVERRIDDEN | `actor.t[5278]`

For a SpeciallTopic make constructing a name property automatically the default.

`rex` | `actor.t[5258]`

A Regular expression pattern to look for the kinds of characters we'd expect to find in our matchPattern property if it actually represents a regular expression for this TopicEntry to match. We use this to help determine whether the matchPattern property contains a regex to match or the vocab of a Topic object to create on the fly. In tge latest version we exclude parentheses from the match pattern since these could be used to mark weak tokens in an ordinary name rather than indicating a regular expression.

`tellMatchObj` | `actor.t[5272]`

If we want this SpecialTopic also to match an TELL ABOUT command, define the askMatchObj to hold the topic or list of topics that said TELL ABOUT command should match here.

Methods

`initializeTopicEntry ( )`OVERRIDDEN | `actor.t[5168]`

Carry out the initialization (actually preinitialization) of a SpecialTopic

Adv3Lite Library Reference Manual
Generated on 26/02/2025 from adv3Lite version 2.2