SayTopicclass | actor.t[4659]

A SayTopic is a kind of SpecialTopic that allows the player (character) to say virtually anything (within reason) to an NPC; a SayTopic may be triggered by a command that explicitly begins with SAY, but it may also be triggered by any combination of words that matches its matchObj and doesn't correspond to any other recognizable command. This allows the player to respond, for example, with either SAY YOU DON'T KNOW or just I DON'T KNOW, to trigger an appropriately defined SayTopic.

`class SayTopic : SpecialTopic`

Superclass Tree (in declaration order)

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

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

`includeInList includeSayInName`

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`

Inherited from `SpecialTopic` :
`initializeTopicEntry`

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 matchTopic scoreBooster topicResponse`

Properties

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

SayTopics belong in the sayTopics list of their TopicDatabase

`includeSayInName` | `actor.t[4693]`

When a SayTopic is suggested we normally precede its name by 'say', e.g. 'say you are happy'. In some cases an author might want to use a SayTopic to match input that's better without the initial 'say', e.g. 'tell a lie', in which case set includeSayInName to nil to suppress the initial 'say' in topic inventory listings.

Methods

`buildName ( )`OVERRIDDEN | `actor.t[4667]`

When we construct the name of a SayTopic we use the name property of its matchObj rather that theName property, since it won't normally make sense to include the definite article at the beginning of suggestions of things that can be said.

Adv3Lite Library Reference Manual
Generated on 12/12/2022 from adv3Lite version 1.6