FactThought class | facts.t[855]

A FactThought can be used to generate an automated response to a potentially wide range of requests to THINK ABOUT SO-AND-SO, provided that the Player Character has been listed in the various relevant facts' initiallyKnownBy list (or subquently added to its informedNameTab if the Consultable is updatable). A FactThought can also act like a DefaultThought when the player character knows no Facts corresponding to the topic that's being thought about. It will also defer to any specific Thoughts with a matchScore higher than 50.

`class FactThought : FactHelper Thought`

Superclass Tree (in declaration order)

`FactThought`
`FactHelper`
`object`
`Thought`
`TopicEntry`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

`addLineBreaks listSources matchScore noFactsMsg prefix updateSources`

Inherited from `FactHelper` :
`factIntro knewFactAlreadyMsg matchObj noteContradictions suffix tagList`

Inherited from `Thought` :
`includeInList`

Inherited from `TopicEntry` :
`active getActor isActive matchExactCase matchPattern narrator scoreBoost topicMatched`

Summary of Methods

`alreadyKnewMsg`

Inherited from `FactHelper` :
`getFacts topicResponse`

``

Inherited from `TopicEntry` :
`addTopic factText informFact initializeTopicEntry matchTopic qualifiedDesc revealFact scoreBooster`

Properties

`addLineBreaks` OVERRIDDEN | `facts.t[911]`

The listing with attributions will likely look better and be easier to follow if it includes like breaks between facts.

`listSources` OVERRIDDEN | `facts.t[905]`

It makes senss to list sources on a Thought, since for the most part we'll be listing what the player character has been told, not what the PC necessarily believes to be the case (as it otherwise would appear without attribution of the facts) and it's conceivable that different sources may have given conflicting information to the Player Character, so it becomes important for our response to say something like "John told us that Bill killed Janet and Mavis told us that Bill died of natural causes."

`matchScore` OVERRIDDEN | `facts.t[863]`

We give a FactThought a matchScore of 50 since it's not a mere DefaultThought that always gives a generic response to the effect that the player character has no information on whatever topic the player attempts to think about, but on the other hand we want it to defer to any regular Thoughts that gives a more tailored response to a particular topic or topics.

`noFactsMsg` OVERRIDDEN | `facts.t[867]`

no description available

`prefix` OVERRIDDEN | `facts.t[865]`

no description available

`updateSources` OVERRIDDEN | `facts.t[918]`

There's no point updating Facts with the sources of the Player Character's own thought; the response to THINK ABOUT X should report on what the Player Charater already knows without changing the game state.

Methods

`alreadyKnewMsg (fact)`OVERRIDDEN | `facts.t[873]`

Enable a Tnought to show the player character's comment on a fact that's being listed as being thought about.

Adv3Lite Library Reference Manual
Generated on 02/05/2024 from adv3Lite version 2.0