Pacian:
Thanks for your response. Your suggestion was a first step in the right direction.
As you suggested, I coded:
++ GetCoal : AskTellTopic, SuggestedAskTopic @BillySubjects
name='Billy'
Now, when I run the program, I see:
(You could ask him about .)
================================================================
-
The additional words “ask him about” result from changing SuggestedTopic to SuggestedAskTopic.
-
name='Billy'
seems to have no effect (i.e. the suggested topics list is still not initialized).
- One more point of confusion regarding SuggestedTopic (and its variations)…
SuggestedAskTopic was added to the AskTellTopic statement, but the output that it generates appears in response to the HelloTopic statement.
================================================================
At the risk of making this reply too long, here’s my full code for the NPC named “Billy”:
[code]Billy : Person ‘Billy’ ‘Billy’
@outsideHouse
“He is playing in the snow”
properName = ‘Billy’
globalParamName = ‘Billy’
isHim = true
;
-
DefaultGiveTopic, ShuffledEventList
[
‘Billy shakes his head, No thanks.’,
'He looks at it and smiles. That’s nice, he remarks,
handing it back to you. ',
‘You should keep it, he advises.’
]
;
-
DefaultShowTopic, ShuffledEventList
[
‘He grins and says, "That’s nice.’,
‘Interesting, replies Billy, yawning.’,
‘Billy responds, Thank you for showing me.’
]
;
-
BillyTalking : InConversationState
stateDesc = " and talking with you. "
specialDesc = "talking with you. "
;
BillySubjects: Topic ‘eyes buttons eye button coal’;
++ GetCoal : AskTellTopic, SuggestedTopic @BillySubjects
"The snowman needs some eyes and some buttons, you say to Billy.
<.p>You’re right. I’ll fetch some coal to use. "
Name = ‘Billy’
;
++ BillyWorking : ConversationReadyState
stateDesc = “, rolling a snowball.”
specialDesc = “”
isInitState = true
;
+++ HelloTopic
“Hi, Billy.<.p>
Hi, he says, I’m happy you came outside.”
;
[/code]
Again, thanks for any help that you can provide.
Jeffrey W. Bowyer
jbowyer@seznam.cz