AltTopic class | actor.t[5134], facts.t[1140], factrel.t[677]

An AltTopic is a TopicEntry that can be located inside another TopicEntry; to provide an alternative response to the same conversational commands when its isActive property is true. An AltTopic takes precedence over its enclosing TopicEntry when its active property is true, but otherwise takes most of its properties (apart from its topicResponse) from the TopicEntry in which it is located. You can have as many AltTopics as you like associated with any given TopicEntry; the one that will be used will be the last to be defined for which isActive is true.

Modified in facts.t[1140]:
Modications to AltTopic to work with the modifications to ActorTopicEntry with the FACTS module.

Modified in factrel.t[677]:
Modifications to AltTopic to work with FACT RELATIONS modifications to ActorTopicEntry

`class AltTopic : ActorTopicEntry`

Superclass Tree (in declaration order)

`AltTopic`
`ActorTopicEntry`
`ReplaceRedirector`
`Redirector`
`object`
`TopicEntry`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

`actionPhrase agenda agendaItem allowAction aTag autoUseAgenda convKeys getActor includeInList matchObj myAction name revealing suggestAs tTag`

Inherited from `ActorTopicEntry` :
`activated activateKeyTopics active agendaPath arouseKeyTopics autoName autoSuppress autoSuppressSubTopics curiosityAroused impliesGreeting keyTopics lastConvResponse lcrScriptClass listOrder nextStep timesInvoked wasConversational`

``

``

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

Summary of Methods

`matchTopic`

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

Inherited from `ReplaceRedirector` :
`redirect`

Inherited from `Redirector` :
`doInstead doNested doOtherAction`

Inherited from `TopicEntry` :
`addTopic factText informFact revealFact scoreBooster topicResponse`

Properties

`actionPhrase` | `actor.t[5149]`

no description available

`agenda` OVERRIDDEN | `factrel.t[678]`

no description available

`agendaItem` | `actor.t[5169]`

Note the topic we're trying to match.

`allowAction` | `actor.t[5147]`

no description available

`aTag` OVERRIDDEN | `facts.t[1145]`

Take our rTag from our location's aTag

`autoUseAgenda` OVERRIDDEN | `factrel.t[679]`

no description available

`convKeys` OVERRIDDEN | `actor.t[5142]`

no description available

`getActor` OVERRIDDEN | `actor.t[5140]`

By default we take most of our property values from the corresponding property on the TopicEntry we're located in

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

no description available

`matchObj` OVERRIDDEN | `facts.t[1148]`

Take our matchoObj from our location's matchObj

`myAction` | `actor.t[5148]`

no description available

`name` OVERRIDDEN | `actor.t[5144]`

no description available

`revealing` | `facts.t[1151]`

Take our revealing flag from our location's revealing

`suggestAs` OVERRIDDEN | `actor.t[5145]`

no description available

`tTag` OVERRIDDEN | `facts.t[1142]`

Take our tTag from our location's tTag

Methods

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

We match if our location matches, but if it does match we add our relative source text order to our location's match score to give us a higher score the later we're defined after our associated TopicEntry.

Adv3Lite Library Reference Manual
Generated on 25/04/2024 from adv3Lite version 2.0