InitiateTopicclassactor.t[4066]

An "initiate" topic entry. This is a rather different kind of topic entry from the ones we've defined so far; an initiate topic is for cases where the NPC itself wants to initiate a conversation in response to something in the environment.

One way to use initiate topics is to use the current location as the topic key. This lets the NPC say something appropriate to the current room, and can be coded simply as


actor.initiateTopic(location);

class InitiateTopic :   ThingMatchTopic

Superclass Tree   (in declaration order)

InitiateTopic
        ThingMatchTopic
                TopicEntry
                        object

Subclass Tree  

(none)

Global Objects  

(none)

Summary of Properties  

includeInList 

Inherited from TopicEntry :
altTalkCount  altTopicList  impliesGreeting  isActive  isConversational  matchObj  matchScore  talkCount  topicGroupActive  topicGroupScoreAdjustment  topicResponse 

Summary of Methods  

setTopicPronouns 

Inherited from ThingMatchTopic :
isMatchPossible  matchTopic 

Inherited from TopicEntry :
addAltTopic  addSuggestedTopic  addTopic  adjustScore  anyAltIsActive  breakTopicTie  checkIsActive  deferToEntry  getActor  getTopicOwner  handleTopic  initializeTopicEntry  noteAltInvocation  noteInvocation 

Properties  

includeInListOVERRIDDENactor.t[4068]

include in the initiateTopics list

Methods  

setTopicPronouns (fromActor, topic)OVERRIDDENactor.t[4075]

since this kind of topic is triggered by internal calculations in the game, and not on anything the player is doing, there's no reason that our match object should be a pronoun antecedent

TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3