Difference between revisions of "SayToDone"

From GECK

m ('''Example:''')
 
m (not a function but still a godsend)
Line 28: Line 28:
  
 
[[Category:Blocktypes]]
 
[[Category:Blocktypes]]
 +
[[Category:Godsend Functions]]

Revision as of 18:18, 26 December 2008

Overview

The SayToDone block is triggered when a Say or SayTo is complete.

Syntax:

Begin SayToDone [topic_name]   ; Where the topic_name is optional.

Example:

(This is a script fragment, meant for illustration, it is not perfect):

Begin GameMode
   If WhichInfo == 1
       JoeRef.Say SpeechTopic
       Set WhichInfo to WhichInfo + 1
   EndIf
End

Begin SayToDone SpeechTopic
   If WhichInfo <= LastInfo
       JoeRef.Say SpeechTopic
       Set WhichInfo to WhichInfo + 1
   EndIf
End

See Also

Say
SayTo
Three Way Conversation Tutorial

Personal tools