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
:
autoInform
autoReveal
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
:
doubtFactMsg
getFacts
topicResponse
Inherited from TopicEntry
:
addTopic
factText
informFact
informNewFact
initializeTopicEntry
interpret
matchTopic
qualifiedDesc
revealFact
revealNewFact
scoreBooster
Properties
The listing with attributions will likely look better and be easier to follow if it includes like breaks between facts.
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."
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.
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
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 03/07/2024 from adv3Lite version 2.1