TopicDatabaseclass | actor.t[551] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
This is a "plug-in" database in that it's meant to be added into other classes using multiple inheritance. This isn't meant to be used as a stand-alone abstract topic entry container.
class
TopicDatabase : object
TopicDatabase
ActorTopicDatabase
Actor
UntakeableActor
Person
ActorState
AccompanyingInTravelState
GuidedInTravelState
AccompanyingState
GuidedTourState
ConversationReadyState
HermitActorState
InConversationState
ConvNode
Consultable
limitSuggestions
suggestedTopics
topicGroupActive
topicGroupScoreAdjustment
addSuggestedTopic
addTopic
addTopicToList
compareVocabMatch
findTopicResponse
getTopicOwner
handleTopic
removeSuggestedTopic
removeTopic
removeTopicFromList
showSuggestedTopicList
showTopicResponse
limitSuggestions | actor.t[911] |
Topic databases are arranged into a fixed hierarchy for an actor. At the top level is the current ConvNode object; at the next level is the ActorState; and at the bottom level is the Actor itself. So, if the ConvNode's limitSuggestions property is set to true, then the suggestions for the actor will include ONLY the ConvNode. If the ConvNode has the property set to nil, but the ActorState has it set to true, then we'll include the ConvNode and the ActorState suggestions.
By default, we set this to nil. This should usually be set to true for any ConvNode or ActorState where the NPC won't allow the player to stray from the subject. For example, if a ConvNode only accepts a YES or NO response to a question, then this property should probably be set to true in the ConvNode, since other suggested topics won't be accepted as conversation topics as long as the ConvNode is active.
suggestedTopics | actor.t[975] |
topicGroupActive | actor.t[557] |
topicGroupScoreAdjustment | actor.t[564] |
addSuggestedTopic (topic) | actor.t[934] |
addTopic (topic) | actor.t[918] |
addTopicToList (topic, listProp) | actor.t[952] |
compareVocabMatch (a, b) | actor.t[810] |
findTopicResponse (fromActor, topic, convType, path) | actor.t[606] |
getTopicOwner ( ) | actor.t[985] |
handleTopic (fromActor, topic, convType, path) | actor.t[572] |
removeSuggestedTopic (topic) | actor.t[941] |
removeTopic (topic) | actor.t[926] |
removeTopicFromList (topic, listProp) | actor.t[963] |
showSuggestedTopicList (lst, asker, askee, explicit) | actor.t[846] |
showTopicResponse (fromActor, topic, resp) | actor.t[596] |